Page 1 of 1
Activate / Deactive Thermostat timers via lua
Posted: Thursday 14 January 2021 14:06
by harrykausl
At the moment I can activate / deactive timers in my thermostats by getting the id of the timer an activate or deactivate it in lua. It would be nich, if I could say in lua something like "deactivate timer for name..." Now at the moment, I have to change my script when I enter a new timer or delete one,.
Re: Activate / Deactive Thermostat timers via lua
Posted: Thursday 14 January 2021 14:34
by waaren
harrykausl wrote: ↑Thursday 14 January 2021 14:06
At the moment I can activate / deactive timers in my thermostats by getting the id of the timer an activate or deactivate it in lua. It would be nich, if I could say in lua something like "deactivate timer for name..." Now at the moment, I have to change my script when I enter a new timer or delete one,.
I guess the only way to do this is to get the list of timers for all devices with curl (or openURL() in dzVents) and filter this list on the name of your thermostat to get the relevant id's
JSON / API call
Code: Select all
/json.htm?type=schedules&filter=device
Re: Activate / Deactive Thermostat timers via lua
Posted: Friday 15 January 2021 13:56
by harrykausl
Thanks, I know this, but it would be nice to have a more simple solution in a further release.