Shutter automation only triggers the last action

As stated above my automation only triggers the last action. Both are tuya devices, when you trigger them individually it works just fine.
Im quite new to HA.

alias: RollladenSonnenuntergang
description: ""
triggers:
  - trigger: sun
    event: sunset
    offset: "+01:00:00"
conditions: [ ]
actions:
  - device_id: cb027f27c408772f68dfeff58368
    domain: cover
    entity_id: f51e0e13684db7a75227c33899f
    type: close
  - device_id: 6220798809a73554a0dac608a
    domain: cover
    entity_id: f79bb8c8e52800ded29c5096af4
    type: close
mode: single

It was all created in the graphic editor

How to format code or use the</> key in the post editor.

1 Like

Try

actions:
  - action: cover.close_cover
    target:
      entity_id:
        - f51e0e13684db7a75227c33899f
        - f79bb8c8e52800ded29c5096af4
1 Like

This worked. Could you explain why mine didnt please?

They used Entities and not devices.

Also notice how much simpler it is…

1 Like