jabesq-org / pyatmo

Simple API to access Netatmo weather station data from any python script (for Netatmo information, see www.netatmo.com)
MIT License
26 stars 28 forks source link

Add preferred position functionnality to shutter #499

Closed PoppyPop closed 3 months ago

PoppyPop commented 4 months ago

Hello,

In the control APP, i have access to a "preferred position" for my shutter. After some test and digging in the API, i noticed that there is an undocumented value of -2 for this.

Here is a small PR that add the functionnality.

i tested it in my setup and it's working well. i modified the code, to be backward compatible (low value return -1 as before for example)

Feel free to ask if you need more screenshot or proof of the functionnality

Have a nice day !

FYI, it's the round icon at the right Screenshot_2024-05-23-10-18-48-78_d79490f7c2b38dc888dbc6c067ae1f9e