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

Sensor value not updating anymore after MQTT server connection is interrupted #6

Open
wmnl25 opened this issue Mar 1, 2018 · 1 comment

Comments

@wmnl25
Copy link

wmnl25 commented Mar 1, 2018

It looks like the plugin is not reconnecting when the connection to the MQTT server was lost. The MQTT server I'm using is a home automation server on the local network. I experienced this after a power loss and after a regular reboot of the server. Actor remains in the state it was before the MQTT server reboot and the sensor does not update until craftbeerpi has been rebooted. Result: fermenter (fridge) was at 5 degrees while craftbeerpi reported the target temperature. I'm still testing the setup, so no beers were lost :).

@pedela
Copy link

pedela commented May 28, 2019

Hey @wmnl25 ,
not sure if still needed, but this was fixed here: MQTTDevice@e7e8bde#diff-743b1adbf37db12e16e01ef62a6f7d72R21
(Important lines are 21-26, feel free to copy (only) them to your plugin, if you don't feel comfortable replacing the whole file).
@Manuel83 Maybe this is something to consider merging into the "main" plugin repository as well? Resubscribe to sensor topics after reconnect?
Thanks for the great software by the way!

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

No branches or pull requests

2 participants