Hi, so I made this list repeater for the alarms that have a RED/GREEN badge with state.
I switch on those alarms by rules but on the right made myself some debug switches for testing.
I noticed that the Badges are not updated in real time! I have to reload page to its status. Why?
The oh-toggle-item list to the right is updated fine if it changes from remote source.
Here is my code for the badge, quite simple, am I doing something wrong here?
component: oh-list-card
config:
title: Alarms
outline: true
slots:
default:
- component: oh-repeater
config:
for: i
sourceType: itemsInGroup
groupItem: gAlarms
fetchMetadata: semantics,widgetOrder,uiSemantics
slots:
default:
- component: oh-list-item
config:
title: =loop.i.label
footer: =loop.i.name
badge: =loop.i.state
badgeColor: "=loop.i.state === 'OFF' ? 'green' : 'red'"