Is there a way to call update.install in parallel for several entities from an automation?
I tried:
- Foreach waits for update to be completed, this doesn’t work:
actions:
- repeat:
for_each: |
{{ states.update
| map( attribute='entity_id' )
| select( 'is_state_attr', 'auto_update', false )
| select( 'is_state', 'on' )
| list }}
sequence:
- action: update.install
target:
entity_id: '{{ repeat.item }}'
An automation with mode: parallel and template trigger as follows also doesn’t work, as it triggers on change from false to true, but it only become false when all devices are updated.
triggers:
- trigger: template
value_template: |
{{ states.update
| map( attribute='entity_id' )
| select( 'is_state_attr', 'auto_update', false )
| select( 'is_state', 'on' )
| list
| length }}