My automation, which turns off smart plug after tablet battery reaches 94%, didn’t trigger when HA was started after 7 hours of downtime.
The plug was ON, so my tablet was in charging state when my server crashed. What I don’t understand, why this automation didn’t trigger when I started HA after 7 hours. Well entity state value was updated to 100%, so I suppose this should trigger it, because it’s above the last recorded value(57%)?
When you started Home Assistant your sensor state went from unavailable to 100. unavailable is not below 93, thus it did not trigger.
Thought about that, but I don’t see any mark in graph that state was unavailable. Wouldn’t it show grey color(or just empty) space when state was unavailable?