Closed gajotnt closed 1 year ago
https://github.com/jello1974/duosidaEV-home-assistant/blob/main/custom_components/duosida/duosida.py
Maybe this should go from this:
DuosidaSensorEntityDescription(
key=DeviceDetail.POWER,
name=f"{NAME} Power",
device_class=SensorDeviceClass.POWER,
state_class=SensorStateClass.MEASUREMENT,
native_unit_of_measurement=UnitOfPower.KILO_WATT,
get_native_value=DuosidaDevice.get_device_power,
),
To this?
DuosidaSensorEntityDescription(
key=DeviceDetail.POWER,
name=f"{NAME} Power",
device_class=SensorDeviceClass.POWER,
state_class=SensorStateClass.MEASUREMENT,
native_unit_of_measurement=UnitOfPower.WATT,
get_native_value=DuosidaDevice.get_device_power,
),
Dont know how to code, just had a look on your code and... well i tried... xD
Hello,
Yes you’re wright. I didn’t use that sensor so i didn’t notice that issue.
The change you made should resolve the problem.
Hello there, my trip got delayed a couple of days and i got time to test this
everything works great so far but the power isnt right.
It should display 2.6kw and its displaying 2600kw I have another sensor (Zoe) that shows the correct wattage If i change the unit from Kw to W:
Maybe its DuoSida thats giving the wrong number, or maybe in the integration something is being misscalculated?
Edit: In the D's charge app the power show correctly