I've got an automation that keeps a light on if a sensor detects motion, however the odd time I turn it on manually with Alexa it will stay on permanently due to no sensor activity.
What would be the best way to have a timer on this for say 30 mins then if no sensor activity and 30 mins past it would turn it off.
If device on wait for 30 mins of inactivity on motion sensor.
This way regardless of how it's turned on, it will rely on inactivity on the motion sensor to turn off
will give that a shot, thanks!
@rlithgow1 was this how you were thinking?
Even simpler. Expose switch to alexa
That's even better! Wish i knew the logic better for this, putting it on test now, will let you know how i get on
For general 'auto off' needs, there is a great auto-off app here.
I use it for lights/plugs I turn on manually but want to have turn off after a set period of time - like our whole house fan, and a hot water pump that heats up water for the master bedroom:
Auto_Off Parent v1.0.1
Auto_Off_c Child v1.0.3
and introducing Auto_Off_o v1.0.1
I decided to create a Child app that was as close to the original Polling as I could get, yet remain under a Parent/Child structure. Instead of simply creating one type of Child, now there's two:
[Screen Shot 2020-10-14 at 8.58.15 PM]
This came about as I was thinking about keeping the child code very slim and not packing in the features. Instead, I thought about creating a child app that was focused…
@danabw this might be what i'm looking for
You may also wish to consider the Switch Timer with reset driver. This will setup a virtual switch which lasts a certain length of time. Check the status of this switch when you want an action to occur.
Switch Timer with Reset
Modified version of
@Cobra Switch Timer driver, with a reset if switch is triggered again before delay expires. It is 99% @Cobra code, I just added the reset for an application I needed.
Switch driver that has automatically switches OFF/ON after configurable delay
Configurable delay reset option - if switch is triggered again before delay expires, reset the delay timer
Unschedules any scheduled delay OFF/ON events if switch manually turned OFF/ON before dela…