This is a snippet of a custom button card. I want to use it to create an even when the user presses the button. I know how to do this with a action/service call but the events seem to be formatted differently. This is what I am trying but it isn't working:
card:
type: custom:button-card
name: Dismiss
show_icon: false
show_name: true
tap_action:
event: viewassist
event_data:
action: dismiss alarm
entity_id: "[[[ return variables.var_assistsat_entity ]]]"
In an automation I am able to send this command similar to this:
actions:
- event: viewassist
event_data:
action: dismiss alarm
Is it possible to send an event via custom button card tape action?