Trigger an automation by a scene

Because I cannot run a script after executing a scene, I’m trying to trigger an automation by executing a scene.
Unfortunately I’m not able to do this. I tried many things and did recherce in the community, but unfortunately I found no solution.

Can anyone help?

This code snippet triggers the automation, but unfortunately the automation will be triggered also if I create a new scene (in the background probably the scene will be set to null after creation of a new one).

trigger: state
entity_id:
  - scene.szene_fernsehen
to: null

Thanks!

Instead of using to: null, try:

trigger: state
entity_id:
  - scene.szene_fernsehen
not_to: 
  - unknown
  - unavailable
not_from:
  - unknown
  - unavailable

That should avoid the activations caused when the integration reloads.

Works fine, thanks Al lit!