微信扫码登录
8
205
1075
金牌会员
使用道具 举报
6
132
791
高级会员
sensor: - platform: template sensors: kettle: friendly_name: 'Kettle' value_template: >- {%- if is_state("switch.kettle", "off") %} off {% elif states.switch.kettle.attributes.kwh < 1000 %} standby {% elif is_state("switch.kettle", "on") %} on {% else %} failed {%- endif %}
16
265
1515
版主
whuiscool 发表于 2017-9-9 10:04 虽然我也是小白,但是遇到这种不知道加在哪的问题,还是自己Google一下会很好。 比如我搜到这个Template Se ...
3
204
973
382
3640
论坛元老
863
5240
7
284
1041
0
242
2146
33
2169
5911
本版积分规则 发表回复 回帖后跳转到最后一页
教程高产大神,简直就是为了教程而生~
为社区活跃作出过卓越贡献的会员!
Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )
GMT+8, 2025-8-20 19:06 , Processed in 0.050478 second(s), 7 queries , MemCached On.
Powered by Discuz! X3.5
© 2001-2025 Discuz! Team.