Energy Management in Home Assistant

If the socket already supports energy in Wh or kWh then you don’t need to do anything just add it. If it is in W or kW then use the Riemann sum integrations

oh, ok, understood, the issue is that socket reports W, not Wh

Nevermind, for some reason (for second time now) my tuya integration got disabled entities for about half of the stuff, and i also noticed I can click image
and it does redirect me where i need to be and then I can add the thing from web ui

I’m trying minutes currently to see if it will work, generally some cookbook how to setup socket that reports W using that thing would be nice.

I guess that I/we have to resort to manual correction for now.

However, it would be great to have the statistics adjustment supporting additions as well as the current deletion.

1 Like

After the 2022.08 release i‘ve successfully added an eve energy plug per Homekit Controller.
Basically is the device working and shows energy consumption but with a lot decimals

How can i adjust how the values are displayed for instance with only two decimals like 8.00 W

In addition i got an error after i‘ve added the device to the energy dashborad

But i have no idea what to do in order to solve it?

I don’t think you change the number of decimals displayed yourself. You could create an additional template sensor based on this one, where you filter this entity with round(2) to get 2 decimal places.

The state class for energy measurements should probably be “total_increasing”. You can also fix that with a derived template sensor.

You should probably report this to the integration authors.

I’ve had a problem with Energy dashboard, HA has changed the name of cost sensor and I’ve lost historical data.
Can I change the cost sensor what HA manage or Can I pass historical data to de new one?.

I’ve opened a new ticket here Duplication of Energy cost sensors in Energy Dashboard and lost of historical costs

Hi,
can I edit the saved energy data?
I just integrate my gas meter. from today it measure the data. But I would like to add the month and years data. to see the real monthly yearly consumption. Can I set it? Where the data stored?
Thank you

For those with Z-Wave devices that include power monitoring. Do you ever manually reset the energy consumption report to see what the daily or hourly total was when looking at the entity’s graph? Right now I have never reset it as I didn’t care much about the energy consumption. Now that I am in the, as I like to call it, “Energy Aware” phase of building out a smart home I finally looked at my server’s smart plug and saw the energy report has been constantly increase since I plugged it in months ago. I thought Z-Wave devices would reset that value every hour.

Hi @markpurcell,

I noticed that you mentioned that the data from the Energy Dashboard isn’t easliy reusable in other templates.

Do you know if you can actually get to the data, as I would like to use the historical data stored to aid in a ‘rough’ forecast of electricity used. e.g. rolling 30 historical usage would help indicate what the next days usage might be. Not particularly accurate but a start.

Or is this a request that would need to be sent to the Energy dashboard team to ask for the ‘Energy’ data to be made available elsewhere within HA?

Thanks for you time.

Graham.

It is difficult too get the data from the dashboard, but it would be straight forward to use the same sensor as the dashboard to get the 30 day average for example.

Most sensors only hold days for the past 7 days, so you would be better off seeing up a utility meter (in the helpers section) to give you a running monthly total for energy usage.

Calculating power cost using utility meter

Hi @markpurcell,

Thanks for the reply.
Off to play with ‘Utility Meters’

Graham.

I have question about first time setup of the energy dashboard. In the first step, the Add Consumption has to do with a sensor that keeps the total energy consumption of the home or something else?

You do not want total, HA does that for you. You want something like daily energy

How to request to the development team the possibility to add in HA additional Energy Management Dashboards? ( I didn’t find how to do this) I would like to use the same concept to track other sensors with the relation consumption or production / cost. For example to track in detail individual devices vs cost it makes easier to see the amortization of the invesment, for example for the solar battery, or to track water consumption, etc… This is easer instead to have to “reinvent the wheel again” with additional scripts and templates for the same.

2 Likes

I have done this a few times but its not falling off. Does HA need to be shutdown while doing this?

"sensor.energy_next_hour " is provided by “Forecast.Solar” integration.
graphs by apexchart

  - entity: sensor.energy_next_hour 
    name: Energy Today Forecast
    color: darkgreen
    extend_to: now
    unit: kWh
    float_precision: 2
    type: line
    show:
      in_header: false
      in_chart: true
      datalabels: false
    stroke_width: 3
    curve: smooth



1 Like

It didn’t for me, the beauty of HA using SQL is that it should be multi-accessible without shutting it down for general DB changes and updates.

How far are you getting?

Feature requests go in this forum, in the feature request section.

I found some values in statistics_short_term, However I ended just deleting database and starting over!

Hi !
I am using the Energy management in Hass and its working Great. I was wondering if it is possible to use the values on other cards ?

For example, i would like to take the calculated Monthly cost and present in a graph with each Month cost