I have 3 LIFX lights configured to automate light transitioning from Red to Green on repeat. For some reason, the script fails and stops working from time to time. And this is the error I get in the log.
* Christmas Lights: Error executing script. Error for parallel at pos 3: Timeout setting power for Front Door Light
* Christmas Lights: Parallel action at step 1: parallel 3: Error executing script. Error for call_service at pos 1: Timeout setting power for Balcony Right Light
* Christmas Lights: Error executing script. Error for parallel at pos 1: Timeout setting power for Balcony Right Light
* Christmas Lights: Parallel action at step 1: parallel 1: Error executing script. Error for call_service at pos 1: Timeout setting power for Front Door Light
* Christmas Lights: Error executing script. Error for parallel at pos 1: Timeout setting power for Front Door Light
Christmas Lights: Repeat at step 3: Error executing script. Error for call_service at pos 1: Timeout setting power for Front Door Light
Christmas Lights: Error executing script. Error for repeat at pos 3: Timeout setting power for Front Door Light
Christmas Lights: Repeat at step 3: Error executing script. Error for call_service at pos 1: Timeout setting power for Balcony Right Light
Christmas Lights: Error executing script. Error for repeat at pos 3: Timeout setting power for Balcony Right Light
Error while executing automation automation.christmas_lights: Timeout setting power for Balcony Right Light
Error while executing automation automation.christmas_lights: Timeout setting power for Front Door Light
Is this due to weak wifi connection? Although I wasn’t having this problem in the past.
This is the automation:
#Christmas Lights
- alias: Christmas Lights
trigger:
- platform: sun
event: 'sunset'
offset: '00:10:00'
- platform: homeassistant
event: 'start'
- platform: state
entity_id: script.christmas_lights_script
from: 'on'
condition:
- "{{ is_state('sun.sun', 'below_horizon') }}"
- '{{ now().month == 12 and now().day <= 25 }}'
action:
- service: script.christmas_lights_message
- service: script.wled_one_christmas_day_script
- repeat:
while: "{{ now().hour != 3 and is_state('input_boolean.holiday_lights_override', 'off') }}"
sequence:
- service: script.christmas_lights_script
- service: light.turn_off
entity_id: group.front_home_lights
- service: light.turn_off
entity_id: light.wled
mode: single
And the script:
#Christmas Lights
christmas_lights_script:
alias: Christmas Lights
sequence:
#Color Combo 1
- parallel:
- service: light.turn_on
data:
entity_id: light.front_door_light
transition: '1'
color_name: green
brightness_pct: '75'
- service: light.turn_on
data:
entity_id: light.balcony_left_light
transition: '1'
color_name: red
brightness_pct: '75'
- service: light.turn_on
data:
entity_id: light.balcony_right_light
transition: '1'
color_name: green
brightness_pct: '75'
- delay: '00:00:03'
#Combo Color 2
- parallel:
- service: light.turn_on
data:
entity_id: light.front_door_light
transition: '1'
color_name: red
brightness_pct: '75'
- service: light.turn_on
data:
entity_id: light.balcony_left_light
transition: '1'
color_name: green
brightness_pct: '75'
- service: light.turn_on
data:
entity_id: light.balcony_right_light
transition: '1'
color_name: red
brightness_pct: '75'
- delay: '00:00:03'
mode: single