Automation with Service record change behavior in the latest versions

Hi,

I have some cameras that start recording through and automation whenever the alarm is triggered. In the past all cameras started recording in parallel with a few seconds delay but with latest version 2023.7.2 (not sure when the behavior changed…) the second recording only start when the first finishes and so on which turn the automation useless. Here is the crop of the automation


action:

  - choose:
      - conditions:
          - condition: template
            value_template: >
              {{ (trigger.event.data['Entity']|string) == 'Alarm'
              }}                
        sequence:
          - service: camera.record
            target:
              entity_id: camera.camera_portao_exterior
            data:
              duration: 180
              filename: /config/www/record/dskv8113.mp4
          - service: camera.record
            target:
              entity_id: camera.camera_porta_interior
            data:
              duration: 180
              filename: /config/www/record/dskv6113.mp4
          - service: camera.record
            target:
              entity_id: camera.hikvision_camera_exterior_jardim_mainstream
            data:
              duration: 180
              filename: /config/www/record/ds2cd2385fwdi.mp4
          - service: camera.record
            target:
              entity_id: camera.hikvision_camera_garagem_mainstream
            data:
              duration: 180
              filename: /config/www/record/ds2cd2f42fwdiws.mp4
          - service: camera.record
            target:
              entity_id: camera.hikvision_camera_exterior_portoes_mainstream
            data:
              duration: 180
              filename: /config/www/record/ds2cd2185fwdis.mp4

Is this a bug introduced? Or it is designed to work like that and before it was not supposed to work in parallel.
Any comment is more than welcome.

There’s a section in the docs on sequential/parallel running:

1 Like

Alright. Thanks for pointing me out to that documentation. Looks like that I just need to add the “parallel” after the sequence and then another “sequence”. I will test and post the result.
EDIT:
The parallel running fix the issue. Thank you.