states.sensor.alarm.state reports 05:00 now().strftime("%H:%M") is padded with zero, checked that.
No clue why this doesn’t trigger. What am I missing here?
If you paste your template in the template dev panel what does it return? It needs to return a “True” for the trigger to fire. If you are getting a true/false value it should be working correctly. Can you manually trip your alarm to watch what happens?
Hmm… it returns true right now, only difference is that it normally says 05:00 vs now 16:25.
Very strange. It should be triggered. Going to test some more. Will report back.
And final hail mary attempt, either remove or comment out the conditions. They shouldn’t be an issue but lets make it as simple as possible and then if that works we know its the condition causing the issue.
Hi,
I’ve tried to use quie similar automation and it never worked.
I came to a conclusion that the function now ().strftime() will not be dynamically updated when it’s in a trigger for some unknown reason. I use sensor.time instead now.