I would like to create an oh-label-cell with two functions.
- Clicking on the cell should open the keypad widget as modal to enter my security PIN and switch security system ON/OFF. This is already working.
- If clicking on the submenu (3 dots) of the cell, I would like to see the group popup, showing the members of my security group. This is not working, always get a blank page…
Here is the YAML of what I want to achieve:
component: oh-label-cell
config:
title: Sicherheit
stateAsHeader: true
item: SecurityMasterSwitch
action: popup
actionModal: widget:keypad
actionModalConfig:
mask: "*"
item: SecurityPinCode
color: '=(items.SecurityMasterSwitch.state === "OFF") ? "green" : "red"'
expandable: true
slots:
default:
- component: oh-label-cell
config:
action: group
actionGroupPopupItem: gSecurity
As said, this is not working, but the following, showing a toggle (or a stepper) instead of the group, does work.
component: oh-label-cell
config:
title: Sicherheit
stateAsHeader: true
item: SecurityMasterSwitch
action: popup
actionModal: widget:keypad
actionModalConfig:
mask: "*"
item: SecurityPinCode
color: '=(items.SecurityMasterSwitch.state === "OFF") ? "green" : "red"'
expandable: true
slots:
default:
- component: oh-toggle
config:
item: SecurityMasterSwitch