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] support availability transformation in generic mqtt thing #10226
Comments
The availability is thought of to be used with and LWT message from the device. |
@jochen314 yeah its how i'm using it, but in my device, (an esp32 using autoconnect) i have the device auto-restart if it detects the network dropped and it actually reconnects (and sends the "online") before the LWT message gets to the oh3 client. for example:
so my solution for this situation was to just send |
There should not be an out-of-order of messages in a single topic.
Then openhab will get the messages in the correct order. |
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/mqtt-lwt-things-definition-availability-topic/103065/22 |
This is a duplicate of #10632 |
i have a few devices that send availability messages to some topic
/status
that are json and include a little bit of extra metadata:ONLINE:
{"status":"ONLINE", "timestamp": .... }
OFFLINE:
{"status":"OFFLINE", ...}
oh3 doesn't let me extract the "status" field from the json so the thing always shows up as offline
The text was updated successfully, but these errors were encountered: