Stop timer in lua

Moderator: leecollings

Post Reply
harrykausl
Posts: 202
Joined: Sunday 13 November 2016 10:43
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Germany
Contact:

Stop timer in lua

Post by harrykausl »

Hello,
I track my TV with the system alive checker. When tv is started, I switch a wallplug with a chromecast to on. When tv is set to off, I switch the plug to off after 20 minutes. All is done in lua. When within the 20 minutes the tv is started again, I want to check, if there is a off-timer for the wallplug running and stop it. Is this possible in lua? If not, I have to create a dummy-switch to do the offset timing for the wallplug.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest