File tree 1 file changed +40
-0
lines changed
1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ """Third Reality radar sensor devices."""
2
+
3
+ from typing import Final
4
+
5
+ from zigpy .quirks import CustomCluster
6
+ from zigpy .quirks .v2 import QuirkBuilder
7
+ from zigpy .quirks .v2 .homeassistant import UnitOfTime
8
+ import zigpy .types as t
9
+ from zigpy .zcl .foundation import BaseAttributeDefs , ZCLAttributeDef
10
+
11
+
12
+ class ThirdRealityRadarCluster (CustomCluster ):
13
+ """Third Reality's radar sensor private cluster."""
14
+
15
+ cluster_id = 0xFF01
16
+
17
+ class AttributeDefs (BaseAttributeDefs ):
18
+ """Define the attributes of a private cluster."""
19
+
20
+ detection_interval : Final = ZCLAttributeDef (
21
+ id = 0x0001 ,
22
+ type = t .uint16_t ,
23
+ is_manufacturer_specific = True ,
24
+ )
25
+
26
+
27
+ (
28
+ QuirkBuilder ("Third Reality, Inc" , "3RSMR01067Z" )
29
+ .replaces (ThirdRealityRadarCluster )
30
+ .number (
31
+ attribute_name = ThirdRealityRadarCluster .AttributeDefs .detection_interval .name ,
32
+ min_value = 0 ,
33
+ max_value = 3600 ,
34
+ unit = UnitOfTime .SECONDS ,
35
+ cluster_id = ThirdRealityRadarCluster .cluster_id ,
36
+ translation_key = "detection_interval" ,
37
+ fallback_name = "Detection interval" ,
38
+ )
39
+ .add_to_registry ()
40
+ )
You can’t perform that action at this time.
0 commit comments