Skip to content

Commit

Permalink
feat: Add EV Charging Power
Browse files Browse the repository at this point in the history
  • Loading branch information
asychow committed Nov 17, 2024
1 parent 986218b commit 8d486bd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion custom_components/kia_uvo/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
13 changes: 11 additions & 2 deletions custom_components/kia_uvo/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from homeassistant.const import (
PERCENTAGE,
UnitOfEnergy,
UnitOfPower,
UnitOfTime,
)

Expand Down Expand Up @@ -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,
),
)


Expand Down

0 comments on commit 8d486bd

Please sign in to comment.