Hello there,
I’m wondering what is the scope of an on the fly scene.
If I have this in a script:
keep_tradfri_connected:
alias: ''
sequence:
- service: scene.create
data:
scene_id: before
snapshot_entities: '{{ entite }}'
- service: light.turn_on
data:
brightness: >
{% set curr = state_attr(entite, ''brightness'') | int(0) %}
{{ iif(curr > 1, curr - 1, curr + 1) }}
target:
entity_id: '{{ entite }}'
- delay:
milliseconds: 100
- service: scene.turn_on
data:
entity_id: scene.before
mode: parallel
max: 10
It might be possible for 2 instances of that script to run in //.
Therefore, they will both create the scene named “before” and activate it at the end.
What will happen?