Slyke
(Slyke)
June 11, 2018, 4:21am
1
I found this automation script: https://www.home-assistant.io/cookbook/turn_on_light_for_10_minutes_when_motion_detected/
Which basically does what it says. But I was wondering if it were possible to have it only turn the light off after 10 minutes, if it was off initially?
sjee
June 11, 2018, 4:34am
2
Try to use state last changed;
I saw @sjee mentioned that you can use state.last_changed as part of an automation here .
What I’m trying to achieve is to have the automation (notification) only occur if the state has not been updated in the last 10 seconds. I’m having a hard time integrating this into my automation. I tried adding a template condition to the automation, but then it never runs as it seems to always be low. Without, the notifications operate fine, but I’m trying to prevent the notification from firing when I…