gree-hvac-mqtt-bridge icon indicating copy to clipboard operation
gree-hvac-mqtt-bridge copied to clipboard

After HA restart the initial values not accessable

Open lazlyhu opened this issue 5 years ago • 4 comments

Issue

If the HA started later then the MQTT bridge we don't get the initial values. It's happening often when you touch to HA config files, and restart it because this. It would be great to somehow just load the current values of the climate, without setting a new one.

Temporary solution

To solve it, I added a small solution to my NodeRed, which restart this AddOn, but it's not too elegant. I have a MQTT message when HA started (based on a simple HA automatisation), I can catch that.

image

lazlyhu avatar Aug 20 '19 13:08 lazlyhu

A fix for this problem is available at http://smarttechdo.com/~avb/mqtt-group.diff patch adds --mqtt-group parameter using which ALL index.js instances will be able to listen same /status request. On HA startup automation will request /status from the air conditioners and will update its counters. Pretty simple

avbdr avatar Feb 04 '20 03:02 avbdr

Thank you the suggestion, I'll check.

Maybe the retain option from https://github.com/arthurkrupa/gree-hvac-mqtt-bridge/pull/55 could be a solution too.

lazlyhu avatar Mar 25 '20 16:03 lazlyhu

A fix for this problem is available at http://smarttechdo.com/~avb/mqtt-group.diff patch adds --mqtt-group parameter using which ALL index.js instances will be able to listen same /status request. On HA startup automation will request /status from the air conditioners and will update its counters. Pretty simple

Hey guys, I have the same issue and I would really like to implement the fix suggested but honestly I have no idea how can I do that. I installed the add-on from Home Assistant.

OddyAte avatar Jul 06 '20 19:07 OddyAte