Since one of the last updates, my energy dashboard stopped working. I have found several topics on this forum, but noone of them worked for me. I think that I am missing something, but can’t find out what.
This is what I added in my configuration file:
homeassistant:
customize_glob:
sensor.power_consumed:
device_class: power
state_class: measurement
sensor.energy_consumed_tariff_*:
device_class: energy
state_class: total_increasing
With “stopped working”, I mean that the dashboard is giving me incorrect data. See the attached screenshots below.
Screenshot #1: Even though I use power the whole day, the dashboard shows gaps in between usage. Although there is always usage reported by the sensor in the overview dashboard.
Screenshot #2: The calculation is wrong. Although I have set gas price for more than 1 EUR per m3, it says consumed: 7,51m3, but price is 3,83 .
If I look my sensors, they keep changing every second though! So the sensors are working but somehow it’s not calculating everything correctly in to the dashboard…
ok, in regards to calculate your gas_consumption you might also wanna read about this in documentation (And FAQ) for Energy-Dasboard, and eventually search this forum for that in specific.
Starting your first “Post” in this forum( after 20 min readtime) with the sentence “Since one of the last updates” is rude and in my opinion unacceptable, as your not only “indicate” an update as cause ( and thereby the developers ) , your also wanna attract attention, from all people who use Energy-dashboard,regardless of the fact that , that you have no clue, and yo most likely not have read the “updates” before you pressed the “red” button, and that you have not read the documentation, nor FAQ.
You most likely get your “energy” sensors (on the right picture in initial post above) from your energy provider, Total_ seems ok , whats messing it up is you add “Power_Sensors” , you create via some API … these have to be “converted” into "Energy_Sensors, so your next step would be, search this forum(after reading documentation, and FAQ) for howto make these sensors, in your search_terms you could narrow it down to first focusing on electricity, even thou gas_consumption also need to be provided as “Energy” but the Gas_Calculation is out of my “scope” , but i know there is a “logical” answer out there. … and today is monday, new day of week, you might not have hourly_consumption from your provider, right pic above ( so this info is normally 1-2 days delay )
Good Luck
Just remember the device_class: Power(in the left picture above, have to be converted into device_class: Energy … ( the reason why you haven’t “total” hourly_consumption, from these entities )