Activate / Deactive Thermostat timers via lua

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
harrykausl
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

Post 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,.
User avatar
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

Post 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
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
harrykausl
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

Post by harrykausl »

Thanks, I know this, but it would be nice to have a more simple solution in a further release.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest