How do I add devices to energy dashboard “Monitor individual devices”

I built an ESP32 /ESPHome based energy monitor. When I go to the dashboard, it shows the ENERGY USAGE Bar Graph followed by
Sources:
…Total Daily Power Consumption

Then

Monitor Individual Devices: which shows only one line:
… sensor.total_dailiy_power_usage

I have two main phase sensor clamps and 3 additional clamps that I would like to see broken out as “Monitored Individual Devices”. I don’t know where to find how to do that.

Also, I can’t find an entity labeled : sensor.total_daily_power_usage

Questions:

  • Where does this “usage” sensor come from? It’s not in my Yaml files.
  • How do I put my other 3 clamps on the Monitor Individual Devices list?

I’ve searched the docs and come up empty. Can someone help me understand this or point me to the doc section that explains it? I can’t believe how much time I’ve spent looking for the answers, but I’m obviously missing something.

Thanks

Go to settings / dashboards / energy and it is there.

3 Likes

@nickrout : Thanks for the reply. I see it there (usage) but I’m trying to figure out where it comes from and also how to add one of my sensors that is reporting Watts (sub-panel). Since I didn’t label anything with “usage” in it’s id or name, I can’t figure out how to make one of the other clamps show up as an individual device.
I have power sensors for subpanel phase A and B plus another clamp to attach to another breaker. I want to see them broken out as individual devices, but not add into the total_daily_power_usage display.

Cheers

Watts is not a unit of energy, so it won’t appear. Watts is a measure of the rate of energy consumption.

Thanks Nick, but it still doesn’t answer my questions.
I’m guessing (that word consumes so much of my time) that the “usage” term is tacked on to my sensor that I labeled like this:

  - platform: total_daily_energy      # power consumed daily (kwh)      
    name: "Total Daily Power Consumption"
    unit_of_measurement: kWh
    power_id: power           # Refers to above  template"Measured Two Phase Power
    accuracy_decimals: 2
    filters:
      - multiply: 0.001
    device_class: energy
    state_class: measurement

This is derived from a template with the id: power that adds the watts from phase a and b together, returning the actual measured two phases of (current * volts) added together.

Since I have 3 other clamps on this D1 Mini ESPHome device, I want to make them into “monitored individual devices” but so far have been unsuccessful. I do not want them to be ADDED to the Total since that comes from the 2-phase Mains, and the 3 other clamps are looking at individual circuits off those Mains.
I hope this makes sense and if not, I hope someone can point me in the right direction. It seems folks are doing this but I haven’t seen an example of how it is done.

Cheers

You will have to turn them from a power sensor to an energy sensor. The way to do that is with the integration integration. Integration - Riemann sum integral - Home Assistant

Yes -thanks Nick. I tried using the Rienman sum integral but it wouldn’t work in the esphome.yaml file, so I put ir in configuration.yaml. The confusion sets in when you can configure it from the helpers tab and not knowing where it actually gets set. I ended up doing it in the esphome.yaml using a template like this:

# Individual Sub-panel Phase A
  - platform: total_daily_energy      # power consumed daily (kwh)      
    name: "Total Daily Power Sub Panel A"
    unit_of_measurement: kWh
    power_id: power_sub_a           # Refers to above  template"Measured Sub Panel A Power
    accuracy_decimals: 2
    filters:
      - multiply: 0.001
    device_class: energy
    state_class: total_increasing

and now they appear on individual monitored devices. For some reason, I couldn’t get the rienman sum entity to appear. Documentation seems to be written by someone with intimate knowledge of using it. We call that “The curse of Knowledge” when writing tech docs. It’s tough to overcome when someone tris to explain something to someone else.

I’m making progress slowly. Thanks so much for your responses.
Bart