File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
zha/zigbee/cluster_handlers Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 8181IKEA_REMOTE_CLUSTER : Final [int ] = 0xFC80
8282INOVELLI_CLUSTER : Final [int ] = 0xFC31
8383OSRAM_BUTTON_CLUSTER : Final [int ] = 0xFD00
84+ PHILIPS_CONTACT_CLUSTER : Final [int ] = 0xFC06
8485PHILLIPS_REMOTE_CLUSTER : Final [int ] = 0xFC00
8586SMARTTHINGS_ACCELERATION_CLUSTER : Final [int ] = 0xFC02
8687SMARTTHINGS_HUMIDITY_CLUSTER : Final [int ] = 0xFC45
Original file line number Diff line number Diff line change 3131 IKEA_REMOTE_CLUSTER ,
3232 INOVELLI_CLUSTER ,
3333 OSRAM_BUTTON_CLUSTER ,
34+ PHILIPS_CONTACT_CLUSTER ,
3435 PHILLIPS_REMOTE_CLUSTER ,
3536 REPORT_CONFIG_ASAP ,
3637 REPORT_CONFIG_DEFAULT ,
@@ -78,6 +79,17 @@ class OsramButtonClusterHandler(ClusterHandler):
7879 REPORT_CONFIG = ()
7980
8081
82+ @registries .CLUSTER_HANDLER_ONLY_CLUSTERS .register (PHILIPS_CONTACT_CLUSTER )
83+ @registries .CLUSTER_HANDLER_REGISTRY .register (PHILIPS_CONTACT_CLUSTER )
84+ class PhillipsContactClusterHandler (ClusterHandler ):
85+ """Phillips contact cluster handler."""
86+
87+ REPORT_CONFIG = (
88+ AttrReportConfig (attr = "contact" , config = REPORT_CONFIG_IMMEDIATE ),
89+ AttrReportConfig (attr = "tamper" , config = REPORT_CONFIG_IMMEDIATE ),
90+ )
91+
92+
8193@registries .CLUSTER_HANDLER_ONLY_CLUSTERS .register (PHILLIPS_REMOTE_CLUSTER )
8294@registries .CLUSTER_HANDLER_REGISTRY .register (PHILLIPS_REMOTE_CLUSTER )
8395class PhillipsRemoteClusterHandler (ClusterHandler ):
You can’t perform that action at this time.
0 commit comments