5
79
1289
金牌会员
TestUser123 发表于 2021-11-19 08:53 我也是刚接触HA,没太看明白你的意思? 你修改完YAML文件后,保存,重启HA服务。 然后在“开发者工具”中 ...
使用道具 举报
1
13
78
注册会员
baby7blog 发表于 2021-11-12 14:46 我也是用的这个,那个Power cons electric power去乘100以后应该是W,Power cons power consumption按来说 ...
template: - sensor: - name: "Local Power Cons Power Consumption" unit_of_measurement: "Wh" state: "{{ states('sensor.xxxxxxxxxxxxxxxxxxx')|float * 0.01 }}" state_class: 'total_increasing' device_class: 'energy'
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|Hassbian
GMT+8, 2024-11-24 09:09 , Processed in 0.089898 second(s), 23 queries .
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.