How (without changing program / recomple, if possible) have correct status of Tasmotized devices in OpenHAB2?

14 views
Skip to first unread message

Laurentp

unread,
Jul 9, 2020, 1:28:31 PM7/9/20
to TasmotaUsers
Hi there,
I'd like to have TRUE status of my Tasmotized devices, "Online"/"Offline", now they always show "online" in OpenHAB2.

How to change this? (Tasmota side or OpenHAB side?).

Michael Ingraham

unread,
Jul 9, 2020, 1:50:39 PM7/9/20
to TasmotaUsers
I assume you are using the MQTT2 openHAB binding. I believe it uses the LWT messages to determine the state of the device. openHAB should show the device OFFLINE when the MQTT broker cannot reach the device (i.e., the broker sends the OFFLINE LWT message).

Laurentp

unread,
Jul 9, 2020, 2:08:37 PM7/9/20
to TasmotaUsers
Right :)
I use mosquitto on OrangePi3 (Pi PC+ was too slow / not enough RAM to host OpenHAB2...) it is Armbian -> Debian Buster derivative.
And MQTT binding.

Did NOT see "LWT offline" while watching raw (topic '+/+/+' MQTT using mosquitto_sub).
"Online (retained)" YES, and maybe this causes this problem? (retain)

Michael Ingraham

unread,
Jul 9, 2020, 2:21:09 PM7/9/20
to TasmotaUsers
Retained LWT is the typical setup. The broker may not issue an LWT for a device if the device disconnects "gracefully". This may explain what you are noticing:

Philip Knowles

unread,
Jul 9, 2020, 2:42:37 PM7/9/20
to Michael Ingraham, TasmotaUsers

For ‘critical’ devices I show the last message received time in a sitemap. Some devices are in a cron job every 5 minutes which checks/sets a flag which gets reset by an openHAB on updated rule. openHAB then sounds an alarm on Google Home Hub devices, sends me an email and I check the sitemap for the rogue device.

I’m using the MQTT binding (old version as  I find it a lot easier to use). It’s all running on a Pi3+

 

Regards

 

Phil K

 

Sent from Mail for Windows 10

--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/60b896b2-ef84-4754-932a-7db4549cb562o%40googlegroups.com.

 

Greg from Oz

unread,
Jul 9, 2020, 8:23:47 PM7/9/20
to TasmotaUsers
I have  page on my site map that has all LWT status of the tamotas
Below is the paper UI setting:
Screenshot from 2020-07-10 10-17-01.png

Below is from the sitemap:
Text item=LightHall_HallLightLWT valuecolor=["Offline"="red","Online"="green"] label="LWT Light hall" icon=qualityofservice
The Offline Online IS case sensitive in the example above in case you have something else that uses just lower case.

Below is what it looks like in the sitemap:
Screenshot from 2020-07-10 10-21-57.png

Don't know if that is what you are after but hopefully it may help.
Reply all
Reply to author
Forward
0 new messages