elupus / hass_nibe

Home Assistant Nibe Uplink Integration
183 stars 54 forks source link

Power consumption sensors not configured properly to be added to energy dashboard #154

Open marcusthorstrom opened 1 year ago

marcusthorstrom commented 1 year ago

I have a Nibe F750 and it has two sensors:

Both of these report in kwh:

state_class: measurement
designation: ''
parameter_id: 43144
display_value: 4954.7kWh
raw_value: 495468
display_unit: kWh
unit_of_measurement: kWh
device_class: energy
friendly_name: compressor time factor

and

state_class: measurement
designation: ''
parameter_id: 43305
display_value: 769.3kWh
raw_value: 76928
display_unit: kWh
unit_of_measurement: kWh
device_class: energy
friendly_name: compressor time factor hot water

When I try to add these to the engergy dashboard it says:

The following entities have state class 'measurement' but 'last_reset' is missing:

image

I understand this could be fixed by just setting the state_class to total_increasing (reference)

By browsing the code, one suggestion is to set the state_class to total_increasing when the unit_of_measurement is kWh.

/Marcus

LordOfSteel commented 1 year ago

But how do I change the state class? Cant just change it in Developer Tools / States ?

msandvold commented 1 year ago

Nibe_energy

Testing the accuracy of "43144" and "43305" when it comes to energy comsumtion.

«Nibe F750» are data from ELKO SmartTag 3P 230V (zigbee2mqtt) mounted on fuse (to compare measurement):

“Nibe Varme_gml” are data from:

“Nibe VV_gml” Hot water) are data from:

Data from the Nibe F750 heatpump for both heating and hot water are a little “delayed”, compared to real time from the “ELKO Tag”. But it seems like the energy consumption measurement are accurate. By using the sensors: “sensor.nibe_xxxxxx_43144” and sensor.nibe_xxxxxx_43305»

Have only tested for 16hours ish.

Edit: Can confirm that measurement is good 👍