Can’t add unit m3 via customize.yaml

Hello,
I try to add units to my heat measurement.
At my configuration.yaml i have

homeassistant:
  customize: !include customize.yaml

At the customize.yaml

sensor.hwr_waerme_waerme_w_total:
    unique_id: Wärme_Gesamtverbrauch
    device_class: energy
    unit_of_measurement: "kWh"
    state_class: total_increasing
sensor.hwr_waerme_waerme_v_total:
    unique_id: Wärme_Volume
    device_class: water
    unit of measurement: m3
    state_class: total_increasing
sensor.hwr_waerme_warme_taglich:
    unique_id: Wärme_Tagesverbrauch
    device_class: energy
    unit_of_measurement: "kWh"
    state_class: total
sensor.hwr_waerme_warme_volumen_taglich:
    unique_id: Wärme_Tagesvolumen
    device_class: water
    unit of measurement: "m3"
    state_class: total

And i can see the at the Tasmota integration

Why the kWh will work and the m3 not?
Thx for any hint :slight_smile:

Check out this for posting code. It helps us help you!

:one::one: Format it properly

Sorry don’t understand what is wrong?

You need to post your code using formatting blocks so that people can actually read it.

Nonetheless, I can see your issue anyway.

m3 is not a valid unit of measurement
The 3 needs to be a superscript character. Sorry I can’t type it when I’m on my phone, but you can copy it from this page:

Please review the link I shared. @mekaneck said it well… You need to post your code using formatting blocks so that people can actually read it.

We copy posted code to quickly test it for errors.

Thx, but this don’t resolve the problem.
Have put in now „m³“ :person_shrugging:t3:

@LiQuid_cOOled
Is it now better?

Try

  - name: HWR Wärme Wärme V Total
    device_class: water
    unit_of_measurement: m³
sensor.hwr_waerme_waerme_w_total:
  device_class: energy
  unit_of_measurement: "kWh"
  state_class: total_increasing

sensor.hwr_waerme_waerme_v_total:
  device_class: water
  unit_of_measurement: "m³"
  state_class: total_increasing

sensor.hwr_waerme_warme_taglich:
  device_class: energy
  unit_of_measurement: "kWh"
  state_class: total

sensor.hwr_waerme_warme_volumen_taglich:
  device_class: water
  unit_of_measurement: "m³"
  state_class: total

Well that it

unit_of_measurement:

I don’t copy the „_“

THX