XKNX / knx-integration

Home Assistant KNX integration proxy repository
9 stars 0 forks source link

Wrong unit for KNX Sensor Type "wind_speed_ms" applied #10

Closed PaRe1803 closed 2 weeks ago

PaRe1803 commented 2 weeks ago

I have added a sensor for wind speed, which is measured in [m/s]:

KNX: image

YAML: image

Unfortunately, the created entity unit is [km/h] instead of [m/s]: image

Did I do something wrong or is this an issue in the KNX integration of Home Assistant?

farmio commented 2 weeks ago

Hi 👋! Since device_class is correct, you should be able to change the unit in the entity options menu.

PaRe1803 commented 2 weeks ago

Hi @farmio,

thanks for your fast reply and suggestion.

You mean in dev.tools -> entities -> change the unit_of_measurement to "m/s" and Set State? image

I tried this already and it temporarily worked, but after a system restart the change is gone.

Any other suggestions?

farmio commented 2 weeks ago

No, I mean the settings found in the "more info" dialog of the entity.

Bildschirmfoto 2024-11-08 um 12 35 19
PaRe1803 commented 2 weeks ago

You are right, this worked. THANKS for your very fast support!

Anyhow - it is weird that the wrong unit is taken as the Default unit, isn't it?

farmio commented 2 weeks ago

It's using the default unit - probably based on location or user selection, I don't know for sure. Anyway, that's independent of backend / integration unit.

PaRe1803 commented 2 weeks ago

Sorry farmio, but I think I have to disagree, because there are different DPT values types for each unit: image

image

farmio commented 2 weeks ago

It's a HA (maybe user) default. Knx is the backend - that determines only native_unit_of_measurement (although I don't think that property is user facing).