Devices turning on/off in sequence not all at once

Hi, totally new user here. My simple automation to turn on 3 plugs (lamps) results in them turning on in sequence, not all at once. There’s no delay built into the coding:
Any thoughts? Code below.

Preformatted textalias: Office lights on description: “”
triggers:

  • trigger: conversation
    command: Alexa turn on office lights
  • type: occupied
    device_id: a3b25b2eda6064364daacb8d83899daf
    entity_id: a5790c06ed1fd8b5b75f52e22a2c0d88
    domain: binary_sensor
    trigger: device
    for:
    hours: 0
    minutes: 0
    seconds: 5
    conditions:
    actions:
  • type: turn_on
    device_id: e7486cc3c8da3091b7f07f55b349bc93
    entity_id: bee692b4ffa97b52d22f1ce7ec30792e
    domain: switch
  • type: turn_on
    device_id: 40dca6449cd674857034686bea9a3bd2
    entity_id: e8d62bcf3175312570270493657ce0c3
    domain: light
  • type: turn_on
    device_id: b0b31c4e554234eb8d86f6c1d7efa797
    entity_id: 2fc1063894625212405e6becb763ba1c
    domain: switch
  • type: turn_on
    device_id: 4f3d4a619c4cbf7cb8761c252ac41f71
    entity_id: 068558c2ebbe51d80edacdf0b8f1b8bf
    domain: switch
    mode: singlePreformatted text

There can be a number of causes for this kind of thing… One option to try would be to use a single switch.turn_on action targeted on all the switch entities, instead of using multiple Device actions. Another option you could try would be parallelizing the actions instead of executing them sequentially, which is the default.

What type of switches are these? Which integration and protocol do they use? Some sources of latency, like cloud-dependency, are baked into the device and/or integration you are using.

1 Like

Hi thank’s I’ll look into these options. Hive plugs which I think use zigbee, so I’m expecting some latency it was the sequential aspect that surprised me.

For Zigbee devices you have an additional option, using Zigbee groups, which can be very effective at reducing this type of thing… But, I don’t see anything in the Hive integration docs about grouping.

Are you using the Hive hub and integration or using the plugs with a different coordinator with ZHA or Z2MQTT?