I’ve created a script (copying from a previous community post which I have now lost) which makes a nice firelight colour. However, it is a bit hard on my hue network - causing delays on my lights. I’ve increase the transition time by a second, but is there any way to improve it other than providing longer transitions.
Second question, do I need the delay or will the script automatically wait out the transition time?
alias: Fireplace Light
sequence:
- repeat:
while:
- condition: state
entity_id: input_boolean.fireplace
state: 'on'
sequence:
- service: light.turn_on
target:
entity_id: light.fireplace
data:
hs_color:
- '{{ (range(30, 40) | random) }}'
- '{{ (range(80, 100) | random) }}'
transition: '{{ (range(1, 4) | random) }}'
brightness_pct: '{{ (range(20, 35) | random) }}'
- delay:
hours: 0
minutes: 0
seconds: 4
milliseconds: 0
mode: restart