Automation Begin

Hello every boby.

I start with automation.yaml but it’s not working, my setup is valid but where I can find log for this ?

Thx

My first Script

## Exempla1:
 - alias: Sonette
   initial_state: true
   trigger:
    - platform: event
      event_type: deconz_event
      event_data:
      id: switch_3
      event: 1002
   action:
    - service: tts.google_translate_say
      data:
       entity_id: media_player.salon
       message: 'Que la force soit avec toi'

Your formatting is wrong.

If you look at the docs you’ll see that the format should be:

automation:
  trigger:
    platform: event
    event_type: MY_CUSTOM_EVENT
    event_data:
      mood: happy

In your case

   trigger:
    - platform: event
      event_type: deconz_event
      event_data:
        id: switch_3
        event: 1002

Try that

It’s strange it’s not working.

But I think all my automation not working !

How I can solve this ?

:man_shrugging:

Please read the sticky post. We can’t help with vague it doesn’t work questions. We need information, details, context…

It could be:

  1. You have no automations loaded
  2. The automation is turned off
  3. All your automations are turned off
  4. Your automations are working, but something else is wrong
  5. Something else
1 Like

Not turned ON :frowning: