40
301
2356
金牌会员
使用道具 举报
27
2120
9076
论坛元老
sensor: - platform: template sensors: test: friendly_name: "test" value_template: "{{ states.climate.mli_acpartner.attributes.fan_mode }}" - platform: template sensors: test2: friendly_name: "test2" value_template: >- {% if is_state('sensor.test', 'low') %} 制冷 {% else %} 加热 {% endif %}
情非殇 发表于 2018-11-8 12:14 建议可以先把判断的参数先提取出来,然后判断这个提取出来的sensor.test这样 ...
本版积分规则 发表回复 回帖后跳转到最后一页
为论坛做出突出贡献的会员
Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )
GMT+8, 2025-5-8 00:29 , Processed in 0.569015 second(s), 27 queries .
Powered by Discuz! X3.5
© 2001-2025 Discuz! Team.