Skip to content

Commit

Permalink
Further updates to date time entity
Browse files Browse the repository at this point in the history
  • Loading branch information
c503ghosh committed Nov 5, 2024
1 parent 50305b5 commit da12380
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion custom_components/dirigera_platform/base_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,10 @@ def time_of_last_energy_reset(self, value):

class total_energy_consumed_last_updated_sensor(ikea_base_device_sensor, DateTimeEntity):
def __init__(self, device):
super().__init__(device,"total_energy_consumed_last_updated","%Y-%m-%dT%H:%M:%S.%f%z","TECLU01"," Time Energy Consumed Last Updated")
super().__init__( device,
id_suffix="TECLU01",
name="Time Energy Consumed Last Updated",
icon="mdi:update")

def __init__(self, device):
super().__init__(
Expand Down
6 changes: 5 additions & 1 deletion custom_components/dirigera_platform/hub_event_listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@
"openCloseSensor" : ["isOpen","batteryPercentage"],
"waterSensor" : ["waterLeakDetected","batteryPercentage"],
"blinds" : ["blindsCurrentLevel","batteryPercentage"],
"environmentSensor": ["currentTemperature","currentRH","batteryPercentage"]
"environmentSensor": [ "currentTemperature",
"currentRH",
"currentPM25",
"vocIndex",
"batteryPercentage"]
}

controller_trigger_last_time_map = {}
Expand Down

0 comments on commit da12380

Please sign in to comment.