Creating actions based on a click of button

I want to put a button on the dashboard, and when I select it, different things would happen. Lights go off, roller shutter go down, etc.

Since I’m using the GUI editor, what would be the appropriate way to do so?

1 Like

You may want to take a look at Scenes Editor

hello
first create the boutton (input_boolean) in ‘helpers’ and put it with a ‘button-card’ in ‘overview’ (lovelace-ui)
then create an automation with your button as trigger and shutter, lights…(and why not scripts or scenes) in actions
voila

If you mean your homeassistant dashboard (ie on a screen), then you could just write the automation (or a script) and then have a button on a card which triggers the automation (or executes the script) when it is pressed.

If you mean your car dashboard - you need to integrate the button (depends on what it is) !

This seems the way to go, I’m having a look on the GUI, but I don’t see a way to trigger a specific action.

Do I have to change the configuration.yaml manually?

I’m using this but I’m getting and error say that extra keys are not allowed

type: button
tap_action:
  action: call-service
  service: automation.trigger
  service_data:
    entity: automation.abrir_estores_sala_2