I am testing:
openHAB 5.0.0.M1
Milestone Build
Main UI Commit 8b7f4700
and I have a widget that checks the status of doors, windows, blinds to show if open or closed.
It works fine on openHab 4.3 but doesn’t list anything in openHab 5.
Has the way the tags are used changed in version 5?
Here is the widget code:
uid: Status-list-metadata-door-window-blinds
tags: []
props:
parameters:
- default: door
description: Tag group name
label: Tag name to search
name: prop1
required: true
type: TEXT
- default: WINDOW
description: Tag group name
label: Tag name to search
name: prop2
required: true
type: TEXT
- default: BLINDS
description: Tag group name
label: Tag name to search
name: prop3
required: true
type: TEXT
parameterGroups: []
timestamp: Jun 25, 2024, 9:15:09 AM
component: oh-list
config:
style:
--f7-list-item-after-font-size: 12px
--f7-list-item-after-font-weight: bold
--f7-list-item-after-text-color: var(--f7-text-color)
min-width: 250px
slots:
default:
- component: oh-repeater
config:
for: index
fragment: true
itemTags: =props.prop1
sourceType: itemsWithTags
slots:
default:
- component: oh-list-item
config:
badge: =loop.index.state
badgeColor: '=(loop.index.state === "OPEN") ? "red" : "green"'
icon: '=(loop.index.state === "OPEN") ? "f7:lock_open" : "f7:lock"'
iconColor: '=(loop.index.state === "OPEN") ? "red" : "green"'
iconUseState: true
title: =loop.index.label
- component: oh-repeater
config:
for: index
fragment: true
itemTags: =props.prop2
sourceType: itemsWithTags
slots:
default:
- component: oh-list-item
config:
badge: =loop.index.state
badgeColor: '=(loop.index.state === "OPEN") ? "blue" : "green"'
icon: '=(loop.index.state === "OPEN") ? "f7:lock_open" : "f7:lock"'
iconColor: '=(loop.index.state === "OPEN") ? "red" : "green"'
iconUseState: true
title: =loop.index.label
- component: oh-repeater
config:
for: index
fragment: true
itemTags: =props.prop3
sourceType: itemsWithTags
slots:
default:
- component: oh-list-item
config:
badge: =loop.index.state
badgeColor: '=(loop.index.state === "OPEN")||(loop.index.state === "100") ?
"orange" : "green"'
icon: '=(loop.index.state === "OPEN")||(loop.index.state === "100") ?
"f7:lock_open" : "f7:lock"'
iconColor: '=(loop.index.state === "OPEN")||(loop.index.state === "0") ? "red" :
"green"'
iconUseState: true
title: =loop.index.label
It should look like this:
On version 5 the list is blank.
Thanks