26
26
OUTPUT_CLUSTERS ,
27
27
PROFILE_ID ,
28
28
)
29
- from zhaquirks .schneiderelectric import SE_MANUF_NAME , SESpecific
29
+ from zhaquirks .schneiderelectric import SE_MANUF_ID , SE_MANUF_NAME , SEBasic , SESpecific
30
30
31
31
32
32
class ControlMode (t .enum8 ):
@@ -38,11 +38,19 @@ class ControlMode(t.enum8):
38
38
RL_LED = 3
39
39
40
40
41
- class WiserBallast (CustomCluster , Ballast ):
41
+ class SEBallast (CustomCluster , Ballast ):
42
+ manufacturer_id_override = SE_MANUF_ID
43
+
42
44
class AttributeDefs (Ballast .AttributeDefs ):
43
45
control_mode : Final = ZCLAttributeDef (
44
46
id = 0xE000 , type = ControlMode , is_manufacturer_specific = True
45
47
)
48
+ unknown_attribute_e001 : Final = ZCLAttributeDef (
49
+ id = 0xE002 , type = t .enum8 , is_manufacturer_specific = True
50
+ )
51
+ unknown_attribute_e002 : Final = ZCLAttributeDef (
52
+ id = 0xE002 , type = t .enum8 , is_manufacturer_specific = True
53
+ )
46
54
47
55
48
56
class NHRotaryDimmer1 (CustomDevice ):
@@ -104,13 +112,13 @@ class NHRotaryDimmer1(CustomDevice):
104
112
PROFILE_ID : zha .PROFILE_ID ,
105
113
DEVICE_TYPE : zha .DeviceType .DIMMABLE_LIGHT ,
106
114
INPUT_CLUSTERS : [
107
- Basic . cluster_id ,
115
+ SEBasic ,
108
116
Identify .cluster_id ,
109
117
Groups .cluster_id ,
110
118
Scenes .cluster_id ,
111
119
OnOff .cluster_id ,
112
120
LevelControl .cluster_id ,
113
- WiserBallast ,
121
+ SEBallast ,
114
122
Diagnostic .cluster_id ,
115
123
],
116
124
OUTPUT_CLUSTERS : [
@@ -121,7 +129,7 @@ class NHRotaryDimmer1(CustomDevice):
121
129
PROFILE_ID : zha .PROFILE_ID ,
122
130
DEVICE_TYPE : zha .DeviceType .DIMMER_SWITCH ,
123
131
INPUT_CLUSTERS : [
124
- Basic . cluster_id ,
132
+ SEBasic ,
125
133
Identify .cluster_id ,
126
134
Diagnostic .cluster_id ,
127
135
SESpecific ,
0 commit comments