Thanks for the guidance finally got this working!
Is there any easy way to verify that the new code is using the new authorisation scheme, or if it's working is it safe to assume this is the case? I was told I had until mid February until the old auth method was disabled, it would be great to know before then if all is as it should be.
If you swapped to one of the updated ones then you're on the OAuth authentication. Take a look in the logging and you'll see it referencing the auth tokens.
If you really want to be sure then change your Tado password - the username/password is only used to retrieve a token from the service, in theory this token is then refreshed every 10 minutes using the last one (technically a seperate refresh token) so the username/password isn't used again.
(unless of course Tado then invalidate the tokens on a password change, but that would sort of defeat their purpose! hmm, who knows)
So github not updated yet and in a few days I lose support for Tado on my hubitat.
How/What's code do I need to upgrade? I'm still used to Smartthings easy github import. Just overwrite the appcode in the texteditor?
Was forced to migrate to hubitat in a hurry and haven't yet spent time to work it all out since I've got most pistons back to work in webcore.
Hi guys,
Hoping someone could help. Since updating the code for the new oAuth stuff, it seems very unstable.
I have full control for a while maybe 12 hours but then everything stops. I refresh devices and the data doesn’t change and I have no control over any device in terms of turn off, end manual control, temp changes etc . However if I go into the app set up and just click through without changing anything it then works again for a bit before the whole process repeats.
Anyone have any ideas what this could be?
TIA
Which edition are you running from the threads above?
You can try the one from my repository posted above - yes go to "app code" and replace the code with the one from the link, also go to "drivers code" and replace "Tado Heating Thermostat" with the matching one too.
After replacing the code go to the App itself and enter the Client ID / secret from tado, then your credentials and hit next, it should then find your TRVs etc
It was a little way back, think it was one of the first updated ones. I’ll give you repo one a try. Thanks! And thanks for all involved on the updates!
@Bibbleq Thanks for updating the code!
I found a small typo. In the file tado-connect.groovy within the function getUserList() it says:
def TadoUsers = getMobileDevicesCommand()
if (TadoUser != null) {
return TadoUsers.sort()
}
This should be:
def TadoUsers = getMobileDevicesCommand()
if (TadoUsers != null) { // Added an extra 's' after TadoUser
return TadoUsers.sort()
}
Thanks, was this causing you a particular issue out of interest?
I've changed in my environment and will see how it goes - I think I was in a muddle because TadoUser is used later in the code when looping through the results, but that this point I don't think we had defined it.
Trying to remember why I'd added that != catch
(probably just streamlining things a little)
Thanks! At the final step of setting up Tado Connect, you are asked to select one or more users for the Presence Sensor. Unfortunately, at that step, it wasn't possible to select a user, and so the Presence Sensor didn't work. But everything is working nicely again (as far as I can tell).
I had the same experience yesterday as i replaced the app with the one from @Bibbleq
All seems OK but the presence sensors list is empty. In debug logs I see they are received from Tado and the existing ones are still present. One thing to mention i that I change the name of the presence devices.
Thanks for the work!
On top of the empty presence sensor list, the presence sensors that existed before updating to oauth don't change state currently.
I removed the custom label but that didn't help.
Do I need to remove and recreate them? Why is the list not showing?
The version from @Bibbleq contains/contained a small typo. See my post at 109.
That's probably the reason why your presence sensors list is empty.
@e.huisman that's it!
Thanks sir!
@Bibbleq could you update the typo in your version please? It solves the problem with listing presence sensors.
@Bibbleq I guess you can merge to @Fuzzyligic ‘s repo then after fixing the typo?
Thanks a ton ![]()
I've updated the github with the typo fixed ![]()
Thanks both
Ok, I don't (currently) speak much GitHub but I've sent what I hope is the right kind of pull request to merge my branch back in.
noticed yesterday that all my thermostats arent running with huboitat yesterday. found this update, followed to a t, wont accept my tado login credentials: "Please check your username and password".
@Bibbleq if you want to push your changes back to the original repo, i have added you as a collaborator
Good morning, my device updates the information every 5 minutes, I would like it to be every 30 minutes
I have changed this parameter in the app but it is updated but it keeps doing it every 5 minutes, how and where should I modify it so that it is every 30 minutes?
429 // Schedule it to run every 5 minutes
430 runEvery30Minutes("poll")
431 runEvery30Minutes("userPoll")