diff --git a/custom_components/kia_uvo/manifest.json b/custom_components/kia_uvo/manifest.json index e8409904..207b49f2 100644 --- a/custom_components/kia_uvo/manifest.json +++ b/custom_components/kia_uvo/manifest.json @@ -8,6 +8,6 @@ "iot_class": "cloud_polling", "issue_tracker": "https://github.com/Hyundai-Kia-Connect/kia_uvo/issues", "loggers": ["kia_uvo", "hyundai_kia_connect_api"], - "requirements": ["hyundai_kia_connect_api==3.27.0"], + "requirements": ["hyundai_kia_connect_api==3.29.0"], "version": "2.30.0" } diff --git a/custom_components/kia_uvo/sensor.py b/custom_components/kia_uvo/sensor.py index 945803be..5c98f90e 100644 --- a/custom_components/kia_uvo/sensor.py +++ b/custom_components/kia_uvo/sensor.py @@ -17,6 +17,7 @@ from homeassistant.const import ( PERCENTAGE, UnitOfEnergy, + UnitOfPower, UnitOfTime, ) @@ -236,17 +237,25 @@ ), SensorEntityDescription( key="ev_v2l_discharge_limit", - name="V2L Discharge Limit", + name="EV V2L Discharge Limit", native_unit_of_measurement=PERCENTAGE, device_class=SensorDeviceClass.BATTERY, ), SensorEntityDescription( key="ev_charging_current", - name="Charging Current Limit", + name="EV Charging Current Limit", icon="mdi:lightning-bolt-circle", native_unit_of_measurement=PERCENTAGE, device_class=SensorDeviceClass.POWER_FACTOR, ), + SensorEntityDescription( + key="ev_charging_power", + name="EV Charging Power", + icon="mdi:flash", + native_unit_of_measurement=UnitOfPower.KILO_WATT, + device_class=SensorDeviceClass.POWER, + state_class=SensorStateClass.MEASUREMENT, + ), )