ariston-remotethermo-home-assistant-v3 icon indicating copy to clipboard operation
ariston-remotethermo-home-assistant-v3 copied to clipboard

Adding gas consumption to HA Energy card

Open vhunyad opened this issue 2 years ago • 7 comments

Thanks for the good work! I just tried to add the gas consumption values to the Energy integration but got an error message. https://www.home-assistant.io/docs/energy/

When I want to add the values in Settings/Dashboards/Energy/Gas consumption, the meters do not show up in the list. It says, that the sensors are not set up correctly: https://www.home-assistant.io/more-info/statistics/ It points to this dev docs: https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics

It would be lovely to see Ariston gas on the energy dashboard.

vhunyad avatar Nov 06 '22 12:11 vhunyad

That's interesting! It works for me. May I ask what kind of device do you have?

fustom avatar Nov 08 '22 20:11 fustom

Same problem here. The gas consumption sensors are available in grid consumption and individual devices dropdowns but not in the gas consumption category. I have a Genus one boiler. These are the state attributes of dwh gas consumption sensor: state_class: total last_reset: '2022-11-08T20:27:15.945425+00:00' unit_of_measurement: kWh device_class: energy icon: mdi:cash friendly_name: Ariston domestic hot water gas consumption

desosav avatar Nov 08 '22 21:11 desosav

Ok. I tried with HA 2022.10.1 and it seems there is an issue from 2022.11.0 https://github.com/home-assistant/core/issues/81496

fustom avatar Nov 08 '22 22:11 fustom

Check this ticket: https://github.com/home-assistant/frontend/issues/14292

fustom avatar Nov 08 '22 22:11 fustom

I have Genus one as well, you might be right, it seems a HA problem.

vhunyad avatar Nov 09 '22 08:11 vhunyad

By the way, the gas consumption is reset to zero peridoically, but I can not find the logic, sometimes it is 2 hours, sometimes 4. Is there any idea what is the rule here?

vhunyad avatar Nov 09 '22 08:11 vhunyad

They are not showing up because the measurement_unit for gas sensors need to be in m³ or ft³.

I also have 2 question about some sensors:

Are the following sensors measuring the Gas consumption?...if yes why are they in kWh and not m³?

  • sensor.ariston_central_heating_total_energy_consumption
  • sensor.ariston_domestic_hot_water_total_energy_consumption
  • sensor.ariston_gas_consumption_for_heating_last_month
  • sensor.ariston_gas_consumption_for_water_last_month

Are the following two sensors reporting the consumption from the previous reading?...or for what interval are they reporting the consumption?

  • sensor.ariston_central_heating_total_energy_consumption
  • sensor.ariston_domestic_hot_water_total_energy_consumption

ovidiudinu avatar Nov 10 '22 14:11 ovidiudinu