Hello.
I had developped a simple widget to manage some of my poweroutlets with a toggle button.
But after some time, I felt I was missing the history of the activity.
So, I modified the widget to add an analyser option.
Everything works, except a strange behaviour of the toggle button.
Initially, I could toggle the button just clicking on it or by swipping it left or right.
Now, with the analyser option, the direct click doesn’t work anymore.
It is slightly disturbing and incoherent with the rest of the UI.
How can I revert to the ‘normal’ behaviour ?
Thanks and regards…
uid: Items_List_Toggle_and_Analyze
tags:
- card
- general
props:
parameters:
- default: ""
description: Title
label: Title
name: Title
required: false
type: TEXT
- default: ""
description: Footer
label: Footer
name: Footer
required: false
type: TEXT
- description: The item Tags
label: itemsWithTags
name: itemsWithTags
required: true
type: TEXT
- description: Item filter criteria
label: Item filter criteria
name: itemsFilters
required: false
type: TEXT
parameterGroups: []
timestamp: Jan 5, 2026, 11:31:43 AM
component: f7-card
config:
footer: =props.Footer
title: '=(props.Title == "") ? props.itemsWithTags : props.itemsWithTags + " -
" + props.Title '
slots:
default:
- component: oh-list
slots:
default:
- component: oh-repeater
config:
filter: =props.itemsFilters
for: item
fragment: true
itemTags: =props.itemsWithTags
sourceType: itemsWithTags
slots:
default:
- component: oh-toggle-item
config:
icon: '=(items[loop.item.name].state == "ON") ? loop.item.category +"-on" :
loop.item.category +"-off" '
item: =loop.item.name
title: =loop.item.label
action: analyzer
actionAnalyzerItems: = loop.item.name
noChevron: true