No, that’s not a problem. It’s not aesthetically pleasing, but it’s not wrong.
This might not be the source of this problem, but I think this is wrong and you should fix it. It might lead to problems later. The times shown in home-assistant.log should be local time. Probably you have the time zone set in the OS (or at least the environment in which HA runs) set to UTC. It should be set to the same time zone that HA is set to. If you don’t know how to do that, search the forum. This has been discussed A LOT.
If you’re tempted to write a trigger that way, then you should stop and think about it some more. It’s almost never the optimal way to write triggers in automations. Sure, there are a few use cases where that’s really the only way to do it, but more often than not there’s a much better, and more efficient, way if you just think about it some more.
@tom_l is right. I can think of two ways to solve your problem.
The first is to add time triggers to your automation for '05:45:00'
and '18:30:00'
, and a numeric_state
condition that the temperature is above 26. This is generally what I’ve done in my automations.
EDIT: Oh, and if you want it to do the right thing if HA is stopped and later restarted when the climate is off, but the temperature is above 26 and in the specified time ranges, then add one more trigger using the homeassistant
start
trigger.
The second is to remove the conditions, then add another automation that turns the first automation on and off at the appropriate times.
EDIT: Oh, and just like the first solution, if you want things to work correctly after a HA restart, you probably need to have a homeassistant start trigger that turns the first automation on or off depending on what time it is.
If you’d like a concrete example of how to do either of these, just let me know.