Energy Management in Home Assistant

All the days it works fine, with normal values. This morning I got this:
image

Yesterday:
image

There where two values of the smartmeter without value.
Any ideas, how to fix it? Which database is this stored?

I have some sockets of the xiaomi connected to the gateway and to take the values ​​of the energy consumption use:

  • platform: template
    sensors:
    sopracucina_sensor:
    friendly_name: “Sopracucina Consumption”
    value_template: ‘{{ states.switch.plug_158d00013e6275.attributes.load_power }}’
    unit_of_measurement: W

and then

  • platform: integration
    source: sensor.sopracucina_sensor
    name: Presa SopraCucina
    round: 2

but it does not appear in the energy tab.
What can I do to resolve

Hi all. I’m trying to understand why I have negative values on my graphs.
image and the sensors that feed the data to the Energy integration are all correct (Shelly EM) and in kWh.


Any ideias ? Thanks all!

hi all! i am from brazil (GMT-3) and found that my cost sensors (automatically crated by energy configs) are reseting everyday at 9PM. how can i change this to 0AM???

Hi, Im sure there is information somewhere about this, however Im not able to find it. Please help. For some reason my searches in the community ends up with a lot of other stuff.

I have a Zigbee Frient ZHEMI101 working perfectly using Deconz and ZHA. It shows the current consumption of power from the powergrid in W.

How do I use this information (beeing updated very frequently, like every few seconds) in the new “Energy Management” function. I can not find a explanation on how to make a template which converts this information into the entity used by power management.

If not mistaken you should feed the watt value into a Rieman Sum integration sensor. That will then calculate the energy consumed in kWh

1 Like

Keith,
Do you happen to have some examples of those conversion examples? I have Sense too and would like to give this a try.

Thanks, worked perfectly

Add device_class: energy via customization to the new entity created by the integration

thank you, work

When i update my PROD env Home assistant (proxmox virtual machine ) i don’t see the energy tab at the left side. When i create a new (DEV) proxmox home assistant environment i’m seeing the energy tab immediately at the left side without adding any entities.

Why is my updated PROD env not seeing the energy tab?

HA Script i’m using for DEV and PROD(Installing Home Assistant using Proxmox)

SOLUTION: i needed to add energy: to my configuration.yaml because i didn’t have default_config: in my configuration.yaml.

1 Like

I did work for a little while here, but now I only can read the value from sensor.saj_today_yield in developer tools, but not in my energy dashboard (stays zero)
The workaround sensor can not be chosen in the energy setting

Did your values match up at the end of the day? Mine are not and I can not figure this out

I’m in the same boat as others… seems like something is off on the configuration.
comparing to other screenshots in this thread, my Solar values see to go straight into the grid when they should be subtracting from the consumption of the house. I use enphase inverters. (side issue on enphase: When using the supported enphase integretion that is auto-discovered, there is no way to pull in the inverters an entities…whereas when I used the yaml file to configure it, I could pull them in.)

The graph should show 100% of solar being used by house subtracted from the grid consumption. I’m not selling 100% of my solar to the grid at $0.49 only to buy it back at $0.118.

Got it. Thanks!

I also use this sensor. I have 2 SAJ solar invertors.
For me it seems to work well:

hello, I have 123solar sensor on my HA.
But not show on Energy management list, why?
my sensor is:


sensor:
  - platform: rest
    resource: https://192.168.1.50/metern/programs/programtotal.php  
    name: solar consumi totale giornaliero
    value_template: '{{ value_json.Dailycounter2 }}'
    device_class: energy
    unit_of_measurement: KWh    

Read the thread. The required attributes are stated more than once.

replies like this are no better than asking for something in a warehouse and having someone point, “Its over there”… not much help. At close to 600 replies, just reposting the content or saying it is in post #n would be more helpful.

…if I am not mistaken, I think some of us are coming into this with an outdated templates configuration, so simply add another block in our sensors.yaml will create an incompatible code issue…

1 Like

And reasking questions that have been answered before displays laziness and an dismissal of other peoples time as being less valuable than yours. But that may be true as I am on leave and co-incidentally in a lockdown, so here you go Energy Management in Home Assistant - #533 by nickrout

1 Like