我正在尝试配置转换以淡出灯光。我有一个飞利浦色调灯泡和宜家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服务时通过开发人员控制台工具,转换似乎与宜家灯泡合作。
有没有人有想法为什么转型可能不会与宜家灯泡为我工作?