Hi,
I have had a value_template for a while now (probably over a year) that’s stopped working recently, basically when the light changes from it’s default ‘rgb_color’ it sets the ‘white_value’ to: 0
This is now always showing as FALSE regardless of whether the ‘rgb_colour’ actuatlly matched the attribute state
Anyone else seen this behaviour recently or has something changed?
Cheers
value_template: "{% if is_state_attr(‘light.hallway_lights’, ‘rgb_color’, [255, 135, 12]) %}false{% else %}true{% endif %}"
- alias: Hallway - Colour Set White Value
initial_state: 'on'
trigger:
platform: template
value_template: "{% if is_state_attr('light.hallway_lights', 'rgb_color', [255, 135, 12]) %}false{% else %}true{% endif %}"
condition:
condition: state
entity_id: light.hallway_lights
state: 'on'
action:
service: light.turn_on
entity_id: light.hallway_lights
data:
white_value: 0
LIGHT STATUS
light.hallway_lights
on
min_mireds: 153
max_mireds: 500
brightness: 255
color_temp: 500
hs_color: 30.617,95.294
white_value: 255
rgb_color: 255,135,12
xy_color: 0.601,0.381
friendly_name: Hallway Lights
supported_features: 187