Adding received and delivered KWH readings.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user