unixko / MitsuCon

Mitsubishi Heat Pump Controller for Home Assistant
Apache License 2.0
68 stars 12 forks source link

Units do not reconnect if MQTT server is restarted #17

Closed boy-wonder closed 4 years ago

boy-wonder commented 4 years ago

Thanks for this superb code which I use on all my units in my house.

I use a stand alone Mosquito MQTT broker connected to Home Assistant. If I have to restart Mosquito, normally because I have to restart the hardware it is running on, MitsuCon does not reconnect. The only way to resolve this is to power off all the units and put them back on again.

Perhaps there is a configuration issue I don't understand?

unixko commented 4 years ago

I use Mosquitto broker Add-ons in Hass.io without any restart problem. To separate problem please try:

boy-wonder commented 4 years ago

Thanks for your help. I think I have resolved the problem. I did jump to conclusions I think. It was HA configuration.

I have used HA for a long time and over that time many things have moved from manual yaml config to GUI based config using Integrations. I deleted my manual mqtt setup entries in configuration.yaml and recreated in the GUI and it seems to be OK now. Doesn't make sense to me, having read all the documentation, but there we go!