Having trouble figuring out how to set this up, but I figure it should be possible.
Here’s what I’m trying to do: Small space heater in the bathroom on a WiFi plug, want to be able to turn it on by pressing the button on the WiFi switch (for people that use it and don’t have access to the app, etc) and then turn off after 30 minutes.
Is there a way to set up an automation that monitors for a change in state, and then starts a timer, or something of that nature, to make this possible?
You could start a timer when the state goes from off to on, then the timer finish event would trigger the heater to turn off. You could also just turn the heater off when it has been on for 30 minutes.
I left those details out because I figured them irrelevant. Everything works properly, I was just looking for help figuring out the right way to set up this automation.
Yes, but using the “for” attribute in the trigger condition gives you timer like benefit without the need to create a timer (which needs to be monitored and resetted etc.)
This is our daughter’s room which sometimes has some additional playing with the button so having a timer I can directly control has more predictability for me.