enkama / hass-variables

Home Assistant variables component
90 stars 12 forks source link

unit_of_measurement: not working #28

Closed letsid closed 1 year ago

letsid commented 1 year ago

Hi,

it seems unit of measurement is not working

  grid_consumption_1_daily_yesterday:
    value: "Not set"
    restore: true
    attributes:
      friendly_name: "Netzbezug gestern"
      state_class: measurement
      unit_of_measurement: kWh

image

I though creating a template sensor which just stores the value in an other sensor to show it correctly but iis possible to use the unit_of measurement directly I would like to do it. br, letsid

letsid commented 1 year ago

I am using the way of setting up a template sensor now. This workaround is fine with me.