Skip to content

Commit

Permalink
Update hub events to handle more real time events
Browse files Browse the repository at this point in the history
  • Loading branch information
c503ghosh committed Nov 4, 2024
1 parent c85b582 commit 7a5034d
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions custom_components/dirigera_platform/hub_event_listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,20 @@
logger = logging.getLogger("custom_components.dirigera_platform")

process_events_from = {
"motionSensor" : ["isDetected","isOn"],
"outlet" : ["isOn"],
"light" : ["isOn", "lightLevel", "colorTemperature"],
"openCloseSensor" : ["isOpen"],
"waterSensor" : ["waterLeakDetected"]
"motionSensor" : ["isDetected","isOn","batteryPercentage"],
"outlet" : [ "isOn",
"currentAmps",
"currentActivePower",
"currentVoltage",
"totalEnergyConsumed",
"energyConsumedAtLastReset",
"timeOfLastEnergyReset",
"totalEnergyConsumedLastUpdated"],
"light" : ["isOn", "lightLevel", "colorTemperature"],
"openCloseSensor" : ["isOpen","batteryPercentage"],
"waterSensor" : ["waterLeakDetected","batteryPercentage"],
"blinds" : ["blindsCurrentLevel","batteryPercentage"],
"environmentSensor": ["currentTemperature","currentRH","batteryPercentage"]
}

controller_trigger_last_time_map = {}
Expand Down

0 comments on commit 7a5034d

Please sign in to comment.