I am trying to configure transitions to fade in lights. I have a mix of Philips Hue bulbs and Ikea TRADFRI bulbs.
I have been able to get transition working with the Philips Hue bulbs for light.turn_on, and with both Philips Hue and Ikea TRADFRI bulbs for light.turn_off.
I have not been able to get transitions working with Ikea TRADFRI with the light.turn_on service.
My configuration for the script is
switch_bathroom_circadian_ct_on_all_test_secondary:
alias: 'Switch: Bathroom Circadian Lighting CT - On (All) TEST SECONDARY'
sequence:
- service: light.turn_on
data_template:
entity_id: light.bathroom_secondary
transition: 3
brightness: >
{% set brightness = state_attr('switch.circadian_lighting_bathroom_ct','brightness') %}
{% set bri = ((((brightness|float) * 254) / 100)|int) %}
{{ bri }}
color_temp: >
{% set colortemp = state_attr('sensor.circadian_values', 'colortemp')%}
{% set ct = ((1000000 / (colortemp|float))|int) %}
{{ ct }}
mode: single
The above results in the Ikea bulb turning on immediately without any transition. When performing the light.turn_on service all through the Developer console tools, transition seems to work with the Ikea bulbs.
Does anyone have an idea why transitions might not be working for me with the Ikea bulbs?