9
53
280
中级会员
Necroneco 发表于 2023-7-14 12:51 写在 configuration.yaml 里
sensor: - platform: template sensors: electricity_bill: friendly_name: "Electricity Bill" unit_of_measurement: 'your currency unit' # Replace with your currency unit, like '$', '€', etc. value_template: "{{ (states('sensor.03***************3127_this_month_total_usage') | float * 0.63906875) | round(2) }}"
使用道具 举报
12
328
1766
金牌会员
996054544 发表于 2023-7-14 14:30 添加这段代码,重启设备就有了。非常感谢
0
22
116
注册会员
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|Hassbian
GMT+8, 2025-1-16 11:13 , Processed in 0.055845 second(s), 22 queries .
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.