Adding received and delivered KWH readings.

This commit is contained in:
Adam Outler
2021-12-27 12:11:18 -05:00
parent 5ae04c5c15
commit 8b3ccbeb9f
3 changed files with 28 additions and 0 deletions

View File

@@ -38,3 +38,27 @@ class BillToDateKWHSensor(FplEntity):
@property
def icon(self):
return "mdi:flash"
class NetReceivedKWHSensor(FplEntity):
def __init__(self, coordinator, config, account):
super().__init__(coordinator, config, account, "Received Meter Reading KWH")
@property
def state(self):
return self.getData("recMtrReading")
@property
def icon(self):
return "mdi:flash"
class NetDeliveredKWHSensor(FplEntity):
def __init__(self, coordinator, config, account):
super().__init__(coordinator, config, account, "Delivered Meter Reading KWH")
@property
def state(self):
return self.getData("delMtrReading")
@property
def icon(self):
return "mdi:flash"