I get the following warning while I am running a script:
2025-01-20 16:15:01.255 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities light.familyroom_lights are missing or not currently available
Here is the script that produces the above warning when I configure a LIFX group as a light using the platform: group:
manually_update_lifx_lighting:
alias: Manually Update Lifx Lighting
description: Manually Update Lighting(Lifx) via Adaptive Lighting Sensor
# Start a new, independent run in parallel with previous runs.
mode: parallel
sequence:
- condition: template
value_template:
"{{ states(entity) not in ['unavailable', 'unknown', 'none'] and
states('sensor.circadian_brightness_pct') != 'unknown' }}"
# Check if the light input_boolean entity value is disabled i.e. off
- condition: template
value_template: "{{ is_state(entity_disable_cl, 'off') }}"
- service: lifx.set_state
data_template:
entity_id: "{{ entity }}"
brightness_pct: "{{ states('sensor.circadian_brightness_pct') }}"
color_temp_kelvin: "{{ states('sensor.circadian_color_temp_kelvin') }}"
transition: "{{ transition | default(45) | int(45) }}"
It fails when I set the state. I am not sure if this warning should happen or not? The same script works when I configure a group instead of the platform: group
1 post - 1 participant