-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Zigbee - Retain flag #7835
Comments
Have you checked to use rules for this use-case. Var1 to 4 are persistent and might help you with your problem during reboot. Or you create a rule and send the vaulte as a retained mqtt message. Also an idea. Where exactly you want the value to survive? |
I can add a retain flag to the |
For now I found a solution using RULES (just posted few minutes ago on Discord>general) as also suggested by @stefanbode. Shold be great to change SENSOR messages from...
...to something like this...
|
Unless it's easy to republish to a device specific topic via rules, we can also add a SetOption to insert the short_addr in the topic specifically for retained messages. The JSON format will remain the same though. That's the community decision on the JSON message format. |
Can you post an example? Topic per device always helps to not implement checks on the hub on single entity. |
Add Zigbee use distinct MQTT topics per device for SENSOR, allowing retained messages (#7835)
Have you looked for this feature in other issues and in the docs?
Yes
Is your feature request related to a problem? Please describe.
No problem...but I need to have some sensors values retained or I lose states after hub restarts
Describe the solution you'd like
A command to set retain for specific devices
eg.
ZigbeeSensorRetain
with the list of short addresses (separated by a comma) enabled to retainDescribe alternatives you've considered
Enable retain for all Zigbee messages
Additional context
Add any other context or screenshots about the feature request here.
(Please, remember to close the issue when the problem has been addressed)
The text was updated successfully, but these errors were encountered: