golles / ha-kamstrup_403

Custom component that integrates the Kamstrup 403 heating system into Home Assistant. This component does also support a few other heating systems
MIT License
72 stars 12 forks source link

Set Device class for 'Volume' sensor #103

Closed SirJohnDoe closed 1 year ago

SirJohnDoe commented 1 year ago

Did you read the instructions?

The request

First of all thank you for this integration, it works great.

One small suggestion I have: By default the 'Heat Energy (E1)' and 'Volume' sensors are activated. The former can now be used in the Energy dashboard, but the 'Volume' sensor cannot be used, because the Device class is missing. I'd like to monitor the Volume as well in the dashboard through the 'Water consumption' dashboard, because I don't have a Cold water meter, so I might as well show this.

So my request: could you add the volume Device class to the Volume sensor?

The 'Heat energy to gas' section can probably also be removed from the Readme, as the energy dashboard now supports Gas sensors with GJ unit. Or the section and sensor can be kept but with a proper conversion: according to this blog the GJ should be multiplied by 32 to get the m3 gas equivalent. After searching a bit more I see that it's actually 31,6 according to this Dutch government website.

image

Thanks!

Additional information

No response

golles commented 1 year ago

Hi @SirJohnDoe thanks for your message.

One small suggestion I have: By default the 'Heat Energy (E1)' and 'Volume' sensors are activated. The former can now be used in the Energy dashboard, but the 'Volume' sensor cannot be used, because the Device class is missing. I'd like to monitor the Volume as well in the dashboard through the 'Water consumption' dashboard, because I don't have a Cold water meter, so I might as well show this. So my request: could you add the volume Device class to the Volume sensor?

I'm not quite sure if the city heating volume should be considered as water usage.

The 'Heat energy to gas' section can probably also be removed from the Readme, as the energy dashboard now supports Gas sensors with GJ unit. Or the section and sensor can be kept but with a proper conversion: according to this blog the GJ should be multiplied by 32 to get the m3 gas equivalent. After searching a bit more I see that it's actually 31,6 according to this Dutch government website.

I'm on HA 2023.9.2 and I can't add the E1 sensor to the gas usage section, it can be added in the individual devices block, however, that doesn't provide a nice overview of the usage. The gas section has a much nicer graph.

It was a deliberate decision to have a 1:1 conversation for the E1 sensor to gas, even though this is not the right way to convert GJ to gas, it does provide an easy way to see your usage and compare that with your meter.

SirJohnDoe commented 1 year ago

Hmm fair enough, not sure what exactly the water volume measures. If it's just water flowing through the system it's not that useful.

As for using the GJ sensor, Heat Energy (E1), I can select it in the latest HA. It was added last year: https://github.com/home-assistant/core/pull/80870

image