Button Card State

I’ve added a Lovelace Button Card to fire an automation. The automation can also be fired by a tag.

The automation will toggle my light group on and off.

Although the everything fires as expected, the button icon state remains “on”

Here is the button script

show_name: true
show_icon: true
type: button
tap_action:
  action: call-service
  service: automation.trigger
  target:
    entity_id: automation.back_yard
  data:
    skip_condition: true
entity: automation.back_yard
name: Back Yard Chillax
icon: mdi:gas-burner
show_state: true
icon_height: 50px

If your entity is an automation “on” just means “ready”. It will always be on unless you’ve disabled it. You need to create an input_boolean for the card, which triggers the automation when it is toggled.

1 Like

Try setting your light group as the entity to track.

Thanks for providing direction @Stiltjack… Got it to perform exactly as I wanted

Please could you post the yaml? Thanks