type: horizontal-stack cards: - type: custom:button-card entity: input_boolean.checkbox1 name: Checkbox 1 state_color: false state: - operator: '==' value: 'off' icon: mdi:checkbox-blank-outline color: var(--paper-item-icon-color) - operator: '==' value: 'on' icon: mdi:checkbox-outline color: var(--paper-item-icon-color) styles: name: - font-size: 12px - type: custom:button-card entity: input_boolean.checkbox2 name: Checkbox 2 state_color: false state: - operator: '==' value: 'off' icon: mdi:checkbox-blank-outline color: var(--paper-item-icon-color) - operator: '==' value: 'on' icon: mdi:checkbox-outline color: var(--paper-item-icon-color) styles: name: - font-size: 12px card: - background-color: >- [[[ if (states['input_boolean.checkbox1'].state == 'off') {return 'grey';} ]]] tap_action: action: >- [[[ if (states['input_boolean.checkbox1'].state == 'on') {return 'toggle';} else {return 'null';}]]]