Automation activated via scene

I don’t know if I remember incorrectly, but I think you used to be able to add automations in a scene in the past, from the UI. However, now I what to be able to call a automations when a scene is activated, the stuf I find on the internet did not work, can someone help me?

Add the automation entity to the scene in the UI?

How?
I want to run a automation when a scene is activated, is that possible

When a scene is activated, its state value contains the date and time when the activation occurred. An automation can use a State Trigger to listen for changes to the scene’s state value.

alias: example
trigger:
  - platform: state
    entity_id: scene.your_scene
condition: []
action:
   ... your actions ...

I will try that! Thank you, i will retur with an answer

1 Like