2
26
122
论坛积极会员
使用道具 举报
7
235
1376
金牌会员
sensor: - platform: template sensors: switch_power: friendly_name: 总功率 value_template: "{{ states.switch.plug_158d0001587b95.attributes.load_power }}" unit_of_measurement: "千瓦"
6
555
3520
论坛元老
hundajdx 发表于 2018-8-1 09:02 测试了一下,好像湿度可以提取显示,温度没有数值。代码好像没有问题!
czde 发表于 2018-7-31 17:28 [code]sensor: - platform: template sensors:
109
1788
不达目 发表于 2018-8-3 14:55 {{ states.fan.smart_mi_fan.attributes.temprature }} 温度拼错了吧?
1
36
134
注册会员
0
57
865
高级会员
sensor: - platform: template sensors: fan_temperature: friendly_name: '风扇温度' unit_of_measurement: "°C" device_class: temperature value_template: '{{ states.fan.xiaomi_smart_fan.attributes["temperature"] }}'
23
287
1474
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|Hassbian
GMT+8, 2025-3-9 21:34 , Processed in 0.054003 second(s), 31 queries .
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.