Gather all Alarms

Is it possible to see all Alarm Points that are ON without creating a group?

If you mean in a rule, then you should be able to use the item registry’s getItemsByTag method.

Would it be possible to create a widget that shows if you have any active (ON) alarms with an Action to display a list of Alarms that is on?

With a group, there are several easy ways to do this. Without adding the alarm points to a group, I don’t think there’s currently any option to get that info into a widget without hard coding the list in some way.

Hi,

Indeed, it would be nice to have some “alarm active” page where all active alarms are displayed…or even a pop-up that shows up when there are alarms active…

2 Likes

There is an oh-repeater widget type that you can define a widget that gets repeated in a loop. For example, you can look over members of a Group and create one row for each member of the Group. I know you can look over an index of numbers: OH3 MainUI oh-repeater "loop" value question. You can loop through Items with a given set of metadata: Question on fetchMetaData in oh-repeater. You can define the list in the widget properties: Widgets: add oh-repeater, dayjs to expression context by ghys · Pull Request #581 · openhab/openhab-webui · GitHub. But you would probably want to use the itemsWithTags (see previous link).

To show only those Items that are ON you can use an expression in the visibility property of the widget (see [Wiki] Building Pages in OH 3 - Item Customization on Auto Generated Pages) so it only shows when it’s ON.

But if you want a summary of the number of ON alarms you’ll need to use a Group or a really long expression.