cyprieng / gazpar-home-assistant

Retrieve Gazpar consumption in home assistant
32 stars 9 forks source link

Add volume (m3) sensors #15

Closed Mincka closed 2 years ago

Mincka commented 3 years ago

The upcoming version of HA will support gaz but it looks like they plan to require m3 as measurement unit... image

Volume makes sense for exact consumption but kWh is more useful for alignment and price mapping. I asked support for both on Twitter.

Anyway, since the volume is also available on the GRDF website, it could be great to get it with additional sensors. I had a quick look and there's minor changes between the requests for kWh and m3 for the payload.

I may propose a PR for this.

cyprieng commented 2 years ago

I added m3 sensors, it works for month period but not for day period (it returns months instead of days). I copy/paste the request from grdf but it doesn't work.

I will let you know if I find a fix.