How to create a lovelace button to only turn off lights

My brain has turned to mush after figthing for 3 hours with something else in HA.

I want an entity in love lace that will only turn off a single light (not turn it on).

Sorry got brain mush otherwise normally I’d be able to think of something.

Use a script, then make a button card, the button calls the script.

Knew it was simple but brain is mushed.

1 Like

The script isn’t a necessity. You can just set the tap action to only turn off the light.

tap_action:
  action: call-service
  service: light.turn_off
  target:
    entity_id: light.your_light