When I try to authorize the plugin for tado it does nothing, it shows nothing in the log (not even with debug on). At the moment I can't give more info because the plugin doesn't provide any feedback that I took an action whatsoever. A different browser didn't provide with a different experience.
Announcement
Collapse
No announcement yet.
Cannot authorize
Collapse
X
-
Hi, as i have split out the the Tado API functions into a seperate library that i am planning to release into Nuget, all i was doing for the authentication was attempting to parse the response and if this failed returned a null value.
the new version attached to this post now catches and feeds back the error into the main program where it can be logged.
please use the new version, all you need to do is goto the plugin page and use the slider disable the tado plugin.
then overwrite <HomeSeer install Dir>\HSPI_Tado.exe with the one in the zip file (v1.0.0.196) and also overwrite <HomeSeer install Dir>\Bin\Tado\Tado_API_Library.dll with the new version in the Zip File (v1.0.0.88)
then just re-enable the plugin.
now attempt the authentication and you should either see an Informational or Error message logged if the Authentication was successful/unsuccessful, and if unsuccessful will return the error message returned from the api.
i am wondering if the issue is maybe there is a character in you password which is not being escaped correctly. if you use any special characters in you password could you please PM me which special characters you are using (e.g. "';:&$^ etc..) so i can ensure they are actually being escaped correctly when forming the queryAttached FilesLast edited by fuzzysb; July 9, 2018, 05:01 AM.
Comment
-
I replaced the files and didn't get any message or change in behaviour what so over. I did see the plugin startup, even got a warning
Code:[COLOR=#D58000]Attempt by plugin to register a duplicate link of http://forums.homeseer.com/forumdisplay.php?f=1584. Plugin: Tado Instance: [/COLOR]
My password has no special characters, it's 24 characters long though, maybe that's a thing? The username is the e-mail address but I guess that's standard?
Comment
-
ok let's take a step back one moment. are you running on Windows or Linux?
The warning you got is because the forum link is already registered (its expected and not an issue.)
If you aren't getting any message after clicking on the Tado Authentication button after putting in your username and password (there should not be an issue with a 24 character password, but i will check now) then it must be failing to run the authentication request. can you tick the box to log to a file and set the file logging level to Debug and then attempt authentication. then look at the <Homeseer Install dir>\Log\Tado.log does this contain anything at all?
I will compile a new version with a try catch, and see if i can catch the error as it looks like its not an error being returned from Tado, its actually failing prior to this. hang tight for 20-30 mins, sorry for this.
ok try again with this version. which is attachedAttached FilesLast edited by fuzzysb; July 9, 2018, 05:38 AM.
Comment
-
Ok here's the log:
Jul-09 12:27:48 DEBUG Device Poll Inititated.
Jul-09 12:27:48 DEBUG No authorization. Please go to the config page to authorize
Jul-09 12:32:48 DEBUG Device Poll Inititated.
Jul-09 12:32:48 DEBUG No authorization. Please go to the config page to authorize
Jul-09 12:37:48 DEBUG Device Poll Inititated.
Jul-09 12:37:48 DEBUG No authorization. Please go to the config page to authorize
Jul-09 12:42:48 DEBUG Device Poll Inititated.
Jul-09 12:42:48 DEBUG No authorization. Please go to the config page to authorize
Jul-09 12:47:48 DEBUG Device Poll Inititated.
Jul-09 12:47:48 DEBUG No authorization. Please go to the config page to authorize
Jul-09 12:48:56 INFO Shutting Down Tado plugin
Jul-09 12:49:56 INFO Tado version 1.0.0.198
Jul-09 12:49:57 WARNING The Tado plugin hasn't been authorized to access your Tado account, please go to the config page to authorize.
Jul-09 12:50:40 ERROR Tado Authentication failed prior to sending the request, The error was: Object reference not set to an instance of an object
Comment
-
I've just tested on my Linux version, i get the following output when deleting the contents of my tado.ini and start the plugin
i've just changed my password to one that contains 25 chars and all the special chars i can think of just to be sure.
so all i can think is that potentially there is an issue with you not having the full mono install, but hopefully when clicking the Tado Authorise button you should now get an error in the log using the new v1.0.0.198 i just posted.
*Edit* our posts are crossing. ok so it thinks you have null entry object. let me just have a little think. won't be a minute.
Comment
-
i don't suppose you have skype do you? it would be great if i could get you to input your username and pw into an active debugging session as im not getting an expected response from the auth module. this would be far and away the quickest way to fix and stop the back and forward
you can find me in the skype directory if you search for
stuartbuchanan
and my location is accrington
the only other thing i can think off the top of my head is to ensure that you Homeseer box can resolve the fqdn auth.tado.com correctly
Comment
-
Nope don't have skype.
Mono seems ok, the hue plugin works fine. For good measure I installed the devel packages, but alas no change.
This is the error I get:
Jul-09 13:05:20 ERROR Tado Authentication failed prior to sending the request, The error was: Object reference not set to an instance of an object
Here's some info on mono:
[mikebos@localhost ~]$ mono --version
Mono JIT compiler version 4.8.0 (Stable 4.8.0.520/8f6d0f6 Thu Jun 7 07:23:56 UTC 2018)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: normal
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen
[mikebos@localhost ~]$
Comment
-
Same error:
Jul-09 1:33:02 PM HSBuddy Cleanup thread removed 1 entries from device history.
Jul-09 1:33:00 PM Tado ERROR Tado Authentication failed prior to sending the request, The error was: Object reference not set to an instance of an object
Jul-09 1:32:24 PM Tado WARNING The Tado plugin hasn't been authorized to access your Tado account, please go to the config page to authorize.
Jul-09 1:32:23 PM Starting Plug-In Plugin Tado started successfully in 98 milliseconds
Jul-09 1:32:23 PM Warning Attempt by plugin to register a duplicate link of http://forums.homeseer.com/forumdisplay.php?f=1584. Plugin: Tado Instance:
Jul-09 1:32:23 PM Tado INFO Tado version 1.0.0.199
Jul-09 1:32:23 PM Starting Plug-In Initializing plugin Tado ...
Comment
Comment