ekutner / home-connect-hass

Alternative (and improved) Home Connect integration for Home Assistant
MIT License
638 stars 62 forks source link

Energy usage / Water usage #420

Open davidrwalton opened 2 months ago

davidrwalton commented 2 months ago

Not sure if this should be a feature request. My Bosch Dishwasher seems to report energy and water usage as a percentage in HA not sure I understand why it would be that as theirs nothing in the doc for this plugin. Could this be fixed at some point or is this a limitation of what’s in the api? I’m sure if it was available it would be a great addition.

cheers

jensrossbach commented 2 months ago

I agree, energy and water consumption as percentage is pretty useless (percent of what?). I have the same issue. On the other side, the app reports energy and water consumption in kWh and liters. Can this be fixed?

ekutner commented 1 month ago

This is what's coming from the API, you can override it if you really wanted to, but what would be the meaning of changing the unit when the data arrives as percentage numbers?

jensrossbach commented 1 month ago

Is that part of the API documented somewhere? Maybe there's some explanation what the percentage values refer to.

ekutner commented 1 month ago

I didn't find any documentation for it. I guess it's a percent of the maximum cycle consumption, whatever that may be.

Cryonic90 commented 1 month ago

Is it possible to also report this for a cooktop? I can see it on the device itself, but it is not shown in the integration. Not sure if the API reports the energy consumption for a cooktop?

DemianTinkiel commented 2 weeks ago

Sounds like these are percentage of average consumption.

You could use a template to do this, with values based on the max liter and wattage specs of your device, or if you're lazy like me, just use what you see in the home connect app. In my case

Energy : 79% × 1.5189873417722 = 1.2
Water: 56% × 20.535714285714 = 11.5

E.g

{{
  states("sensor.012030389287015391_bsh_common_option_waterforecast")|float/100*20.535714285714|round(1)
}}

I just put this in a mushroom chip template card but making your own custom sensor is probably better for reusability Screenshot_20241110_170124_Home Assistant

Note that

  1. This is statistical (they say the same in the app)
  2. I must be doing something wrong with the round function at the end but you get the point 😅
ebioman commented 5 days ago

@DemianTinkiel where did you modify this, I am struggling to find the right yaml and entry for this, or did you only to that for the widget?

DemianTinkiel commented 5 days ago

@DemianTinkiel where did you modify this, I am struggling to find the right yaml and entry for this, or did you only to that for the widget?

@ebioman I only did it for that widget. in my case I did it on a dashboard card with a mushroom-chip e.g.

chips:
      - type: template
        content: |-
          {{
            states("sensor.012030389287015391_bsh_common_option_waterforecast")|float/100*20.535714285714|round(1)

          }} L

I just did a quick check on how to do it as a sensor: settings > devices and services > helpers > create helper. From there select template > template a sensor Screenshot_20241125_073948_Chrome

ebioman commented 4 days ago

thx, giving it a try