-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Mqtt retain #2
Comments
@firefigther0575 I'm not sure, do you have an example, logs to show what exactly is logged? |
Maybe it is not the same issue as @firefigther0575 is experiencing but I had something similar. |
@bobskee how did you workaround this, did you manage to change your automation? If so can you give an example for the documentation? If you haven't got it working, I'm not sure if changing the code can fix this, I can switch the order and first do state and then attribute update, but either one is lagging. Need to look on how other add-ons do this. |
I am not proud of my workaround but in my case it fits my needs. My automations now only trigger on changes of the 'tts' attribute. Everything else is ignored and unused. Then the 'tts' value is checked against a locally cached value (using a input_text helper in HA) to verify it truely changed since the last time the state was updated. If true then continue the automation. I am very curious how other addons handle those MQTT updates. P2000_rtlsdr is the only project I use where this is an issue (still very grateful for your work!) |
Hi all, Addon config example:
This is a debug dump (from Node-Red) from the sensor. Hope it helps! |
using it for a week now and it works great!!! stable!
but having some issue with the retain properties of mqtt sometimes it doesnt update the sensor and it retains the previous message.
what are youre thoughts on that.
greets
The text was updated successfully, but these errors were encountered: