magcode / mpower-tools

Tools for operating Ubiquiti Networks mPower devices
Apache License 2.0
60 stars 46 forks source link

Disconnecting #11

Closed radical-squared closed 5 years ago

radical-squared commented 5 years ago

Let me start by thanking you for the really great work. Your solution makes my mPower PRO integrate smoothly with my Home Assistant instance.

One thing I noticed is that instead on maintaining continuous connection to Mosquitto server, my mPower constantly connects and disconnects to the Mosquitto server every second. It reads commands and posts states as it should, but by connecting and disconnecting so frequently it floods my HA logs.

Is connecting and disconnecting the desired behaviour? Is there a way to make mPower maintain constant connection to the Mosquitto server?

magcode commented 5 years ago

Thanks for trying and giving feedback.

See https://github.com/magcode/mpower-tools/issues/10#issuecomment-450618913