using an electric heater (Mill) that only provides a current power sensor, I need a way to calculate its daily energy consumption.
So, I figured to create an integration helper entity, and that actually updates, but it can not be correct…
according to this, it has used about 0.16 kWh today.
the Utility meter entity I set up for that also reflects that:
This is way off… considering it consumes 1200 W and has been on for a couple of hours.
should be something like this:
11:18-11:42 = 24
12:32-12:51 = 19
13:31:14:05 = 34
14:41-15:06 = 25
102 min * 1200 = 1.7 hr *1200 = 2040 = 2,04kWh
What could possibly be the reason for this Integration entity to not calculate correctly? Somehow I get the feeling it restarts at every period resetting at 0.
I am looking for a total life time sensor, that never resets. It currently is listed to have state_class: total
Not even sure that is correct, because I need this:
Similar to
total
, with the restriction that the state represents a monotonically increasing positive total which periodically restarts counting from 0, e.g. a daily amount of consumed gas, weekly water consumption or lifetime energy consumption.
it’s impossible to edit the options in the Integration entity, other than its output, but in entity_registry nothing special is configured:
{
"aliases": [],
"area_id": null,
"capabilities": {
"state_class": "total"
},
"config_entry_id": "ae6c779ba472f6c64eb89335b5b8917c",
"device_class": null,
"device_id": null,
"disabled_by": null,
"entity_category": null,
"entity_id": "sensor.heater_office_energy",
"hidden_by": null,
"icon": null,
"id": "46d49bae70ab00c2b3f8161ae2e8532d",
"has_entity_name": false,
"name": null,
"options": {},
"original_device_class": null,
"original_icon": "mdi:chart-histogram",
"original_name": "Heater Office energy",
"platform": "integration",
"supported_features": 0,
"translation_key": null,
"unique_id": "ae6c779ba472f6c64eb89335b5b8917c",
"unit_of_measurement": null
},
and I probably have set all defaults, as we get them upon creating a new entity: