我正在尝试配置转换以淡出灯光。我有一个飞利浦色调灯泡和宜家Tradfri灯泡。

我已经能够与Philips Hue灯泡进行过渡,为Light.Turn_On和Philips Hue和Ikea Tradfri灯泡用于Light.Turn_off。

我有不是能够使用Light.Turn_On服务获得使用IKEA Tryfri的过渡。

我的脚本配置是

switch_bathroom_circadian_ct_on_all_test_secondary:别名:'交换机:浴室昼夜节电CT  -  ON(ALL)测试辅助'序列:-Service:Light.Turn_On Data_Template:Entity_ID:Light.bathroom_secondary转换:3亮度:> {%SET BRIGHTNES = State_ATTR('交换机。circadian_lighting_bathroom_ct','亮度')%} {%set bri =(((亮度| float)* 254)/ 100)| int)%} {{bri}} color_temp:> {%set colortemp = state_attr('sensor.circadian_values','colortemp')%} {%set ct =((1000000 /(colortemp | float))| int)%} {{ct}}模式:单个

以上导致宜家灯泡立即打开,没有任何过渡。在执行Light.Turn_On服务时通过开发人员控制台工具,转换似乎与宜家灯泡合作。

有没有人有想法为什么转型可能不会与宜家灯泡为我工作?

我能够通过执行两个Light.Turn_on呼叫来获得转换,首先将亮度设置为1,然后第二个呼叫设置过渡值以获得所需的亮度和颜色。

我的配置如下所示:

-  service:light.turn_on data_template:light.bathroom_secondary亮度:1 color_temp:“{{send_attr('sensor.lighting_mode','ct_value_adjusted')}}” -  service:light.turn_on data_template:entity_id:light.bathroom color_temp:“{{send_attr('sensor.lighting_mode','ct_value_adjusted')}}”亮度:“{{state_attr('sensor.lighting_mode','brighness_5_min')}}”转换:1

当宜家灯开启时,有一点点跳跃,与飞利浦色调灯相比,可能因为宜家Tryfri灯的最小亮度远高于色调灯。