Activate / Deactive Thermostat timers via lua
Moderators: leecollings, remb0
-
- Posts: 184
- Joined: Sunday 13 November 2016 10:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Germany
- Contact:
Activate / Deactive Thermostat timers via lua
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,.
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Activate / Deactive Thermostat timers via lua
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'sharrykausl 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,.
JSON / API call
Code: Select all
/json.htm?type=schedules&filter=device
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- Posts: 184
- Joined: Sunday 13 November 2016 10:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Germany
- Contact:
Re: Activate / Deactive Thermostat timers via lua
Thanks, I know this, but it would be nice to have a more simple solution in a further release.
Who is online
Users browsing this forum: No registered users and 1 guest