1
3
100
注册会员
使用道具 举报
2
32
335
中级会员
condition: template value_template: | {% set temp1 = states('sensor.1_temperature') | float %} {% set temp2 = states('sensor.2_temperature') | float %} {% if (temp1 - temp2) | abs < 2 %} True {% else %} False {% endif %}
kndo 发表于 2025-1-29 00:58 用ha的自动化,条件选择模板应该也能做到,gui框里填value_template: | 下面的
14
71
362
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )
GMT+8, 2025-5-22 12:30 , Processed in 0.215085 second(s), 22 queries .
Powered by Discuz! X3.5
© 2001-2025 Discuz! Team.