Trigger event by supervisor

Hello!

I have an automation that is triggered when a scene is activated:

trigger:
  - platform: event
    event_type: call_service
    event_data:
      domain: scene
      service: turn_on
      service_data:
        entity_id: scene.mysscen
  - platform: event
    event_type: call_service
    event_data:
      domain: scene
      service: turn_on
      service_data:
        entity_id: scene.hemmascen

The automation triggers as it should when my user activates the scene. The problem is when an external device activates a scene, in this case, an NSPanel. The automation does not trigger. The difference I can see is that when the NSPanel activates the scene, it is indicated that it is performed by “supervisor”.

How do you get an “event - call service” to listen for the event, regardless of who triggers it?

It would help us to help you if you would post the events each method creates.

Generally speaking, the service_data portion of event triggers is very specific, it needs to match exactly for the trigger to fire.

Your advice that the triggers is very specific helped me to solve this problem.
My user creates this event:

event_type: call_service
data:
  domain: scene
  service: turn_on
  service_data:
    entity_id: scene.mysscen

NSPanel creates this event:

event_type: call_service
data:
  domain: scene
  service: turn_on
  service_data:
    entity_id:
      - scene.mysscen

Adding both types of “entity_id” formats to my automation did the trick. Thanks!