Hi everyone,
I saw a widget in the community that displayed the presence of an item in minutes or hours, but I can’t find it anymore. I’m unsure how it was implemented.
I read that it might be possible to use lastChange, but I’m not certain how to use it correctly in a widget. Could someone clarify:
- Is it possible to display the time since the last change directly in a text widget?
- How can one evaluate historical values to show presence duration or uptime of an item and show it in a widget?
I’m using OpenHAB 5.1 with the Main UI. Any example or pointer to an existing widget would be very helpful.
Thanks a lot!
