#Timed state or delay

1 messages · Page 1 of 1 (latest)

low arch
#

I have an automation that turns a light off when TV is turned on and light turns on when TV is turned off, Then I want the light to turn off after 5 minutes. not sure how to set this up, I looked at helpers and setup a 5 minute timer but then what? how to use it?
looking for examples to follow. what is the right way to do it even?

trail sapphire
#

Start with two triggers LG on and LG off.
Then you put an IF LG on then light off.
then you put another IF LG off then ligt on then either start a timer of 5 min or delay of 5 min to then turn the lamp off when the delay of 5 min has passed or off when the timer has reached 0. There are probably more ways to solve this on but this is one of them.