Skip to content

Commit b2d6a4e

Browse files
authored
fix: ADEO: lights turn off at brightness 1 (#11360)
1 parent 5aab6e8 commit b2d6a4e

2 files changed

Lines changed: 29 additions & 29 deletions

File tree

src/devices/adeo.ts

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -80,35 +80,35 @@ export const definitions: DefinitionWithExtend[] = [
8080
model: "IA-CDZOTAAA007MA-MAN",
8181
vendor: "ADEO",
8282
description: "ENKI LEXMAN E27 7.2 to 60W LED RGBW",
83-
extend: [m.light({colorTemp: {range: [153, 370]}, color: true})],
83+
extend: [m.light({colorTemp: {range: [153, 370]}, color: true, turnsOffAtBrightness1: true})],
8484
},
8585
{
8686
zigbeeModel: ["ZBEK-2"],
8787
model: "IG-CDZOTAAG014RA-MAN",
8888
vendor: "ADEO",
8989
description: "ENKI LEXMAN E27 14W to 100W LED RGBW v2",
90-
extend: [m.light({colorTemp: {range: [153, 370]}, color: true})],
90+
extend: [m.light({colorTemp: {range: [153, 370]}, color: true, turnsOffAtBrightness1: true})],
9191
},
9292
{
9393
zigbeeModel: ["ZBEK-3"],
9494
model: "IP-CDZOTAAP005JA-MAN",
9595
vendor: "ADEO",
9696
description: "ENKI LEXMAN E14 LED RGBW",
97-
extend: [m.light({colorTemp: {range: [153, 370]}, color: true})],
97+
extend: [m.light({colorTemp: {range: [153, 370]}, color: true, turnsOffAtBrightness1: true})],
9898
},
9999
{
100100
zigbeeModel: ["ZBEK-4"],
101101
model: "IM-CDZDGAAA0005KA_MAN",
102102
vendor: "ADEO",
103103
description: "ENKI LEXMAN RGBTW GU10 Bulb",
104-
extend: [m.light({colorTemp: {range: [153, 370]}, color: true})],
104+
extend: [m.light({colorTemp: {range: [153, 370]}, color: true, turnsOffAtBrightness1: true})],
105105
},
106106
{
107107
zigbeeModel: ["ZBEK-5"],
108108
model: "IST-CDZFB2AS007NA-MZN-01",
109109
vendor: "ADEO",
110110
description: "ENKI LEXMAN E27 LED white",
111-
extend: [m.light({colorTemp: {range: [153, 454]}})],
111+
extend: [m.light({colorTemp: {range: [153, 454]}, turnsOffAtBrightness1: true})],
112112
},
113113
{
114114
zigbeeModel: ["SIN-4-1-21_EQU"],
@@ -122,127 +122,127 @@ export const definitions: DefinitionWithExtend[] = [
122122
model: "IST-CDZFB2AS007NA-MZN-02",
123123
vendor: "ADEO",
124124
description: "ENKI LEXMAN E27 LED Edison white filament 806 lumen",
125-
extend: [m.light({colorTemp: {range: [153, 454]}})],
125+
extend: [m.light({colorTemp: {range: [153, 454]}, turnsOffAtBrightness1: true})],
126126
},
127127
{
128128
zigbeeModel: ["ZBEK-8"],
129129
model: "IG-CDZFB2G009RA-MZN-02",
130130
vendor: "ADEO",
131131
description: "ENKI LEXMAN E27 LED white filament 1055 lumen",
132-
extend: [m.light({colorTemp: {range: [153, 454]}})],
132+
extend: [m.light({colorTemp: {range: [153, 454]}, turnsOffAtBrightness1: true})],
133133
},
134134
{
135135
zigbeeModel: ["ZBEK-9"],
136136
model: "IA-CDZFB2AA007NA-MZN-02",
137137
vendor: "ADEO",
138138
description: "ENKI LEXMAN E27 LED white",
139-
extend: [m.light({colorTemp: {range: [153, 454]}})],
139+
extend: [m.light({colorTemp: {range: [153, 454]}, turnsOffAtBrightness1: true})],
140140
},
141141
{
142142
zigbeeModel: ["ZBEK-6"],
143143
model: "IG-CDZB2AG009RA-MZN-01",
144144
vendor: "ADEO",
145145
description: "ENKI LEXMAN E27 Led white bulb",
146-
extend: [m.light({colorTemp: {range: [153, 454]}})],
146+
extend: [m.light({colorTemp: {range: [153, 454]}, turnsOffAtBrightness1: true})],
147147
},
148148

149149
{
150150
zigbeeModel: ["ZBEK-10"],
151151
model: "IC-CDZFB2AC004HA-MZN",
152152
vendor: "ADEO",
153153
description: "ENKI LEXMAN E14 LED white",
154-
extend: [m.light({colorTemp: {range: [153, 454]}})],
154+
extend: [m.light({colorTemp: {range: [153, 454]}, turnsOffAtBrightness1: true})],
155155
},
156156
{
157157
zigbeeModel: ["ZBEK-11"],
158158
model: "IM-CDZDGAAG005KA-MZN",
159159
vendor: "ADEO",
160160
description: "ENKI LEXMAN GU-10 LED white",
161-
extend: [m.light({colorTemp: {range: [153, 454]}})],
161+
extend: [m.light({colorTemp: {range: [153, 454]}, turnsOffAtBrightness1: true})],
162162
},
163163
{
164164
zigbeeModel: ["ZBEK-12"],
165165
model: "IA-CDZFB2AA007NA-MZN-01",
166166
vendor: "ADEO",
167167
description: "ENKI LEXMAN E27 LED white",
168-
extend: [m.light({colorTemp: {range: [153, 454]}})],
168+
extend: [m.light({colorTemp: {range: [153, 454]}, turnsOffAtBrightness1: true})],
169169
},
170170
{
171171
zigbeeModel: ["ZBEK-13"],
172172
model: "IG-CDZFB2AG010RA-MNZ",
173173
vendor: "ADEO",
174174
description: "ENKI LEXMAN E27 LED white",
175-
extend: [m.light({colorTemp: {range: [153, 454]}})],
175+
extend: [m.light({colorTemp: {range: [153, 454]}, turnsOffAtBrightness1: true})],
176176
},
177177
{
178178
zigbeeModel: ["ZBEK-14"],
179179
model: "IC-CDZFB2AC005HA-MZN",
180180
vendor: "ADEO",
181181
description: "ENKI LEXMAN E14 LED white",
182-
extend: [m.light({colorTemp: {range: [153, 454]}})],
182+
extend: [m.light({colorTemp: {range: [153, 454]}, turnsOffAtBrightness1: true})],
183183
},
184184
{
185185
zigbeeModel: ["ZBEK-22"],
186186
model: "BD05C-FL-21-G-ENK",
187187
vendor: "ADEO",
188188
description: "ENKI LEXMAN RGBCCT lamp",
189-
extend: [m.light({colorTemp: {range: [153, 370]}, color: true})],
189+
extend: [m.light({colorTemp: {range: [153, 370]}, color: true, turnsOffAtBrightness1: true})],
190190
},
191191
{
192192
zigbeeModel: ["ZBEK-27"],
193193
model: "84845506",
194194
vendor: "ADEO",
195195
description: "ENKI LEXMAN Gdansk",
196-
extend: [m.light({colorTemp: {range: [153, 370]}, color: true})],
196+
extend: [m.light({colorTemp: {range: [153, 370]}, color: true, turnsOffAtBrightness1: true})],
197197
},
198198
{
199199
zigbeeModel: ["ZBEK-29"],
200200
model: "84845509",
201201
vendor: "ADEO",
202202
description: "ENKI LEXMAN Gdansk LED panel",
203-
extend: [m.light({colorTemp: {range: [153, 370]}, color: true})],
203+
extend: [m.light({colorTemp: {range: [153, 370]}, color: true, turnsOffAtBrightness1: true})],
204204
},
205205
{
206206
zigbeeModel: ["ZBEK-28"],
207207
model: "PEZ1-042-1020-C1D1",
208208
vendor: "ADEO",
209209
description: "ENKI LEXMAN Gdansk",
210-
extend: [m.light({colorTemp: {range: [153, 370]}, color: true})],
210+
extend: [m.light({colorTemp: {range: [153, 370]}, color: true, turnsOffAtBrightness1: true})],
211211
},
212212
{
213213
zigbeeModel: ["ZBEK-30"],
214214
model: "ZBEK-30",
215215
vendor: "Adeo",
216216
description: "ENKI LEXMAN Gdansk",
217-
extend: [m.light({colorTemp: {range: [153, 370]}, color: {modes: ["xy", "hs"], enhancedHue: true}})],
217+
extend: [m.light({colorTemp: {range: [153, 370]}, color: {modes: ["xy", "hs"], enhancedHue: true}, turnsOffAtBrightness1: true})],
218218
},
219219
{
220220
zigbeeModel: ["ZBEK-31"],
221221
model: "84870054",
222222
vendor: "ADEO",
223223
description: "ENKI LEXMAN Extraflat 85",
224-
extend: [m.light({colorTemp: {range: [153, 370]}, color: true})],
224+
extend: [m.light({colorTemp: {range: [153, 370]}, color: true, turnsOffAtBrightness1: true})],
225225
},
226226
{
227227
zigbeeModel: ["ZBEK-32"],
228228
model: "ZBEK-32",
229229
vendor: "ADEO",
230230
description: "ENKI Inspire Extraflat D12",
231-
extend: [m.light({colorTemp: {range: [153, 370]}, color: true})],
231+
extend: [m.light({colorTemp: {range: [153, 370]}, color: true, turnsOffAtBrightness1: true})],
232232
},
233233
{
234234
zigbeeModel: ["ZBEK-33"],
235235
model: "ZBEK-33",
236236
vendor: "ADEO",
237237
description: "ENKI Inspire Extraflat 2400Lumens",
238-
extend: [m.light({colorTemp: {range: [153, 370]}, color: true})],
238+
extend: [m.light({colorTemp: {range: [153, 370]}, color: true, turnsOffAtBrightness1: true})],
239239
},
240240
{
241241
zigbeeModel: ["ZBEK-34"],
242242
model: "84870058",
243243
vendor: "ADEO",
244244
description: "ENKI LEXMAN Extraflat 225 ",
245-
extend: [m.light({colorTemp: {range: [153, 370]}, color: true})],
245+
extend: [m.light({colorTemp: {range: [153, 370]}, color: true, turnsOffAtBrightness1: true})],
246246
},
247247
{
248248
zigbeeModel: ["LDSENK01F"],
@@ -309,28 +309,28 @@ export const definitions: DefinitionWithExtend[] = [
309309
model: "9CZA-A806ST-Q1A",
310310
vendor: "ADEO",
311311
description: "ENKI LEXMAN E27 LED RGBW",
312-
extend: [m.light({colorTemp: {range: undefined}, color: true})],
312+
extend: [m.light({colorTemp: {range: undefined}, color: true, turnsOffAtBrightness1: true})],
313313
},
314314
{
315315
zigbeeModel: ["LXEK-3"],
316316
model: "9CZA-P470T-A1A",
317317
vendor: "ADEO",
318318
description: "ENKI LEXMAN E14 LED RGBW",
319-
extend: [m.light({colorTemp: {range: [153, 370]}, color: true})],
319+
extend: [m.light({colorTemp: {range: [153, 370]}, color: true, turnsOffAtBrightness1: true})],
320320
},
321321
{
322322
zigbeeModel: ["LXEK-4"],
323323
model: "9CZA-M350ST-Q1A",
324324
vendor: "ADEO",
325325
description: "ENKI LEXMAN GU-10 LED RGBW",
326-
extend: [m.light({colorTemp: {range: undefined}, color: true})],
326+
extend: [m.light({colorTemp: {range: undefined}, color: true, turnsOffAtBrightness1: true})],
327327
},
328328
{
329329
zigbeeModel: ["LXEK-2"],
330330
model: "9CZA-G1521-Q1A",
331331
vendor: "ADEO",
332332
description: "ENKI LEXMAN E27 14W to 100W LED RGBW",
333-
extend: [m.light({colorTemp: {range: undefined}, color: true})],
333+
extend: [m.light({colorTemp: {range: undefined}, color: true, turnsOffAtBrightness1: true})],
334334
},
335335
{
336336
zigbeeModel: ["LDSENK07"],
@@ -353,7 +353,7 @@ export const definitions: DefinitionWithExtend[] = [
353353
model: "9CZA-A806ST-Q1Z",
354354
vendor: "ADEO",
355355
description: "ENKI LEXMAN E27 LED white",
356-
extend: [m.light({colorTemp: {range: [153, 370]}})],
356+
extend: [m.light({colorTemp: {range: [153, 370]}, turnsOffAtBrightness1: true})],
357357
},
358358
{
359359
zigbeeModel: ["LDSENK02F"],

test/modernExtend.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ describe("ModernExtend", () => {
129129

130130
test("light({color: true})", async () => {
131131
await assertDefinition({
132-
device: mockDevice({modelID: "ZBEK-1", endpoints: [{inputClusters: ["genOnOff", "genLevelCtrl", "lightingColorCtrl"]}]}),
132+
device: mockDevice({modelID: "AD-E14RGBW3001", endpoints: [{inputClusters: ["genOnOff", "genLevelCtrl", "lightingColorCtrl"]}]}),
133133
meta: {},
134134
fromZigbee: [fz.on_off, fz.brightness, fz.level_config, fz.color_colortemp, fz.power_on_behavior],
135135
toZigbee: [

0 commit comments

Comments
 (0)