I have a button card that turns 2 light modules on/off. The button toggles the lamps, but not its state.
Button Card…
show_name: true
show_icon: true
type: button
show_state: true
name: Living Room Lamps
icon: mdi:lamps
icon_height: 32px
tap_action:
action: perform-action
perform_action: automation.trigger
target:
entity_id: automation.living_room_lights_toggle
data:
skip_condition: true
entity: input_boolean.living_room_lights
Can a button card NOT perform more than a single action? I’d like to have a trigger AND a toggle.
Automation script…
alias: Living Room Lights (Toggle)
description: ""
triggers: []
conditions: []
actions:
- if:
- condition: state
entity_id: switch.on_off_outlet
state: "off"
- condition: device
type: is_off
device_id: device_1
entity_id: entity_1
domain: switch
then:
- type: turn_on
device_id: device_2
entity_id: entity_2
domain: switch
- type: turn_on
device_id: device_1
entity_id: entity_1
domain: switch
else:
- type: turn_off
device_id: device_2
entity_id: entity_2
domain: switch
- type: turn_off
device_id: device_1
entity_id: entity_1
domain: switch
mode: single
I then tried an input_boolean, but that just toggles the automation enabled/disabled. I’ve been trying t get this sorted for a few days now.
I also tried a button group, that toggles the lights, but also doesn’t update the button state, and only shows the date as the status…