Run rules for semantic groups in OH3

You can get all items from such a semantic tag. This is a part of a daily JS rule which checks for battery levels:

var allBatteries = itemRegistry.getItemsByTag("Battery");
for (var i in allBatteries) {
       var state = allBatteries[i].getState();
...

Br,
Stefan

1 Like