Skip to content

Commit

Permalink
Add last meter reading which provide the last charge in kWh
Browse files Browse the repository at this point in the history
  • Loading branch information
nickknissen committed Sep 21, 2023
1 parent 715c733 commit 3f3e7ec
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions custom_components/monta/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ class MontaSensorEntityDescription(SensorEntityDescription):
device_class=SensorDeviceClass.ENUM,
options=[x.value for x in ChargerStatus],
),
SensorEntityDescription(
key="charger_lastMeterReadingKwh",
name="Last meter reading",
icon="mdi:counter",
device_class=SensorDeviceClass.ENERGY,
native_unit_of_measurement="kWh",
),
)


Expand Down

0 comments on commit 3f3e7ec

Please sign in to comment.