I’m trying to learn the proper use of Async. Currently, when I come home, lights turn on for a few minutes and then turn off, and my mode is set.
If presence=home
only when mode=away-night
turn on lights
wait 5 minutes
turn off lights
end when
if other conditions
set mode home-night
end if
end if
This isn’t my real code, but it gets the idea across. I want to wait the 5 minutes to turn off the light, but I don’t want to wait 5 minutes to change the mode. To make this change, would I put the Async on the block to turn on the lights, or the block to set the home?