I have a script (loop) that I am not able to turn off once I start it.
fire:
sequence:
- service: light.turn_on
data_template:
entity_id: light.ls1
rgb_color: [255, '{{ (range(0, 100)|random) }}', 0]
brightness: '{{ (range(50,255)|random) }}'
- service: light.turn_on
data_template:
entity_id: light.ls1
rgb_color: [255, '{{ (range(0, 100)|random) }}', 0]
brightness: '{{ (range(50,255)|random) }}'
- service: light.turn_on
data_template:
entity_id: light.ls1
rgb_color: [255, '{{ (range(0, 100)|random) }}', 0]
brightness: '{{ (range(50,255)|random) }}'
- service: light.turn_on
data_template:
entity_id: light.ls1
rgb_color: [255, '{{ (range(0, 100)|random) }}', 0]
brightness: '{{ (range(50,255)|random) }}'
- service: light.turn_on
data_template:
entity_id: light.ls1
rgb_color: [255, '{{ (range(0, 100)|random) }}', 0]
brightness: '{{ (range(50,255)|random) }}'
- service: light.turn_on
data_template:
entity_id: light.ls1
rgb_color: [255, '{{ (range(0, 100)|random) }}', 0]
brightness: '{{ (range(50,255)|random) }}'
- service: light.turn_on
data_template:
entity_id: light.ls1
rgb_color: [255, '{{ (range(0, 100)|random) }}', 0]
brightness: '{{ (range(50,255)|random) }}'
- service: light.turn_on
data_template:
entity_id: light.ls1
rgb_color: [255, '{{ (range(0, 100)|random) }}', 0]
brightness: '{{ (range(50,255)|random) }}'
- service: light.turn_on
data_template:
entity_id: light.ls1
rgb_color: [255, '{{ (range(0, 100)|random) }}', 0]
brightness: '{{ (range(50,255)|random) }}'
- service: light.turn_on
data_template:
entity_id: light.ls1
rgb_color: [255, '{{ (range(0, 100)|random) }}', 0]
brightness: '{{ (range(50,255)|random) }}'
- service: light.turn_on
data_template:
entity_id: light.ls1
rgb_color: [255, '{{ (range(0, 100)|random) }}', 0]
brightness: '{{ (range(50,255)|random) }}'
- service: light.turn_on
data_template:
entity_id: light.ls1
rgb_color: [255, '{{ (range(0, 100)|random) }}', 0]
brightness: '{{ (range(50,255)|random) }}'
- service: light.turn_on
data_template:
entity_id: light.ls1
rgb_color: [255, '{{ (range(0, 100)|random) }}', 0]
brightness: '{{ (range(50,255)|random) }}'
- service: light.turn_on
data_template:
entity_id: light.ls1
rgb_color: [255, '{{ (range(0, 100)|random) }}', 0]
brightness: '{{ (range(50,255)|random) }}'
- service: light.turn_on
data_template:
entity_id: light.ls1
rgb_color: [255, '{{ (range(0, 100)|random) }}', 0]
brightness: '{{ (range(50,255)|random) }}'
- service: light.turn_on
data_template:
entity_id: light.ls1
rgb_color: [255, '{{ (range(0, 100)|random) }}', 0]
brightness: '{{ (range(50,255)|random) }}'
- service: light.turn_on
data_template:
entity_id: light.ls1
rgb_color: [255, '{{ (range(0, 100)|random) }}', 0]
brightness: '{{ (range(50,255)|random) }}'
- service: light.turn_on
data_template:
entity_id: light.ls1
rgb_color: [255, '{{ (range(0, 100)|random) }}', 0]
brightness: '{{ (range(50,255)|random) }}'
- service: light.turn_on
data_template:
entity_id: light.ls1
rgb_color: [255, '{{ (range(0, 100)|random) }}', 0]
brightness: '{{ (range(50,255)|random) }}'
- service: light.turn_on
data_template:
entity_id: light.ls1
rgb_color: [255, '{{ (range(0, 100)|random) }}', 0]
brightness: '{{ (range(50,255)|random) }}'
- service: light.turn_on
data_template:
entity_id: light.ls1
rgb_color: [255, '{{ (range(0, 100)|random) }}', 0]
brightness: '{{ (range(50,255)|random) }}'
- service: light.turn_on
data_template:
entity_id: light.ls1
rgb_color: [255, '{{ (range(0, 100)|random) }}', 0]
brightness: '{{ (range(50,255)|random) }}'
- service: light.turn_on
data_template:
entity_id: light.ls1
rgb_color: [255, '{{ (range(0, 100)|random) }}', 0]
brightness: '{{ (range(50,255)|random) }}'
- service: light.turn_on
data_template:
entity_id: light.ls1
rgb_color: [255, '{{ (range(0, 100)|random) }}', 0]
brightness: '{{ (range(50,255)|random) }}'
- service: light.turn_on
data_template:
entity_id: light.ls1
rgb_color: [255, '{{ (range(0, 100)|random) }}', 0]
brightness: '{{ (range(50,255)|random) }}'
- service: light.turn_on
data_template:
entity_id: light.ls1
rgb_color: [255, '{{ (range(0, 100)|random) }}', 0]
brightness: '{{ (range(50,255)|random) }}'
- service: script.turn_on
data:
entity_id: script.spark
spark:
sequence:
- service: script.turn_on
data:
entity_id: script.fire
ash:
sequence:
- service: script.turn_off
data:
entity_id: script.fire
- service: script.turn_off
data:
entity_id: script.spark
In customize I have:
script.fire:
can_cancel: true
So I have the switch to turn it off and I also have the script ash to turn it off, but both options simply don’t work. The script just turns itself on again after half a second and the only way to stop it is to reload scripts under Configuration/General/