23/11/2021

Home Automation System - OpenHAB 3 Migration - 35. Last update items check [Versione in italiano]

by Marco Lamanna

Thirty-fifth chapter related to my OpenHAB 2.5 to OpenHAB 3 migration.

In this video we are going to see how to check last update timestamp of the data sent by the items.

Using the concept of OpenHAB profiles, in fact, in my configuration I automatically store the last update timestamp of the various items in order to verify when each item has sent the last valid value.

Today we are going to see how to write a rule to be able to check which items didn't send data for more than a predetermined and configurable time interval.

The rule will be written in Javascript and will use functions to dynamically manage the belonging of an item to a certain group. In this way my rule will be able to add / remove expired items in a particular group and be able to identify and see them all together through the sitemap in a very simple way.

As in the case of the other rules related to alarms, everything will be manageable and configurable via sitemap, without having to deal with the rule code anymore.

This video does not presume to be a tutorial, but simply a step by step of what has been done to achieve the goal. I hope that it will help someone.

Enjoy your viewing

[Open on YOUTUBE]