Change unit of measurement ariston_central_heating_gas_consumption #87
-
Hi, thank you |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi. Sry. You can not change that for HA. Those settings are only for the official application. 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. |
Beta Was this translation helpful? Give feedback.
-
I've created a couple of virtual sensors for converting to m³. I'm not very convinced about the 10.69 value. template
- sensor:
- name: "Ariston Gas Acqua calda m³"
unique_id: ariston_gas_acqua_calda
state: "{{ (states('sensor.ariston_domestic_hot_water_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_domestic_hot_water_gas_consumption.attributes.last_reset}}"
- 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}}" |
Beta Was this translation helpful? Give feedback.
I've created a couple of virtual sensors for converting to m³. I'm not very convinced about the 10.69 value.