I need help with duplicated action in an automation

In next automation, one of the " - service: light.toggle" is ignored.
The traces are corrects, but device doesn’t toggle light.
Please, any help.
Thanks

alias: Realimentación devel
description: ""
trigger:
  - platform: state
    entity_id:
      - switch.ree_2
    to: "on"
condition: []
action:
  - service: light.toggle
    target:
      entity_id:
        - light.focos_des
    data: {}
  - service: notify.alexa_media
    data:
      message: >-
        Alarma solicitada. 
      target: media_player.buh
  - service: light.toggle
    target:
      entity_id:
        - light.focos_des
    data: {}
  - service: notify.alexa_media
    data:
      message: >-
        Alarma solicitada. 
      target: media_player.buha
mode: single
2 Likes

You’re toggling twice the same light, amounting to doing nothing, really.
So do you mean it’s actually toggling, but only once?

Yes.
The idea is to get just a glitch. :upside_down_face:

But the running is only one toggle.
Thanks

You might consider putting a short delay, perhaps one second, between the toggles.