Skip to content

Commit 3f3e7ec

Browse files
committed
Add last meter reading which provide the last charge in kWh
1 parent 715c733 commit 3f3e7ec

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

custom_components/monta/sensor.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ class MontaSensorEntityDescription(SensorEntityDescription):
4949
device_class=SensorDeviceClass.ENUM,
5050
options=[x.value for x in ChargerStatus],
5151
),
52+
SensorEntityDescription(
53+
key="charger_lastMeterReadingKwh",
54+
name="Last meter reading",
55+
icon="mdi:counter",
56+
device_class=SensorDeviceClass.ENERGY,
57+
native_unit_of_measurement="kWh",
58+
),
5259
)
5360

5461

0 commit comments

Comments
 (0)