TECH7Fox / asterisk-hass-integration

Asterisk integration for Home Assistant
60 stars 14 forks source link

Asterisk Server Disconnects #63

Closed diablo581 closed 1 year ago

diablo581 commented 1 year ago

I'm having trouble where the integration goes into a disconnected state and doesn't recover. When I try to reload the config in an automation it says that the entity can't be reloaded because it isn't in a recoverable state.

If a restart HA then it recovers.

TECH7Fox commented 1 year ago

Yeah, the integration doesn't have recover set up. There is a new library that I want to use, so when the connection get's lost, the library reconnects.

See #57

wolfwander commented 1 year ago

What about de ability to reload de integration? It would be very useful for connection issues.

TECH7Fox commented 1 year ago

Can you try v0.9.5? On setup it should retry if it fails to connect, so that the add-on has time to start up on a full system restart. It probably doesn't work when the integration is already set up and the add-on restarts.

TECH7Fox commented 1 year ago

What about de ability to reload de integration?

It looks like it's only possible to retry on setup. There isn't a way to fully reload the integration after all the entities are set up.

TECH7Fox commented 1 year ago

Closing now since the integration now retries on startup, and if it disconnects after startup you can now reload it manually without restarting HA. Let me know if you have any issues.