unfoldedcircle / integration-home-assistant

Home-Assistant Integration for Remote Two
Mozilla Public License 2.0
28 stars 5 forks source link

After initial setup on remote integration remains in disconnected state #43

Closed zehnm closed 10 months ago

zehnm commented 10 months ago

A fresh setup on the remote (e.g. after a factory reset) leaves the integration in DISCONNECTED state. At least from the remote's view. However, the integration is not showing any connection issue and is communicating with HA. Sending connect events (either through web-configurator, or manually with the Core-API) has no effect, since the internal state is already CONNECTED. There's also no device_state event sent back: https://github.com/unfoldedcircle/integration-home-assistant/blob/bbd3f6e329d9b70ae566e566d5ed284d3e2fa52f/src/controller/handler/r2_event.rs#L26-L30

After sleep & wakeup, the state is synchronized and the integration is working. Same happens after a reboot.

Discovered while testing unfoldedcircle/feature-and-bug-tracker/issues/237 after user reports of having to reboot the remote.

Required fixes: