Forgive me if the title is confusing, basically I have two automations that seem to conflict with eachother:
When motion is not detected for 1 hour, turn off the light.
When the sun sets, turn on the light.
Everything works great, EXCEPT for when there is no motion all day, the sun sets and turns on the light, but then it stays on forever basically until the sun-rise automation turns it off.
I want the light to turn on at sun set, but also turn off after 1 hour if there is no motion. because the motion sensors did not change states, I think it doesn’t trigger…
You could have created your own thread and specified which devices & integrations were showing these symptoms, instead of hijacking a thread which had nothing to do with what is causing your issue.
If you had done that (and asked nicely), I probably would have jumped in to help, because I’m 80% certain I know what is causing your issue and how to fix it.
That was before I read your posts in this thread and the one you linked to. I’d rather spend my time helping others who are less entitled and arrogant. Good luck.
So typical of the mentality in most open source project I’m not surprised to say the least. Will just trash this **** and move to another platform… Already wasted to much time on HA which is rigged with bugs
yeah, you can’t do "if"s like that. if checks the current state. also the “for:” approach won’t survive a home assistant restart… ie, if something happens before the 30 minutes are up, it won’t trigger.
what i’d do is to use a timer helper. create a timer. then have 2 audomations: whenever it goes to idle, turn the light off.
then when you have sunset or whenever you have motion, start the timer.
turn the light on as you currently have it. just remove all the current places where you’re turning the light off. let the timer automation do that.