Good morning,
I’m a bit on the fence. A few weeks ago you already helped me to create my CustomWidget for the windows of a room:
Code:
uid: windowCard
tags:
- Tobsi
props:
parameters:
- label: Title
name: title
required: false
- context: item
description: Item with all window states of this room
label: Room
name: location
required: true
type: TEXT
parameterGroups: []
timestamp: Dec 21, 2023, 8:39:47 PM
component: f7-card
config:
style:
border-radius: var(--f7-card-expandable-border-radius)
title: =props.title
slots:
default:
- component: oh-list
slots:
default:
- component: oh-repeater
config:
for: equip
fragment: true
groupItem: =props.location
sourceType: itemsInGroup
slots:
default:
- component: oh-repeater
config:
filter: loop.point.tags.includes('OpenState') && loop.point.tags.includes('Opening')
for: point
fragment: true
groupItem: =loop.equip.name
sourceType: itemsInGroup
slots:
default:
- component: oh-label-item
config:
icon: oh:window
iconUseState: true
item: = loop.point.name
title: = loop.point.label
Now I have created a timestamp item for the window contact, which I would like to display in the footer.
However, I am at a complete loss as to how I can assign different item states to my list item.
I was thinking that after the first repeater, I would have to set an additional repeater with filter: loop.equip.tags.includes('window')
. However, I don’t know how to filter out the openstate first and assign it as an item and then filter the timestamp and insert the value into the footer.
I hope you have figured out my problem and can help me. Thank you in advance.