Skip to content

Commit 5844b2d

Browse files
committed
Add definitions for unknown attrs
1 parent c0b156d commit 5844b2d

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

zhaquirks/schneiderelectric/dimmers.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
OUTPUT_CLUSTERS,
2727
PROFILE_ID,
2828
)
29-
from zhaquirks.schneiderelectric import SE_MANUF_NAME, SESpecific
29+
from zhaquirks.schneiderelectric import SE_MANUF_ID, SE_MANUF_NAME, SEBasic, SESpecific
3030

3131

3232
class ControlMode(t.enum8):
@@ -38,11 +38,19 @@ class ControlMode(t.enum8):
3838
RL_LED = 3
3939

4040

41-
class WiserBallast(CustomCluster, Ballast):
41+
class SEBallast(CustomCluster, Ballast):
42+
manufacturer_id_override = SE_MANUF_ID
43+
4244
class AttributeDefs(Ballast.AttributeDefs):
4345
control_mode: Final = ZCLAttributeDef(
4446
id=0xE000, type=ControlMode, is_manufacturer_specific=True
4547
)
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+
)
4654

4755

4856
class NHRotaryDimmer1(CustomDevice):
@@ -104,13 +112,13 @@ class NHRotaryDimmer1(CustomDevice):
104112
PROFILE_ID: zha.PROFILE_ID,
105113
DEVICE_TYPE: zha.DeviceType.DIMMABLE_LIGHT,
106114
INPUT_CLUSTERS: [
107-
Basic.cluster_id,
115+
SEBasic,
108116
Identify.cluster_id,
109117
Groups.cluster_id,
110118
Scenes.cluster_id,
111119
OnOff.cluster_id,
112120
LevelControl.cluster_id,
113-
WiserBallast,
121+
SEBallast,
114122
Diagnostic.cluster_id,
115123
],
116124
OUTPUT_CLUSTERS: [
@@ -121,7 +129,7 @@ class NHRotaryDimmer1(CustomDevice):
121129
PROFILE_ID: zha.PROFILE_ID,
122130
DEVICE_TYPE: zha.DeviceType.DIMMER_SWITCH,
123131
INPUT_CLUSTERS: [
124-
Basic.cluster_id,
132+
SEBasic,
125133
Identify.cluster_id,
126134
Diagnostic.cluster_id,
127135
SESpecific,

0 commit comments

Comments
 (0)