I am new to the home automation with home assistant. I have a pool pump relay that is controlled buy sun up sun down and works great until there is a power outage. Then the automation will not restart. Any help would be apricated. Thank you
Automations don’t restart after a power outage, or even after a simple restart of HA.
Are you allowing your automation to run continuously between sun up and sun down? A better approach would be to have two automations, one running at sun up and one at sun down.
You might then have a third automation triggered by a restart of HA, to check whether the pool pump was running and turn it off if it was the wrong time of day
Helpers survive restarts I believe. So if you used something like a timer helper you could run it and then stop it with an automation.
or a toggle helper
When you say the automation doesn’t restart do you mean the pump relay turns off when power goes off but when power comes back on the relay doesn’t turn on to keep the pump running?
When HA starts all automations are running , but they are waiting for a trigger. Perphaps the problem is with the relay. What sort of relay is it? I have some smart power sockets that survive power our restarts and some that dont’.
You can add a trigger that it will also (!) start at a restart of HA, do think about the consequences and proper conditions then.
trigger: homeassistant
event: start
Please post your automation (as formatted YAML). We can review it and suggest how to make it resilient to power outages.
Yes when power is restored it does not close relay to run pump,
Thank you for the information i will try this