elric91 / homeassistant_zigate

Custom components for Home Assistant
MIT License
22 stars 5 forks source link

handle reconnects to zigate #11

Open lolorc opened 6 years ago

lolorc commented 6 years ago

It looks like it doesn't reconnect to zigate when it lost connection. Only getting the "ZIGATE : Connection Lost !" message and then nothing.

Happening with both zigate serial and wifi.

I'm using zigate from a remote server with ser2net on it, handling disconnection is quite important.

lolorc commented 6 years ago

I guess in the mean time, connection retries should be handled as well.

lolorc commented 6 years ago

looks like zigate wifi is about to be available. this feature will be needed ;-)

elric91 commented 6 years ago

zigate wifi is already enabled is the lib as far as I remember. I had a look at python asyncio details, but reconnection does not seem straighforward :'(

lolorc commented 6 years ago

I also tried to look at it, and I don't have enough spare time to be of more help, sorry about that.