andig / fritzapi

Home automation API for Fritz!Box, Fritz!DECT and FRITZ!Powerline devices
MIT License
139 stars 27 forks source link

Hard to set presence for thermostats #38

Open soenkegissel opened 3 years ago

soenkegissel commented 3 years ago

I have some DECT thermostats and like to set them according to my presence in node-red. I used the thermostat node and set it to night mode when away. So far so good.

But I like to set them to the temperature I set in the fritz.box interface and resume the daily schedule. This doesn't seem possible with the API calls so far. I can off course set it to day level, but day level maybe just on in the morning. So returning home in the afternoon and setting it to day level is wrong according to the schedule.

Reading the current temperature before setting it to night level (left the house) and restoring it after coming back is no option ether. If I leave in the morning, it reads 23°, but when I come according to schedule it should be just 17°. Restore morning value would be 23° again.

How to set this up with node red?