I have 3 buttons that control my roller blackouts in the office room.
Button ‘Big’: control the big blackout
Button ‘Small’: control the small blackout
Button ‘All’: control both blackouts
I want the state of the buttons ‘big’ and ‘small’ to change accordingly when I change the state of the button ‘all’
E.g. if I close all blackouts, other two buttons status should change to close
If I close both small and big blackouts, status of the all button should change.
Any idea how to do this?
type: horizontal-stack
title: Office Room
cards:
- type: custom:button-card
color_type: card
icon: mdi:roller-shade
entity: input_boolean.office_all_blackouts
name: All
tap_action:
action: toggle
state:
- icon: mdi:roller-shade-closed
value: 'on'
color: grey
- icon: mdi:roller-shade
value: 'off'
color: yellow
- type: custom:button-card
color_type: card
icon: mdi:roller-shade
entity: input_boolean.office_big_blackout
name: Big
tap_action:
action: toggle
state:
- icon: mdi:roller-shade-closed
value: 'on'
color: grey
- icon: mdi:roller-shade
value: 'off'
color: yellow
- type: custom:button-card
color_type: card
icon: mdi:roller-shade
entity: input_boolean.office_small_blackout
name: Small
tap_action:
action: toggle
state:
- icon: mdi:roller-shade-closed
value: 'on'
color: grey
- icon: mdi:roller-shade
value: 'off'
color: yellow