I’ve just setup my first MQTT binding where I have an item that receives an MQTT message on each change of temperature from a device. This is working fine. I also want to display the last time an update was received. Do I need another item for this or is this available as metadata on the existing item?
I a not the brightest when it comes to OH…
However, I use rules for last update like so:
// ----- 170309 MaxG; save last date of Internet going down
rule "Update last update datum for WAN IP address"
when
Item nw_Internet changed from ON to OFF
then
INET_IP_LastUpdated.postUpdate(new DateTimeType())
end