Closed derandiunddasbo closed 2 years ago
I don't know, if this issue will be processed sometime, but if anyone faces a similar problem, here's a possible workaround without nesting two state.switch cards and instead using a conditional card:
type: custom:state-switch
entity: deviceID
states:
01234567-89abcdef:
type: vertical-stack
cards:
- type: conditional
conditions:
- entity: binary_sensor.galaxy_tab_a_eg_kiosk_mode
state: 'off'
card:
type: custom:vertical-stack-in-card
cards:
- type: custom:button-card
show_label: true
icon: mdi:cellphone-lock
label: EG Kiosk-Modus ein
tap_action:
action: call-service
service: rest_command.galaxy_tab_a_eg_kiosk_rest_command
service_data:
cmd: setBooleanSetting
key: kioskMode
value: true
show_empty: false
Please try release 1.9.0
With the following card configuration, the button card on the nested state-switch card only becomes visible after saving the card (and of course only if the binary sensor is 'off'). On page reload, the button card disappears, only the two weblinks stay visible:
Is this expected behaviour? Is nesting of state-switch cards not supported?
Versions used: