Releases: philippelt/netatmo-api-python
Minor bug fix
v4.1.2 Bug fix in modulesNamesList (see #86 issue discussion)
Homecoach updates
Documentation update and Homecoach code cleanup, thanks to @JurgenLB
Authentication refactoring
This release will no longer load authentication data on module load but only on ClientAuth
initialization. This allow for a new parameter credentialFile
that can be used to optionally replace default file name and location of ~/.netatmo.credentials
Netatmo authentication new refresh_token policy
Handling of refresh_token expiration. This release requires update of the .netatmo.credentials file by the library (requires write access by the host process).
Various compatibility fixes
v3.3.0 [Fix] Fix regression #62
Add direct netatmoAPI for unsupported devices
Add rawAPI function to be able to call any Netatmo API using existing authentication mechanisms. Return body part of the result as a dictionary. See rawAPIsample.py for an example.
Switched authentication to preauthenticated refresh_token
Netatmo seems to no longer (on july 12, 2023) allow for grant_type "password" authentication, even for an app created in the same account than the target home.
That means that existing applications can no longer be used with previous credentials.
In the App management web (https://dev.netatmo.com / MyApp), there is a token generator that allow for creation of scoped token. The refresh_token generated must be used as a replacement for username/password couple. Take care to properly select scope depending from what you expect to do with the library (eg read_station to be able to read value from weather station, you can select multiple roles in a scope).
If you are using Netatmo security products, take care to protect credentials and select least required privileges in the token scope.
Minor fixes for "Home" support
Various minor fixes following stronger integration of Netatmo "home" parameter in API...
Use of "Home" parameter
Introduction of the new home parameter that has been enforced by Netatmo as a selector for grouping the various devices associated to an account.
Minor fixes
Various minor fixes and a warning to alert windows users to take care of default USERNAME env var defined by the OS that would conflict with lnetatmo authentication.