raomin / ESPAltherma

Monitor your Daikin Altherma / ROTEX heat pump with ESP32
MIT License
356 stars 121 forks source link

Home assistant missing celsius value #6

Closed pengemetal closed 3 years ago

pengemetal commented 3 years ago

Hi,

Just one more question :) In HA is created sensors, but C is missing (and Amper too) everywhere. Is it possible heat pump dont give these values? It is important for grahps. I can see your sensors have these. image

raomin commented 3 years ago

Hi @pengemetal,

As explained in the Readme, you'll have to extract your Attributes as Entities using Template. When you declare your Template you can specify a unit. eg:

  - platform: template
    sensors:
      espaltherma_dhw:
        friendly_name: "DHW Temp"
        value_template: "{{ state_attr('sensor.altherma','DHW tank temp. (R5T)') }}"
        unit_of_measurement: '°C'

Once you restart HA, your templated attributes will be available for your charts. Happy dashboarding :)

-- If you like this project, please consider supporting it, buy me a beer!

pengemetal commented 3 years ago

Oh, so sorry, I forgot to add unit of measurment, only the value template. :)