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

Gas consumption in kWh

Open developerGM opened this issue 2 years ago • 16 comments

Hi, why if I add these 2 entities

Ariston domestic hot water gas consumption Ariston central heating gas consumption

on Energy board, I see kWh and not SMC ?

this is a gas consumption, not an electricity consumption.

developerGM avatar Nov 11 '23 11:11 developerGM

No, there isn't a sensor about it.

But my question is why I see kWh in energy board and not SMC (or m3)?

I pay by SMC consumption so I prefer see this value

developerGM avatar Nov 11 '23 13:11 developerGM

Hi @developerGM

You could update desire units through ariston web portal / mobile app, here is example for web portal image image

Or through home assistant - an ariston instance configuration

image

hellcatmon avatar Nov 28 '23 23:11 hellcatmon

Hello guys, same here. I prefer to see Smc instead of kWh. I've tried to change the parameters in the app and in the integration aa shown by @developerGM but still works onlt with kWh WTF :(

redstyle82 avatar Nov 29 '23 07:11 redstyle82

Yes, confirm that if you change the params in App (Ariston) or in HomeAssistant, not works. In Energy board I see always kWh

developerGM avatar Nov 29 '23 08:11 developerGM

@developerGM @redstyle82

As @fustom (see https://github.com/fustom/ariston-remotethermo-home-assistant-v3/discussions/87#discussioncomment-5179684) says:

The official app convert the kWh energy locally based on those settings. But you can do the similar thing in HA by change the settings for the [ariston_central_heating_gas_consumption] entity and set different unit of measurement.

To solve this problem, I created a couple of sensors: https://github.com/fustom/ariston-remotethermo-home-assistant-v3/discussions/87#discussioncomment-6123134

salvadorbs avatar Nov 29 '23 09:11 salvadorbs

@salvadorbs Ok, I will test it, thanks To integrate I need to add your code on sensors.yaml file?

developerGM avatar Nov 29 '23 11:11 developerGM

Configuration.yaml or your sensor yaml file, if you are using it.

salvadorbs avatar Nov 29 '23 22:11 salvadorbs

Configuration.yaml or your sensor yaml file, if you are using it.

@salvadorbs I am testing on sensors.yaml but I don't understand what kind of platform I need to write

  • platform: XXX

developerGM avatar Nov 30 '23 09:11 developerGM

Why platform? You do not need it. https://www.home-assistant.io/integrations/template/#state-based-template-binary-sensors-buttons-images-numbers-selects-and-sensors

salvadorbs avatar Dec 02 '23 17:12 salvadorbs

Same issue here.

SMC in Ariston/ATAG webportal, but not the option to use SMC (or M²s) is not possible to select.

image

image

nelissuh avatar Dec 04 '23 19:12 nelissuh

Small update for sensor gas:

template
  - sensor:
      - name: "Ariston Gas Riscaldamento m³"
        unique_id: ariston_gas_riscaldamento
        state: "{{ (states('sensor.ariston_central_heating_gas_consumption') | float / 10.69) | round(2) }}"
        unit_of_measurement: "m³"
        icon: mdi:cash
        device_class: gas
        state_class: total
        attributes:
          last_reset: "{{states.sensor.ariston_central_heating_gas_consumption.attributes.last_reset}}" 

Changed state_class from total_increasing to total and added last_reset attribute, like original sensor. I noticed that, especially with the heating sensor, the total_increasing state ignored the new values if they were similar (see home assistant docs). So I decided to use the state_class and last_reset attribute from the original sensor. For now it seems to work.

salvadorbs avatar Dec 11 '23 17:12 salvadorbs

@salvadorbs how can I set the card in HA to show always the m3 of today? so only totale current day

developerGM avatar Dec 11 '23 17:12 developerGM

I use these sensors in the energy dashboard. In any case, you should use stat cards:

  • Statistic card https://www.home-assistant.io/dashboards/statistic/
  • Statistics graph card https://www.home-assistant.io/dashboards/statistics-graph/

Stat type = change Period = today

salvadorbs avatar Dec 11 '23 20:12 salvadorbs

This is perfect but I see different values

In HA, I see for this month 30.46m³ In Ariston app, I see for december a total of 64SMC

Why?

developerGM avatar Dec 11 '23 22:12 developerGM

It could be missing consumption because of unavailable sensor values from API (API calls successful less that 50% in my case). By default the gas consumption sensor is updated every hour. In case bad response the last hour consumption will be unavailable and it could affect the total numbers. Try to set more frequent gas sensor updates (e.g. every 10 mins) to be guaranteed a consumption value every hour.

Find there more details. https://github.com/fustom/ariston-remotethermo-home-assistant-v3/issues/86

hellcatmon avatar Dec 13 '23 10:12 hellcatmon