-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
updated Thermostat and Homecoach #90
Conversation
This class is deprecated in the last API from Netatmo Most devices are in HomesData with HomeStatus
some rewrite for successful selftest
I have also changed HomeData. |
This will fix and close #88 The thermostat is the Module and the Relay is the Bridge for the Thermostat and Valves are also Modules, I think Netatmo is going to put all devices in HomesData/HomeStatus. |
Hello @JurgenLB , could you explain the following code: if device.get('time_utc',limit+10) > limit :
return {'When': ds, '_id': hid, }
else:
return {'When': 0, 'id': hid} In the else clause, the '_id' property has become 'id'. Is it a typo ? return { '_id': hid, 'When': ds if device.get('time_utc',limit+10) > limit else 0} |
yes your correct, its a typo from me. |
Hello Jurgen, you have done a very great job of refactoring. I don't understand the benefit of saving the access_token considering that it will be discarded before any use (with expiration still forced) ? |
When we generate a token in the portal from Netatmo. So its only on the first run that the access_token is imported, after that it can be stored or only the key remains kind regards Jurgen |
maybe it is better to undo the changes off the Token and save that for an other time. |
I agree with you, until Netatmo allow longer lived access token, it is not necessary to save it in the credential file considering it will probably immediately be discarded on new authentication. |
This is to restore the old behavior for the Thermostat.
Now the code search for a ID or Name for the Relaystation and than for the Thermostat module.
The valves are not accessible by the class Thermostat