In home assistant we have an automation which triggers when someone’s phone rings, it then creates a scene based on the current state of multiple wled entities before activating a preset for a specific person’s phone ringing, when the phone stops ringing it activates the previously saved scene to revert the wled entities back to their previous states. This automation has worked flawlessly for over a year until recent updates to wled. Now when the automation goes to activate the previous scene the automation stalls and says failure to communicate with the wled api and requires a physical restart of the esp32 node running wled.
Below is the automation config for reference, does anyone know of recent changes that would impact this config? Thank you.
`
alias: fred Phone Ring
description: “”
trigger:
- platform: state
entity_id:- sensor.fred_phone_state
to: ringing
condition:
- sensor.fred_phone_state
- condition: state
entity_id: person.fred
state: home
action: - service: scene.create
data:
scene_id: leds_before
snapshot_entities:
- light.primary_cabinet_lights
- select.primary_cabinet_lights_color_palette
- light.primary_cabinet_lights_segment_1
- select.primary_cabinet_lights_segment_1_color_palette
- light.primary_cabinet_lights_segment_2
- select.primary_cabinet_lights_segment_2_color_palette
- light.primary_cabinet_lights_segment_3
- select.primary_cabinet_lights_segment_3_color_palette
- light.island_leds
- select.island_leds_color_palette
- light.island_leds_segment_1
- select.island_leds_segment_1_color_palette
- number.primary_cabinet_lights_intensity
- number.primary_cabinet_lights_segment_1_intensity
- number.primary_cabinet_lights_segment_2_intensity
- number.primary_cabinet_lights_segment_3_intensity
- number.primary_cabinet_lights_speed
- number.primary_cabinet_lights_segment_1_speed
- number.primary_cabinet_lights_segment_2_speed
- number.primary_cabinet_lights_segment_3_speed
- number.island_leds_intensity
- number.island_leds_segment_1_intensity
- number.island_leds_speed
- number.island_leds_segment_1_speed
- light.primary_cabinet_lights_master
- light.island_leds_master - service: select.select_option
data:
option: fredRinging
target:
entity_id: select.primary_cabinet_lights_preset - service: select.select_option
data:
option: fredRinging
target:
entity_id: select.island_leds_preset - wait_for_trigger:
- platform: state
entity_id:- sensor.fred_phone_state
from: ringing
for:
hours: 0
minutes: 0
seconds: 2
continue_on_timeout: true
timeout:
hours: 0
minutes: 2
seconds: 0
milliseconds: 0
- sensor.fred_phone_state
- platform: state
- service: scene.turn_on
target:
entity_id: scene.leds_before
metadata: {} - choose:
- conditions:
- condition: time
after: “08:00:00”
before: “19:29:59”
weekday:- sat
- fri
- thu
- wed
- tue
- mon
- sun
sequence:
- service: select.select_option
data:
option: All
target:
entity_id: select.wled_lamp_playlist
- condition: time
- conditions:
- condition: time
after: “19:30:00”
before: “07:59:59”
weekday:- sat
- fri
- thu
- wed
- tue
- mon
- sun
sequence:
- service: select.select_option
data:
option: Nighttime
target:
entity_id: select.wled_lamp_preset
mode: single
`
- condition: time
- conditions: