I have a pzem device obtaining data and I was expecting the energy entity in KWh to automatically be listed in the Grid Consumption. But its not. The entity is listed in statistics with no issues. I also added device_class and state_class (with and without “”) as listed under the sensor component but still no joy. Any advise on how to resolve this? sensor YAML shown below:
The drop down for Grid Consumption actually suggested the author to revise THIS LINK
sensor:
- platform: pzemac
id: grid_energy
modbus_id: mbus
address: 1
current:
name: "Current"
accuracy_decimals: 2
voltage:
name: "Voltage"
energy:
name: "Energy"
filters:
multiply: 0.001
unit_of_measurement: KWh
accuracy_decimals: 2
device_class: "energy"
state_class: "total_increasing"
power:
name: "Power"
frequency:
name: "Frequency"
power_factor:
name: "Power Factor"
update_interval: 10s