Skip to content

Change unit of measurement ariston_central_heating_gas_consumption #87

Answered by salvadorbs
tizianocinelli asked this question in Q&A
Discussion options

You must be logged in to vote

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: ""
        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('s…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@angeloliuzzi
Comment options

@salvadorbs
Comment options

Comment options

You must be logged in to vote
3 replies
@redstyle82
Comment options

@nelissuh
Comment options

@developerGM
Comment options

Answer selected by fustom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants