1
11
58
注册会员
使用道具 举报
20
485
3180
论坛元老
{% set dianliang = states("sensor.state_grid_xxxxxx_year_ele_num")|float(0) %} {% if dianliang <= 2760 %} 1 {% elif dianliang >2760 and dianliang <= 4800 %} 2 {% else %} 3 {% endif %}
80
548
3606
cjnt007 发表于 2024-12-3 20:34 我是在辅助元素里添加了一个传感器模板,模板代码如下供参考:
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|Hassbian
GMT+8, 2024-12-4 16:39 , Processed in 0.055904 second(s), 29 queries .
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.