Replies: 4 comments
-
Beta Was this translation helpful? Give feedback.
-
I set the correct metertype in AIOTED and the values do show up with the correct unit in HA, but the HA-feature to convert it to a different unit on the fly isnt available. Edit: For both gas and water the device_class for the rates would be "volume_flow_rate" according to: https://developers.home-assistant.io/docs/core/entity/sensor/#available-device-classes |
Beta Was this translation helpful? Give feedback.
-
We would need to see if we can extend the existing implementation without breaking any of the existing functionality. Starting point: Your link interestingly states some different units, eg. |
Beta Was this translation helpful? Give feedback.
-
I created an issue for it: #3333 |
Beta Was this translation helpful? Give feedback.
-
I have a few smartplugs where i can manually select how HA should display the power values, like this:
For the AI-on-the-edge entities however i cannot. The option is completely missing:
What i found is that the rate-sensor is missing the "device_class" attribute. That would have to be added here for both "rates", i think "power" would be correct as thats what my smartplugs report:
AI-on-the-edge-device/code/components/jomjol_mqtt/server_mqtt.cpp
Lines 187 to 198 in 67c3020
But i am not 100% sure if that is the only reason why home assistant doesnt let me choose the unit....i also found this old thread about the "native_unit_of_measurement": https://community.home-assistant.io/t/unit-of-measurement-2022-4/409860/16
Beta Was this translation helpful? Give feedback.
All reactions