ESPHome里,有没有办法通过if else end结合更新时间和总电量,拆分出,今日电量,昨天电量。本月电量。上月电量,今年电量,去年电量,我不太会esp的语法,能实现吗,另外电表在能源里找不到,
- platform: pzemac
id: pzemac_1
energy:
name: "Energy"
filters:
- multiply: 0.001
unit_of_measurement: kWh
device_class: "energy"
state_class: "total_increasing"
accuracy_decimals: 3
复制代码