
--
If you create an item in a LWT.items file like this
String MiFloraLWT "MiFlora LWT" {channel="mqtt:topic:MiFlora:LWT"}
And then in your sitemap
Text item=MiFloraLWT label="Miflora LWT [%s]"
You will get this when the device is online

And this when it disconnects from mosquito

You can use the following in a rule
when
Item MiForaLWT changed to “Offline”
then
do something
end
You could also use the dynamic sitemap features
Text item=Flower_Moisture visibility=[MiFloraLWT == "Offline"] labelcolor=["red"] label="Moisture [Offline]" icon="Humidity"
Text item=Flower_Moisture visibility=[MiFloraLWT == "Online"] labelcolor=["green"] label="Moisture [%.0f %%]" icon="Humidity"
Which will give you the following when offline

and this when online

Regards
Phil K
Sent from Mail for Windows 10
From: Laurentp
Sent: 05 April 2021 00:11
To: TasmotaUsers
Subject: How to make status of Sonoff (Tasmota) devices get updated in MQTT / OpenHAB2?
Hi there,
--