微信扫码登录
9
44
290
中级会员
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) }}"
使用道具 举报
14
375
2070
金牌会员
996054544 发表于 2023-7-14 14:30 添加这段代码,重启设备就有了。非常感谢
0
22
124
注册会员
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )
GMT+8, 2025-7-8 12:52 , Processed in 0.050473 second(s), 8 queries , MemCached On.
Powered by Discuz! X3.5
© 2001-2025 Discuz! Team.