I have a smartplug where i can select between "W" and "kW" as unit in the sensor settings. I also have two sensors from the "ai-on-the-edge" project which report power consumption, but on these sensors the unit setting is not avaible, not even shown greyed out, its just not there. These sensor are setup via MQTT/auto-discovery.
Which sensor or device attributes are needed to allow the unit selection? All mentioned sensors already have a "state_class" of "measurement" and a device_class of "power". However i can only select the unit on the smartplug-sensor...