-
Notifications
You must be signed in to change notification settings - Fork 31
reconnect after device has been powered off #28
Comments
+1 here. When the device is offline on HA startup, the following logging is produced:
|
It would be really great if this could be fixed. I had recently a power outage. Everything comes back on without any issue, but the air purifier. For that, I have to restart HA. Any idea how to solve this? |
Has any of you tried any of the methods what is in this topic? https://community.home-assistant.io/t/add-service-integration-reload/231940 Either a service call of: homeassistant.reload_config_entry But for this a config entry would be required, what is currently not part of the integration. Or maybe just a service call to: homeassistant.update_entity |
Ah, you're trying a workaround for the unavailable by reloading the integration via a service call. Could work yes |
The purifier is not on a UPS, so it is loosing power during an outage. When the power is restored, to get it work, I have to restart HA, what I would like to avoid. Unfortunately I cannot test the idea, as I don't have access to the power plug of the purifier. And fortunately haven't had any outages for the last week. 😆 |
Actually there was an outage this morning, so I could try the update_entity option. And it is not working as the entity hasn't got a unique id, as it was set up through the configuration.yaml. So it cannot make a service call. |
Ok, you might want to set the |
I tested this pr version and it reconnects |
What is your case requiring the reconnect? Is it power outage or just loosing connection? Just asking because there are two issues regarding loosing connection. One is the power outages what could be solved by adding a unique_id and calling the service to restart the integration. |
Power conservation; i disable parts of the home conditionally using sonoffs. |
@o0v7r0o i just reproduced this and it indeed is a problem to be solved :)
The text was updated successfully, but these errors were encountered: