service: light.turn_on
data:
hs_color:
- "{{ states('input_number.hs_color_of_the_day_hue') | int(0) }}"
- "{{ states('input_number.hs_color_of_the_day_saturation') | int(0) }}"
target:
entity_id: light.kitchen_color_lights
To get an entity’s state
value, use the states()
function, not state_attr()