ksya/ha-nefiteasy

Request add Gas usage history

sonar98 opened this issue · 7 comments

It would be nice if the gas usage history could be added to the integration.

When using the gas usage history endpoint you can split the usage in "Hot Water" and "Central Heating"

https://github.com/marcelrv/nefit_easy_protocol/blob/master/gasusage.md

Just looking quickly, I have no clue how to map that to an entity, as this reports gas usage day-to-day for the last 32 days. For example, the yearTotal is just a counter we read from the Nefit device and write to an entity.

Maybe just get the two values of the day before today. Then there are just two values to get from nefit.

Are you familiar with how entities work?

How do you intend to use the data? On the energy dashboard?

I don't know how entities work exactly.

I intended to use it as a utility meter so you can see what part of your total useage is for central heating and what part is for hot water.

If you deduct these two from the total gas usage (slimme meter) there probavly will be a part left and that is gas used for cooking.

Maybe #46 could be a solution? I think it doesn’t fit on the entity model.

I also wonder whether it is sufficiently accurate to compare to your P1, people have complained here before about large differences between Nefit and P1.
For example: #74 (comment)

If it is not accurate enough it can still be used to see wich percentage of the usage is for Hot water and what percentage is for central heating.

Watching this 🧵 , as this is very interesting when filling in approximate data in mindergas.nl for the hotwater/cooking values.