Hello,
this button
should show statistics in a popup when the 3 dots are clicked and show the charts of items in a group when the button itself is clicked.
The statistics popup does work, the analyzer call not.
The code of the custom widget is:
uid: my-heating-actor-diagnose
tags: []
props:
parameters:
- label: title
name: vTitel
required: false
type: TEXT
- context: item
description: Group containing valve status items
label: valve status items group
name: grpStellwerte
required: true
type: TEXT
- context: item
description: Group containing status text items
label: status text items group
name: grpDiagnoseTest
required: true
type: TEXT
parameterGroups: []
timestamp: Apr 18, 2022, 11:45:54 AM
component: oh-label-cell
config:
action: analyzer
actionAnalyzerItems: Heizung_Stellwert_OG_Buero
footer: Durchschnittswert
icon: oh:status
item: gHeizung_Stellwerte
title: =props.vTitel
slots:
default:
- component: Label
config:
text: FBH Aktoren Stellwerte
style:
padding-left: 15px
font-size: 17px
font-weight: 600
margin-top: 20px
- component: oh-list
slots:
default:
- component: oh-repeater
config:
for: item
groupItem: =props.grpStellwerte
sourceType: itemsInGroup
slots:
default:
- component: oh-list-item
config:
after: =(items[loop.item.name].state + 10)
style:
width: 400px
title: =loop.item.label
- component: Label
config:
text: FBH Aktoren Diagnose
style:
padding-left: 15px
font-size: 17px
font-weight: 600
margin-top: 20px
- component: oh-list
slots:
default:
- component: oh-repeater
config:
for: item
groupItem: =props.grpDiagnoseTest
sourceType: itemsInGroup
slots:
default:
- component: oh-list-item
config:
after: =items[loop.item.name].displayState || items[loop.item.name].state
title: =loop.item.label
Thanks
Marco