wmalgadey / PyTado

Python binding for Tado web API. Pythonize your central heating!
GNU General Public License v3.0
76 stars 41 forks source link

Changed presence command to presenceLock #30

Closed jasperro closed 4 years ago

jasperro commented 4 years ago

In the latest tado beta app a override switch was added to change presence state manually, even when auto assist is not enabled. This app uses presenceLock instead of presence as the command.

Try curl -s "https://my.tado.com/api/v2/homes/123456/presenceLock" -H "Authorization: Bearer auth_token" -X PUT -H 'Content-Type: application/json;charset=utf-8' --data '{"homePresence":"AWAY"}'

I have only tested the curl command, not the change to PyTado.

jasperro commented 4 years ago

I have tested it now in home assistant and everything works. I think it's ready to merge.