Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After HA restart the initial values not accessable #44

Open
lazlyhu opened this issue Aug 20, 2019 · 4 comments
Open

After HA restart the initial values not accessable #44

lazlyhu opened this issue Aug 20, 2019 · 4 comments

Comments

@lazlyhu
Copy link

lazlyhu commented Aug 20, 2019

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

@avbdr
Copy link

avbdr commented Feb 4, 2020

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

@lazlyhu
Copy link
Author

lazlyhu commented Mar 25, 2020

Thank you the suggestion, I'll check.

Maybe the retain option from #55 could be a solution too.

@OddyAte
Copy link

OddyAte commented Jul 6, 2020

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.

@orzechszek
Copy link

Hi,
Can anyone merge this fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants