Closed PaRe1803 closed 2 weeks ago
Hi 👋!
Since device_class
is correct, you should be able to change the unit in the entity options menu.
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?
I tried this already and it temporarily worked, but after a system restart the change is gone.
Any other suggestions?
No, I mean the settings found in the "more info" dialog of the entity.
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?
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.
Sorry farmio, but I think I have to disagree, because there are different DPT values types for each unit:
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).
I have added a sensor for wind speed, which is measured in [m/s]:
KNX:
YAML:
Unfortunately, the created entity unit is [km/h] instead of [m/s]:
Did I do something wrong or is this an issue in the KNX integration of Home Assistant?