1
10
88
注册会员
使用道具 举报
22
532
3629
论坛元老
{% 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 %}
86
509
4095
cjnt007 发表于 2024-12-3 20:34 我是在辅助元素里添加了一个传感器模板,模板代码如下供参考:
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )
GMT+8, 2025-6-29 18:32 , Processed in 0.356493 second(s), 26 queries .
Powered by Discuz! X3.5
© 2001-2025 Discuz! Team.