In dashboards you can’t add action_name for input buttons, but you can do it for scripts and scenes.
Example:
type: entities
entities:
- entity: scene.movie
action_name: Set scene
- entity: script.doorbell
action_name: Ding dong
In dashboards you can’t add action_name for input buttons, but you can do it for scripts and scenes.
Example:
type: entities
entities:
- entity: scene.movie
action_name: Set scene
- entity: script.doorbell
action_name: Ding dong
I agree this should be available and I have voted for it.
However, while we wait for this to be possible, I have found a workaround.
Change your entity to a type: button
as documented here. It will then accept action_name
.
Note, in most cases, you will also need to specify tap_action:
and action: toggle
, or you will be presented with the entity more-info
dialog. If you still want to be able to access the more-info
dialog, you will need hold the button once you have made this change.
type: entities
entities:
- type: button
entity: input_button.my_button
action_name: Action Name
tap_action:
action: toggle
This also works for entities of type button
.