Thanks @Tetsuo
But i think everything is working well, due to the fact, that no item state changes but sometimes the Badge is not there.
Every time i reload my overview-page i get the frontail log message:
Attempting to send a state update of an item which doesn't exist
In this post
https://community.openhab.org/t/attempting-to-send-a-state-update-of-an-item-which-doesnt-exist/111807/8?u=shured
there is the information, that this should be caused by having components in widgets, with item-definition but the item is not correclty defined.
In my case this is exactly what should cause this message, because im using always strings like:
Bath;Livingroom;Buero;
and im splitting them by “;”
This can lead to have (in the upper example) in array-cell 4 a empty cell.
Thats why (i think):
- oh-repeater creates a badge with a not defined item-link
- via “visible” config i supress this badge to show up
But for sure its there and can cause the error, but you can’t see it.
Maybe this is a interruption in creating all the items?
Now it gets a little bit off topic:
Can anyone tell me how to use the “filter” option for oh-repeater to only show badges, as defined in my visible-config defined in the badge-configstrong text
I didn’t get it working, since i need the int_idx etc
I would need something like this line of code:
(As you know, the current “visible”-line is not placed at oh-Repeater, but at the badge-component)
(The shown line does NOT work)
...
- component: oh-repeater
config:
filter: '(items["lTop_Str"].state.split(";")[loop.int_idx] !== "" && items["lTop_Str"].state.split(";")[loop.int_idx] !== "NULL")'
...