Hello everyone, I’m new to the forum and Openhab so please forgive me if my question may sound trivial to some of you.
I’ve got a few Sonoff devices flashed with Tasmota firmware that works with MQTT. So far I have everything up and running as expected, with a few switches in my sitemap that command my Sonoff devices via MQTT and update the state of the Switch item after receiving the relevant response again through MQTT.
The issue I am facing is that currently, I can’t tell if a device in Online or Offline after it has been powered off from the mains. I have read a few topics on this matter and came to the assumption that this can somehow be achieved with MQTT’s Last Will & Testament (LWT). But I can’t figure out how to set it up. By default each Sonoff devices when first powered up broadcasts an MQTT message with its state (Online) to the topic “tele//LWT”.
What I would like to achieve is get the sitemap to grey out any items that have gone OFFLINE and maybe even update the state of the switch to OFF.