you need entities that have a ‘total’ value reading, not a daily or other reset value. From that total value, the energy: integration calculates the daily values in the Dashboard.
those entities also need the state_class: total_increasing , and not just increasing as you mentioned above. (maybe a typo?)
really sorry but I am unfamiliar with those, and can not help with that. I take it thats a custom integration? So you’d best take it up with the authors and check how to get proper gas readings. As said above, you need total readings (not daily) for the long-term statistics to work
Edit : Problem solved - I shortned the names by removing 4 characters - now works fine
…
Response noted thanx - doesnt explain why 2 of them are selectable, whilst other 2 are not. I also have 6 other resettting sensors that come from utility_meter: that do work - also note many people are using the outputs from utility_meter: succesfully in the energy dash board?
Will stick it out to see if any one else chip in - else going to have to create extra templates for the diffierent tarrifs - someting which utility_meter: does nicely.
Is anyone succesfully using daily resetting sensors from “utility_meter:” in the energy dashboard?
Here they all are - all of them reset either daily or monthly:
Hi, I have gas unitm m3 but I don’t see any gas entity in energy.
I tried to customize entity
state_class measurement
but I don’t see item gas in device class dropdown menu.
Any idea?
thats strange, I opened the database with DB browser and it see that the DB stores old data (aug 9 and 10) for the price sensor. That data contains the old and wrong unit_of_measurement. That could cause the problem. I dont understand why the database does not contain more recent data but the UI does.
I’ve seen some posts about modifying the *.db file and opening it with DB Browser for SQLite. Theoretically that should enable us to add older data (e.g. from influxDB) and removing bad data. I will try this later this week when I have some time available. Yesterday (before I changed measurement to total_increasing) I also managed to ‘get’ 250.000 kWh of solar energy. Must have been sunny. But it does ruin all data for the current year overview…
If someone else successfully managed to edit the .db file, let us know please.
On a similar note, is there an easy way to scrap everything in the Energy panel and start from scratch? I’m talking not only about the data but also which sensors are being used for the representation… so, basically how to go back to the setup UI for Energy.
I really don’t want to reinstall HA just because I messed up the Energy view.
# Add this sensor if you want to see data in the energy tab
- platform: integration
source: sensor.current_cost
name: Current Cost Total Energy
unit_prefix: k
round: 2
Which automatically set the state and device class in the integration package but since you’re using mqtt I’m not sure how you’d resolve.
It should be total increasing I think, not just a measurement-in-time sensor.
I have other devices (power plugs, etc.) that report consumed kWh and they appear as options under grid consumption, which I used at first but then I got current cost working which is the whole house consumption from the grid rather than just the 4 or 5 devices.
that seems to be a customization? If so, take that out, and just as brunt says, rely on the sensor the integration returns. last_reset shouldn’t be used anymore in the first place, and, with the others, is set without customization.