ksya / ha-nefiteasy

Nefit Easy connection for Home Assistant
74 stars 30 forks source link

Request add Gas usage history #194

Open sonar98 opened 1 year ago

sonar98 commented 1 year ago

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

RobBie1221 commented 1 year ago

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.

sonar98 commented 1 year ago

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

RobBie1221 commented 1 year ago

Are you familiar with how entities work?

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

sonar98 commented 1 year ago

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.

RobBie1221 commented 1 year ago

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: https://github.com/ksya/ha-nefiteasy/issues/74#issuecomment-939745742

sonar98 commented 1 year ago

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.

ChefkeGremmen commented 1 year ago

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