Run script in scene

Hey folks,

I’m looking for a way to use ifttt or another item in a scene. The examples I found only use switch.turn_on or off … etc

This is what I have in mind for code, but it doesn’t make the ifttt action work

scene 1:
  - name: Morning
    entities:
      switch.fan: off
      switch.curtains: on
      switch.coffee_maker: on
    sequence:
    - service: ifttt.trigger
      data:  {"event": "morning"}

Is there something I should be doing different? Please let me know.

Thank you

It is not possible to do that with scene.
You should look at scripts: https://home-assistant.io/getting-started/scripts/

1 Like