Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New feature in HA regarding water comsuption #29

Open
aperezva opened this issue Nov 3, 2022 · 9 comments
Open

New feature in HA regarding water comsuption #29

aperezva opened this issue Nov 3, 2022 · 9 comments

Comments

@aperezva
Copy link

aperezva commented Nov 3, 2022

Hi,

In 2022.11 there is a new feature to monitorize Water consumption, but sensor that this integration generated are not in the available list of sensors.

Any solution to fix it?

Thanks

@labbs1
Copy link

labbs1 commented Nov 3, 2022

Hi,

In 2022.11 there is a new feature to monitorize Water consumption, but sensor that this integration generated are not in the available list of sensors.

Any solution to fix it?

Thanks

I second this ;)
Would be much appreciated.

@aperezva
Copy link
Author

aperezva commented Nov 3, 2022

Fix it.

We must to include in the sensor the attribute: state_class: "total"

But it's a pity don't have a authorized integration like other solution have as a flume etc.

We will alive with this manual integration, at least it's an amazing work in this circumstance.

@autopower
Copy link

autopower commented Nov 4, 2022

As a workaround, add code into configuration.yaml:

homeassistant:
  customize_glob:
    sensor.your_name_of_sensor_1_day:
      last_reset: '1970-01-01T00:00:00+00:00'
      device_class: water
      state_class: total_increasing

and update last reset with automation by midnight.

@aperezva
Copy link
Author

aperezva commented Nov 4, 2022

Hi @autopower thanks.

I just fighting with this. If I use senosr_1_day at the midnight I have negative numbers because sensors is reset to 0.

What can we do to keep numbers because window between 0 hours a 1 am result is negative like the same number that sensor finish day after.

Thanks.

@aperezva
Copy link
Author

aperezva commented Nov 5, 2022

Hi @autopower thanks.

I just fighting with this. If I use senosr_1_day at the midnight I have negative numbers because sensors is reset to 0.

What can we do to keep numbers because window between 0 hours a 1 am result is negative like the same number that sensor finish day after.

Thanks.

@autopower
last_reset attribute is deprecated, and we can not use it. tht´s the problem taht every mignight I have peak in the comsuption, when sensor becomes 0

@openPhiL
Copy link

openPhiL commented Feb 22, 2023

I have this in my configuration yaml and it seems to be working (i don't have the integration in HA but in openhab and just copy the value here..)

template:
  - sensor:
      - name: "Wasserverbrauch"
        state_class: total_increasing
        device_class: water
        unit_of_measurement: "m³"
        state: "{{ states('sensor.0_1_5_grohesenseguardgerat_waterconsumption')  }}"

@Knobiwahn
Copy link

I have this in my configuration yaml and it seems to be working (i don't have the integration in HA but in openhab and just copy the value here..)

template:
  - sensor:
      - name: "Wasserverbrauch"
        state_class: total_increasing
        device_class: water
        unit_of_measurement: "m³"
        state: "{{ states('sensor.0_1_5_grohesenseguardgerat_waterconsumption')  }}"

Hey werden die daten denn an Homeassistant übermitelt?
How did you send the data to HA?

@openPhiL
Copy link

Hey werden die daten denn an Homeassistant übermitelt? How did you send the data to HA?
Dafür gibt es ja eine OpenHab Integration https://community.home-assistant.io/t/custom-component-openhab-integration/373942

@Knobiwahn
Copy link

Hey werden die daten denn an Homeassistant übermitelt? How did you send the data to HA?
Dafür gibt es ja eine OpenHab Integration https://community.home-assistant.io/t/custom-component-openhab-integration/373942

Ive tryed that one… i just get data of pressure, temperature and a switch for the valve to Homeassistant, so im missen the consumption of the water … dunno why and im a newbe with openhab.
I find out that the dveloper of that integration passed out ….sry for
https://github.com/kubawolanin/ha-openhab/issues/created_by/Knobiwahn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants