Because I can see certain discrepancies between several locations where the subject is touched, I would ask first in general topic. Or, possibly, there is some misunderstanding on my side.
I’m using svc2evnt component to raise custom events.
Its docs contains example of raising the custom event, on tab_action called from the custom card. It has worked for me for years.
type: 'custom:button-card'
tap_action:
action: call-service
service: svc2evnt.fire_event
service_data:
event_type: custom_event
data:
domain: media
id: playpause
Now I’m trying to implement the same into flex-table-card. But it raises the error: Error: Expected one of none, toggle, more-info, perform-action, url, navigate, assist, fire-dom-event, but received: call-service
HA’s tap_action documentation doesn’t list call-service as an allowed value for action.
Custom Button docs list both: perform-action and call-service.
Obviosuly I failed to raise an event using perform-action. Otherwise, I wouldn’t be looking for the help.
Here is my attempt:
tap_action:
action: perform-action
perform-action: call-service
service: svc2evnt.fire_event
service_data:
event_type: custom_event
data:
domain: fordpass_msgs
mode: remove
id: 2
confirmation:
text: |
Are you sure?
GUI reacts on click, drawing a ripple animation; however, no confirmation is shown. No error/warning in logs, no event raised.
Question is: is it a limitation of flex-table-card (but it follows HA docs). Is call-service extension to custom:button-card? Is it possible to call a custom svc2evnt event without the use of action:call-service?