it just takes your calculated whole house consumption, and subtracts the sum of individual devices, and what’s left is the remainder is displayed.
If you have negative numbers, you have a sensor that is reporting a higher value than it actually is consuming.
Total - (PartA + PartB + PartC) = Value. If Value is negative, PartA, PartB, or PartC is reporting higher than it should. Or Total is reporting less than it should.
These are things that HA won’t know about, this is something you the user will have to track down.
EDIT: This is assuming you don’t have solar panels. If you have solar panels, it will a sum of your Electricity Grid and Solar Panels minus what you send back to grid.
Ok, that seems clear. However, I get all these numbers from my solaredge and they should add up to ±zero. Seems there is need for more contemplation.
P.S. Found it! I had to add the solar production to the individual devices. Honestly, this is sort of a task you would get some doctor’s degree from (well, almost).-
I have been having great results with the energy dashboard for almost a year. And I enabled individual devices right away.
Today, I just noticed some “negative untracked consumption”. I was initially thinking “this is a bug” but then I remembered the even buggier thing that I just enabled… I do not have CT clamps on my 240V split phase dryer or my 240V split phase heat pump, so I am using the Sense integration. Sense uses “machine learning” to figure out if I am using either of these devices and it reporting out the numbers its finding in the Sense platform into HA, but the energy values Appear to come in quite chunky, and can happen out of sync with the hours tracked by HA. This results in too much consumption in one hour compared with the data from my electrical meter. On the day the data is good, but bad energy accumulation populating into the wrong hour appears to be the culprit here.
Hello to the community…
I recently got sucked into home automation and got a homeassistant green last month (loving it)
On to my main issue:
I’m struggling with the untracked energy as well but my case is different:
I don’t have a tracker for the full house consumption yet.
I’m tracking some appliances through smart plugs.
I created two groups (helpers) where I’m summing daily consumption and I’m using these as “Grid Consumptions”
one for HVAC (dehumidifier, ACs etc)
and one for the rest of the appliance (washing machine, microwave etc)
because I wanted to be able to track HVAC separately.
I’ve also added all smart plugs as “individual devices” in the energy dashboard settings.
I’d imagine, the way I’ve set it up, since the grid energy is just two groups which sum the individual consumptions, there should be no untracked consumption (“grid” and “individual” are getting fed the same data).
But I do have daily untracked consumptions and there doesn’t seem to be a pattern (other than the highest untracked consumption is usually at midnight).
The energy.csv didn’t help (individual consumptions + untracked does not add up to the two grid consumptions)
Any ideas on how to fix this or at least where to look for the problem would be much appreciated
There is clearly something wrong with the untracked consumption timing.
This is my consumption last night, including our EV (and later home batteries). The EVSE power is a phantom power device that reports the default EV consumed power when the charger is ‘on’. It is a little bit of to reality, but not much.
Hmm… now I think of it, the EVSE energy is an integrator over the EVSE power, so I guess it’ll only integrate on the left or rightside steps depending on the configuration of the integrator. And there are only two steps (on/off). That’s the problem here?
Having some issues here, and am trying to figure outo where I am going wrong…I have an Emporia Vue, so 2 big clamps attached to my mains, and a bunch attached to my others. The way the Vue works, is if its not in those it gets called “Balance”
Yet I still have untracked consumption even when I have the balance in my individual devices.
You would need to share the entire view of your energy for the same period for us to understand, just showing a picture of individual devices we have no way to verify if it is correct or not.
Exporting a csv and sharing it would be a helpful way to share some context.
Ok, using that, look at your 6AM hour, as you pointed out with your arrow.
Grid consumption sensor says 1.564kWh. Solar is 0.008kWh.
So you have a total energy coming into the house of 1.572 kWh.
Add up all your individual device consumption sensors for that hour, and they total 2.377kWh.
Subtracting your known device consumption from your total available energy gives (1.572 - 2.377 = -0.8kWh). That’s why there is a big negative untracked consumption there, because you’re consuming more energy than possibly exists.
One of your sensors must be wrong, whether that is the grid or one of the devices I don’t know, but what your sensors are collectively reporting is impossible in reality.
Hello. Folks.
Anybody can help out with untracked energy issue?
Seems to only be happening when I’m charging my EV. I don’t return to grid, but the graph shows as though I do.
I had a somewhat similar experience with the energy dashboard. Sensors such as the Shelly sometimes don’t seem to “answer” in time when Home Assistant makes the request to send the total consumed energy update. If the Update is not sent in time, Home Assistant seems to get confused. I have now tried the following:
Create a template sensor for the respective energy sensors and check the values if they actually “make sense”. Larger than the previous, no unrealistic jumps etc. Below is a sample of what I did for my car charger.
This should keep Home Assistant from making these strange jumps and creating untracked consumptions. Your mileage may vary, especially with PV or similar where you might have net positive and negative consumptions.
template:
- sensor:
# Filtered WALLBOX ENERGY
- name: "Wallbox Energy Filtered"
unique_id: "wallbox_energy_filtered"
unit_of_measurement: "kWh"
device_class: energy
state_class: total_increasing
state: >
{% set entity = 'sensor.wallbox_energy' %}
{% set current = states(entity) | float(0) %}
{% set last = this.state | float(0) %}
{% if this.state in ['unavailable', 'unknown', '', none] %}
{% set last = current %}
{% endif %}
{% set last_changed = as_timestamp(states[entity].last_changed) %}
{% set now_ts = as_timestamp(now()) %}
{% set age = now_ts - last_changed %}
{% set diff = current - last %}
{% if current < last %}
{{ last }}
{% elif (diff > 1 and age < 60) %}
{{ last }}
{% elif (diff > 1 and diff > (last * 1.0)) %}
{{ last }}
{% elif (diff > 0.1 and age < 60) %}
{{ last }}
{% else %}
{{ current }}
{% endif %}
Saw this issue today in my energy dashboard, I believe it’s a sampling/framing issue from what I understand. A fix would still be nice, as “negative consumption” does not make sense in this context.
Hey there!
Found the same issue today on my dashboard and it it consistent with the installation of the Sonoff POWCT.
I had all other energy consumption sensors defined as grid consumption sources.
Now, i set the POWCT as the main source only and set all others as individual devices.
Due to this, my untracked consumption is the difference between the new POWCT readings and all other sensors readings that are available in HA history.
POWCT currently shows 0.08kWh
Total consumption: 7.55kWh
Untracked: -7.47kWh
The math checks out!
So i believe that some of you guys may have the same scenario as me. Some sensors as grid sources in the past that now were changed to individual devices.