I have a grid with 4 buttons, each toggle a switch
type: grid
cards:
- type: button
tap_action:
action: toggle
entity: switch.spots_dimlightsliving
show_state: true
icon: mdi:light-recessed
- type: button
tap_action:
action: toggle
entity: switch.verwarming_badkamer
icon: mdi:bathtub-outline
show_state: true
name: Verwarming badkamer
- type: button
tap_action:
action: toggle
entity: switch.verwarming_matras
icon: mdi:bed
show_state: true
name: Verwarming matras
- type: button
tap_action:
action: toggle
entity: switch.waterval
icon: mdi:waterfall
show_state: true
name: Waterval vijver
columns: 4
I have a helper (toggle) witch indicates if I’m on holliday.
Now I want that I can not push on the buttons on the grid when I’m on holliday (so if the toggle is on).
Something like this
- condition: state
entity_id: input_boolean.toggle_op_vakantie
state: 'off'
But it seems I cann’t add this to a button…how can I do that ?
I could use a script, but then I cannot see the status of the device…
I want in fact disable certain buttons if the holiday-toggle is activated…