48
48
TOGGLE ,
49
49
)
50
50
from zhaquirks .ikea import (
51
- COMMAND_SHORTCUT_V1 ,
52
51
IKEA ,
53
52
IKEA_CLUSTER_ID ,
54
53
WWAH_CLUSTER_ID ,
@@ -153,7 +152,6 @@ class IkeaSymfoniskGen2v1(CustomDevice):
153
152
PollControl .cluster_id ,
154
153
LightLink .cluster_id ,
155
154
WWAH_CLUSTER_ID ,
156
- ShortcutV1Cluster ,
157
155
],
158
156
OUTPUT_CLUSTERS : [
159
157
Identify .cluster_id ,
@@ -174,27 +172,27 @@ class IkeaSymfoniskGen2v1(CustomDevice):
174
172
device_automation_triggers .update (
175
173
{
176
174
(SHORT_PRESS , BUTTON_1 ): {
177
- COMMAND : COMMAND_SHORTCUT_V1 ,
175
+ COMMAND : ShortcutV1Cluster . ServerCommandDefs . shortcut_v1_events . name ,
178
176
PARAMS : {"shortcut_button" : 1 , "shortcut_event" : 1 },
179
177
},
180
178
(DOUBLE_PRESS , BUTTON_1 ): {
181
- COMMAND : COMMAND_SHORTCUT_V1 ,
179
+ COMMAND : ShortcutV1Cluster . ServerCommandDefs . shortcut_v1_events . name ,
182
180
PARAMS : {"shortcut_button" : 1 , "shortcut_event" : 2 },
183
181
},
184
182
(LONG_PRESS , BUTTON_1 ): {
185
- COMMAND : COMMAND_SHORTCUT_V1 ,
183
+ COMMAND : ShortcutV1Cluster . ServerCommandDefs . shortcut_v1_events . name ,
186
184
PARAMS : {"shortcut_button" : 1 , "shortcut_event" : 3 },
187
185
},
188
186
(SHORT_PRESS , BUTTON_2 ): {
189
- COMMAND : COMMAND_SHORTCUT_V1 ,
187
+ COMMAND : ShortcutV1Cluster . ServerCommandDefs . shortcut_v1_events . name ,
190
188
PARAMS : {"shortcut_button" : 2 , "shortcut_event" : 1 },
191
189
},
192
190
(DOUBLE_PRESS , BUTTON_2 ): {
193
- COMMAND : COMMAND_SHORTCUT_V1 ,
191
+ COMMAND : ShortcutV1Cluster . ServerCommandDefs . shortcut_v1_events . name ,
194
192
PARAMS : {"shortcut_button" : 2 , "shortcut_event" : 2 },
195
193
},
196
194
(LONG_PRESS , BUTTON_2 ): {
197
- COMMAND : COMMAND_SHORTCUT_V1 ,
195
+ COMMAND : ShortcutV1Cluster . ServerCommandDefs . shortcut_v1_events . name ,
198
196
PARAMS : {"shortcut_button" : 2 , "shortcut_event" : 3 },
199
197
},
200
198
},
0 commit comments