I’m trying to make a simple automation to turn on a couple of lights based on lux. However, sometimes it triggers but nothing happens and sometime it doesn’t even trigger. I have similar automations with three different brightness settings and time conditions, lower brightness towards the evening.
I’ve used the webgui to configure it.
I got other lightbased automation that works just fine. For exemple “Turn off light when alarm is armed”.
Yes this is how it comes out of the GUI.
I’ll give it a shot to split the time condtion into two.
The issue that I’m having though is that it does tigger but doesn’t perform the action. As far as I can see there isn’t anything wrong with the action.
Since postning I’ve also added an input_boolean so each automation only triggers once per day.
You don’t need to split the time condition. See here. I use automations with a time condition like the one in the example at that page with no issues. The time condition OP has will return true if the time is between 12:00 and 15:59.
The numeric state trigger requires the sensor to cross the threshold that you have defined for it to trigger. In this case, the sensor needs to be above 500 and then go below 500 for it to trigger. If it’s already below that threshold, it won’t trigger (otherwise it would trigger constantly). The action does indeed look ok, so I’m not sure why it wouldn’t carry out those actions when the automation is fired.
I just checked my automations and the evening-light automation was triggered 20:33.
At the same time I got this error in my logs: Error reporting state - 5: Requested entity was not found. 20:33 components/cloud/google_config.py (WARNING) - message first occurred at 17:04 and shows up 3 times.
I let it run and found that all three booleans (for the three different automations) were set to OFF at the same time, 12:49 PM. However when I turned them on and then ran:
automation.reload
it fired the first automation but when time came to trigger the next one it never did so I reloaded the automation again and then it was triggered. This is strange. I might as well remove all and redo them, might get lucky
I have same issue. My automation worked for 2 days, but not working after that.
I have a binary_sensor to set a threshold value and automated that to turn on/off that sensor. binary_sensor.yaml
Thanks for the reply. I did split the time, one is after 17:30:00 and one is before 06:00:00. Still not working.
Shall I try placing the before timing first and then after time?
If changing day is the issue, shall I created 2 or 4 conditions? Like 17:30:00 to 23:59:59 and one from 00:00:00 to 06:00:00? Or split them also?