#Trigger Script Direct From Dashboard

1 messages · Page 1 of 1 (latest)

pastel jasper
#

Hi, New to HA (Just setting up for the first time).

I've been setting up similar to the Apple Home dashboard (I'm using Apple Home Dashboard Strategy for the dashboard).

One thing I'm (marginally) stuck on, is the automation/scenes. They work great, but is it possible to configure them to run directly when clicking on the card, rather than opening up their modal window?

low crypt
#

It's going to depend a on the card you are using, but generally you will just need to change the action details in the card's configuration.

https://www.home-assistant.io/dashboards/actions

A script is easy enough since they can be called directly as actions or fired with the script.turn_on action. For automations you may be able to use the automation.trigger action, but there can be some nuance to it depending on how you have constructed the automation. Generally, if you want to be able to execute an action sequence from the Dashboard it's best to move it to a Script, then both your Card action and Automation can run that script as needed.

crisp plaza
#

Just have to have the right trigger in your automation if you want to fire that.