I have 2 lights that I turn the power off to them through the day as they are not needed.
In openhab 3 when I go to the light thing it shows the light as online. The MQTT LWT for the light says it is offline.
Below is from openhab 3.
Is there a way to force load the LWT? Like I said if I just save the thing then it goes offline (which is what it should be).
I am at a loss as why it doesn’t pick up the LWT.
I am also running openhab 2.5 and it is showing the correct LWT of Offline but I have set up the LWT as a separate channel and not in the advanced (show more) section of the thing.
I tried to disable the MQTT broker I am using and then re-enable it to see if the devices go offline but they don’t. They only go offline if I press the save option for the thing.
It’s the device that publishes the message that sets the retained flag. So check the configuration on the device to verify whether or not the message is published as retained. It sounds like it is but it’s good to verify rather than assume.
Download and use a MQTT client like MQTTExplorer or MQTT.fx so you can actually see the messages on the broker.
Don’t post screen shots when the code tab is available. Screen shots are impossible to read, impossible to search, and never provide the complete information. Click the code tab at the upper right and past that using code fences.
If you verify that:
the device is publishing the online/offline messages to that topic
the messages are exactly Online/Offline, matching case and everything
after verifying all of that the status of the Thing still isn’t working, file an issue on the binding.
Yes I am also running 2.5 and yes I have separate LWT channels and they do work. I thought I would use the LWT that is built into the thing instead of having an extra channel but I may need to revisit that idea.