zigbee-herdsman-converters 25.108.0 → 25.110.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +52 -0
- package/dist/devices/custom_devices_diy.d.ts.map +1 -1
- package/dist/devices/custom_devices_diy.js +8 -0
- package/dist/devices/custom_devices_diy.js.map +1 -1
- package/dist/devices/danfoss.js +1 -1
- package/dist/devices/danfoss.js.map +1 -1
- package/dist/devices/domraem.d.ts.map +1 -1
- package/dist/devices/domraem.js +8 -1
- package/dist/devices/domraem.js.map +1 -1
- package/dist/devices/ikea.d.ts.map +1 -1
- package/dist/devices/ikea.js +108 -1
- package/dist/devices/ikea.js.map +1 -1
- package/dist/devices/lincukoo.d.ts.map +1 -1
- package/dist/devices/lincukoo.js +2 -1
- package/dist/devices/lincukoo.js.map +1 -1
- package/dist/devices/moes.d.ts.map +1 -1
- package/dist/devices/moes.js +251 -6
- package/dist/devices/moes.js.map +1 -1
- package/dist/devices/muller_licht.d.ts.map +1 -1
- package/dist/devices/muller_licht.js +7 -0
- package/dist/devices/muller_licht.js.map +1 -1
- package/dist/devices/nous.js +2 -2
- package/dist/devices/nous.js.map +1 -1
- package/dist/devices/onesti.d.ts.map +1 -1
- package/dist/devices/onesti.js +74 -16
- package/dist/devices/onesti.js.map +1 -1
- package/dist/devices/philips.d.ts.map +1 -1
- package/dist/devices/philips.js +63 -16
- package/dist/devices/philips.js.map +1 -1
- package/dist/devices/shelly.d.ts.map +1 -1
- package/dist/devices/shelly.js +18 -0
- package/dist/devices/shelly.js.map +1 -1
- package/dist/devices/slacky_diy.d.ts.map +1 -1
- package/dist/devices/slacky_diy.js +322 -9
- package/dist/devices/slacky_diy.js.map +1 -1
- package/dist/devices/somfy.js +1 -1
- package/dist/devices/somfy.js.map +1 -1
- package/dist/devices/tuya.d.ts.map +1 -1
- package/dist/devices/tuya.js +58 -2
- package/dist/devices/tuya.js.map +1 -1
- package/dist/devices/yale.d.ts.map +1 -1
- package/dist/devices/yale.js +8 -1
- package/dist/devices/yale.js.map +1 -1
- package/dist/devices/yandex.d.ts.map +1 -1
- package/dist/devices/yandex.js +2 -4
- package/dist/devices/yandex.js.map +1 -1
- package/dist/devices/zemismart.d.ts.map +1 -1
- package/dist/devices/zemismart.js +34 -0
- package/dist/devices/zemismart.js.map +1 -1
- package/dist/lib/constants.d.ts.map +1 -1
- package/dist/lib/constants.js +1 -0
- package/dist/lib/constants.js.map +1 -1
- package/dist/lib/modernExtend.d.ts +2 -1
- package/dist/lib/modernExtend.d.ts.map +1 -1
- package/dist/lib/modernExtend.js +3 -2
- package/dist/lib/modernExtend.js.map +1 -1
- package/dist/lib/types.d.ts +1 -1
- package/dist/lib/types.d.ts.map +1 -1
- package/dist/models-index.json +1 -1
- package/package.json +3 -3
package/dist/devices/onesti.js
CHANGED
|
@@ -47,16 +47,33 @@ const fzLocal = {
|
|
|
47
47
|
convert: (model, msg, publish, options, meta) => {
|
|
48
48
|
const result = {};
|
|
49
49
|
const attributes = {};
|
|
50
|
-
// Handle attribute 257
|
|
50
|
+
// Handle attribute 257: last_used_pin_code
|
|
51
|
+
// The lock sends PIN codes as the actual digits typed
|
|
52
|
+
// Report exactly what the lock sends
|
|
51
53
|
if (msg.data["257"] !== undefined) {
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
const data = msg.data["257"];
|
|
55
|
+
if (Buffer.isBuffer(data)) {
|
|
56
|
+
// Convert buffer to ASCII string
|
|
57
|
+
attributes.last_used_pin_code = data.toString("ascii").trim();
|
|
58
|
+
}
|
|
59
|
+
else if (Array.isArray(data)) {
|
|
60
|
+
// Array of bytes, convert to ASCII string
|
|
61
|
+
attributes.last_used_pin_code = Buffer.from(data).toString("ascii").trim();
|
|
62
|
+
}
|
|
63
|
+
else if (typeof data === "string") {
|
|
64
|
+
// Already a string
|
|
65
|
+
attributes.last_used_pin_code = data.trim();
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
// Fallback: convert to string
|
|
69
|
+
attributes.last_used_pin_code = String(data);
|
|
56
70
|
}
|
|
57
|
-
attributes.last_used_pin_code = pincode;
|
|
58
71
|
}
|
|
59
|
-
// Handle attribute 256
|
|
72
|
+
// Handle attribute 256: last action (lock/unlock) source and user
|
|
73
|
+
// Format: 4 bytes as 32-bit integer
|
|
74
|
+
// Byte 0: Source (00=zigbee, 02=keypad, 03=finger, 04=rfid, 0a=manual)
|
|
75
|
+
// Byte 1: Action (01=lock, 02=unlock)
|
|
76
|
+
// Bytes 2-3: User ID (16-bit integer)
|
|
60
77
|
if (msg.data["256"] !== undefined) {
|
|
61
78
|
const hex = msg.data["256"].toString(16).padStart(8, "0");
|
|
62
79
|
const firstOctet = String(hex.substring(0, 2));
|
|
@@ -71,15 +88,38 @@ const fzLocal = {
|
|
|
71
88
|
const secondOctet = hex.substring(2, 4);
|
|
72
89
|
const thirdOctet = hex.substring(4, 8);
|
|
73
90
|
result.last_action_user = Number.parseInt(thirdOctet, 16);
|
|
91
|
+
// Store user ID as string for consistency with Home Assistant expectations
|
|
92
|
+
const userIdStr = result.last_action_user.toString();
|
|
74
93
|
if (secondOctet === "01") {
|
|
75
|
-
attributes.last_lock_user =
|
|
94
|
+
attributes.last_lock_user = userIdStr;
|
|
76
95
|
attributes.last_lock_source = result.last_action_source;
|
|
77
96
|
}
|
|
78
97
|
else if (secondOctet === "02") {
|
|
79
|
-
attributes.last_unlock_user =
|
|
98
|
+
attributes.last_unlock_user = userIdStr;
|
|
80
99
|
attributes.last_unlock_source = result.last_action_source;
|
|
81
100
|
}
|
|
82
101
|
}
|
|
102
|
+
// Handle voltage attribute (if present)
|
|
103
|
+
if (Object.hasOwn(msg.data, "voltage")) {
|
|
104
|
+
attributes.voltage = msg.data["voltage"];
|
|
105
|
+
}
|
|
106
|
+
// Handle auto_relock_time attribute (if present)
|
|
107
|
+
if (Object.hasOwn(msg.data, "autoRelockTime")) {
|
|
108
|
+
attributes.auto_relock_time = msg.data["autoRelockTime"];
|
|
109
|
+
}
|
|
110
|
+
// Handle lock capabilities (if present)
|
|
111
|
+
// Attribute 18 (0x12): Number of PIN users supported
|
|
112
|
+
if (Object.hasOwn(msg.data, 18)) {
|
|
113
|
+
attributes.max_pin_users = msg.data[18];
|
|
114
|
+
}
|
|
115
|
+
// Attribute 23 (0x17): Min PIN code length
|
|
116
|
+
if (Object.hasOwn(msg.data, 23)) {
|
|
117
|
+
attributes.min_pin_length = msg.data[23];
|
|
118
|
+
}
|
|
119
|
+
// Attribute 24 (0x18): Max PIN code length
|
|
120
|
+
if (Object.hasOwn(msg.data, 24)) {
|
|
121
|
+
attributes.max_pin_length = msg.data[24];
|
|
122
|
+
}
|
|
83
123
|
// Return result if not empty
|
|
84
124
|
if (Object.keys(attributes).length > 0) {
|
|
85
125
|
return attributes;
|
|
@@ -103,13 +143,21 @@ exports.definitions = [
|
|
|
103
143
|
fz.easycodetouch_action,
|
|
104
144
|
],
|
|
105
145
|
toZigbee: [tz.lock, tz.easycode_auto_relock, tz.lock_sound_volume, tz.pincode_lock],
|
|
106
|
-
meta: { pinCodeCount: 1000 },
|
|
146
|
+
meta: { pinCodeCount: 1000, battery: { dontDividePercentage: true } },
|
|
107
147
|
configure: async (device, coordinatorEndpoint) => {
|
|
108
148
|
const endpoint = device.getEndpoint(11);
|
|
109
149
|
await reporting.bind(endpoint, coordinatorEndpoint, ["closuresDoorLock", "genPowerCfg"]);
|
|
110
150
|
await reporting.lockState(endpoint);
|
|
111
151
|
await reporting.batteryPercentageRemaining(endpoint);
|
|
112
152
|
await endpoint.read("closuresDoorLock", ["lockState", "soundVolume"]);
|
|
153
|
+
// Try to read lock capabilities (may not be supported by all models)
|
|
154
|
+
try {
|
|
155
|
+
await endpoint.read("closuresDoorLock", [18, 23, 24]); // maxPinUsers, minPinLength, maxPinLength
|
|
156
|
+
}
|
|
157
|
+
catch (_error) {
|
|
158
|
+
// Capabilities read may fail on some models - this is expected and harmless
|
|
159
|
+
// Attributes will be exposed if the lock reports them during operation
|
|
160
|
+
}
|
|
113
161
|
device.powerSource = "Battery";
|
|
114
162
|
device.save();
|
|
115
163
|
},
|
|
@@ -117,16 +165,21 @@ exports.definitions = [
|
|
|
117
165
|
e.lock(),
|
|
118
166
|
e.battery(),
|
|
119
167
|
e.sound_volume(),
|
|
168
|
+
e.voltage(),
|
|
120
169
|
e
|
|
121
170
|
.enum("last_unlock_source", ea.STATE, ["zigbee", "keypad", "fingerprintsensor", "rfid", "self", "unknown"])
|
|
122
171
|
.withDescription("Last unlock source"),
|
|
123
|
-
e.text("last_unlock_user", ea.STATE).withDescription("Last unlock user
|
|
172
|
+
e.text("last_unlock_user", ea.STATE).withDescription("Last unlock user (slot number)"),
|
|
124
173
|
e
|
|
125
174
|
.enum("last_lock_source", ea.STATE, ["zigbee", "keypad", "fingerprintsensor", "rfid", "self", "unknown"])
|
|
126
175
|
.withDescription("Last lock source"),
|
|
127
|
-
e.text("last_lock_user", ea.STATE).withDescription("Last lock user"),
|
|
128
|
-
e.text("last_used_pin_code", ea.STATE).withDescription("Last used pin code"),
|
|
176
|
+
e.text("last_lock_user", ea.STATE).withDescription("Last lock user (slot number)"),
|
|
177
|
+
e.text("last_used_pin_code", ea.STATE).withDescription("Last used pin code (actual digits)"),
|
|
129
178
|
e.binary("auto_relock", ea.STATE_SET, true, false).withDescription("Auto relock after 7 seconds."),
|
|
179
|
+
e.numeric("auto_relock_time", ea.STATE).withUnit("s").withDescription("Auto relock delay in seconds"),
|
|
180
|
+
e.numeric("max_pin_users", ea.STATE).withDescription("Maximum number of PIN users supported"),
|
|
181
|
+
e.numeric("min_pin_length", ea.STATE).withDescription("Minimum PIN code length"),
|
|
182
|
+
e.numeric("max_pin_length", ea.STATE).withDescription("Maximum PIN code length"),
|
|
130
183
|
e.pincode(),
|
|
131
184
|
e.text("last_successful_pincode_clear", ea.STATE).withDescription("Last deleted Pincode"),
|
|
132
185
|
e.text("last_successful_pincode_save", ea.STATE).withDescription("Last saved Pincode"),
|
|
@@ -160,16 +213,21 @@ exports.definitions = [
|
|
|
160
213
|
e.lock(),
|
|
161
214
|
e.battery(),
|
|
162
215
|
e.sound_volume(),
|
|
216
|
+
e.voltage(),
|
|
163
217
|
e
|
|
164
218
|
.enum("last_unlock_source", ea.STATE, ["zigbee", "keypad", "fingerprintsensor", "rfid", "self", "unknown"])
|
|
165
219
|
.withDescription("Last unlock source"),
|
|
166
|
-
e.text("last_unlock_user", ea.STATE).withDescription("Last unlock user
|
|
220
|
+
e.text("last_unlock_user", ea.STATE).withDescription("Last unlock user (slot number)"),
|
|
167
221
|
e
|
|
168
222
|
.enum("last_lock_source", ea.STATE, ["zigbee", "keypad", "fingerprintsensor", "rfid", "self", "unknown"])
|
|
169
223
|
.withDescription("Last lock source"),
|
|
170
|
-
e.text("last_lock_user", ea.STATE).withDescription("Last lock user"),
|
|
171
|
-
e.text("last_used_pin_code", ea.STATE).withDescription("Last used pin code"),
|
|
224
|
+
e.text("last_lock_user", ea.STATE).withDescription("Last lock user (slot number)"),
|
|
225
|
+
e.text("last_used_pin_code", ea.STATE).withDescription("Last used pin code (actual digits)"),
|
|
172
226
|
e.binary("auto_relock", ea.STATE_SET, true, false).withDescription("Auto relock after 7 seconds."),
|
|
227
|
+
e.numeric("auto_relock_time", ea.STATE).withUnit("s").withDescription("Auto relock delay in seconds"),
|
|
228
|
+
e.numeric("max_pin_users", ea.STATE).withDescription("Maximum number of PIN users supported"),
|
|
229
|
+
e.numeric("min_pin_length", ea.STATE).withDescription("Minimum PIN code length"),
|
|
230
|
+
e.numeric("max_pin_length", ea.STATE).withDescription("Maximum PIN code length"),
|
|
173
231
|
e.pincode(),
|
|
174
232
|
],
|
|
175
233
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onesti.js","sourceRoot":"","sources":["../../src/devices/onesti.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6DAA+C;AAC/C,2DAA6C;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,EAAE,CAAC,MAAM,EAAE,EAAE;YACjB,OAAO,EAAC,OAAO,EAAE,CAAC,EAAC,CAAC;QACxB,CAAC;KACJ;CACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"philips.d.ts","sourceRoot":"","sources":["../../src/devices/philips.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAC,oBAAoB,EAAS,MAAM,cAAc,CAAC;AA0J/D,eAAO,MAAM,WAAW,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"philips.d.ts","sourceRoot":"","sources":["../../src/devices/philips.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAC,oBAAoB,EAAS,MAAM,cAAc,CAAC;AA0J/D,eAAO,MAAM,WAAW,EAAE,oBAAoB,EA4nJ7C,CAAC"}
|
package/dist/devices/philips.js
CHANGED
|
@@ -451,25 +451,32 @@ exports.definitions = [
|
|
|
451
451
|
description: "Centris Hue 2-spot white",
|
|
452
452
|
extend: [philips.m.light({ colorTemp: { range: [153, 500] }, color: { modes: ["xy", "hs"], enhancedHue: true } })],
|
|
453
453
|
},
|
|
454
|
+
{
|
|
455
|
+
zigbeeModel: ["929003809301_01", "929003809301_02", "929003809301_03"],
|
|
456
|
+
model: "929003809301",
|
|
457
|
+
vendor: "Philips",
|
|
458
|
+
description: "Hue White and Color Ambiance GU10 (Centura - Silver)",
|
|
459
|
+
extend: [philips.m.light({ colorTemp: { range: [153, 500] }, color: { modes: ["xy", "hs"], enhancedHue: true } })],
|
|
460
|
+
},
|
|
454
461
|
{
|
|
455
462
|
zigbeeModel: ["929003809501_01", "929003809501_02", "929003809501_03"],
|
|
456
463
|
model: "929003809501",
|
|
457
464
|
vendor: "Philips",
|
|
458
|
-
description: "Hue White and Color Ambiance GU10 (Centura)",
|
|
465
|
+
description: "Hue White and Color Ambiance GU10 (Centura - Black)",
|
|
459
466
|
extend: [philips.m.light({ colorTemp: { range: [153, 500] }, color: true })],
|
|
460
467
|
},
|
|
461
468
|
{
|
|
462
469
|
zigbeeModel: ["929003045201_01", "929003045201_02", "929003045201_03"],
|
|
463
470
|
model: "929003045201",
|
|
464
471
|
vendor: "Philips",
|
|
465
|
-
description: "Hue White and Color Ambiance GU10 (Centura
|
|
472
|
+
description: "Hue White and Color Ambiance GU10 (Centura - White)",
|
|
466
473
|
extend: [philips.m.light({ colorTemp: { range: [153, 500] }, color: true })],
|
|
467
474
|
},
|
|
468
475
|
{
|
|
469
476
|
zigbeeModel: ["929003809701_01", "929003809701_02", "929003809701_03"],
|
|
470
477
|
model: "929003809701",
|
|
471
478
|
vendor: "Philips",
|
|
472
|
-
description: "Hue White and Color Ambiance GU10 (Centura
|
|
479
|
+
description: "Hue White and Color Ambiance GU10 (Centura - White)",
|
|
473
480
|
extend: [philips.m.light({ colorTemp: { range: [153, 500] }, color: true })],
|
|
474
481
|
},
|
|
475
482
|
{
|
|
@@ -1544,7 +1551,7 @@ exports.definitions = [
|
|
|
1544
1551
|
extend: [philips.m.light()],
|
|
1545
1552
|
},
|
|
1546
1553
|
{
|
|
1547
|
-
zigbeeModel: ["LCW004"],
|
|
1554
|
+
zigbeeModel: ["LCW004", "LCW005"],
|
|
1548
1555
|
model: "046677585235",
|
|
1549
1556
|
vendor: "Philips",
|
|
1550
1557
|
description: "Hue Dymera indoor and outdoor wall light",
|
|
@@ -3530,6 +3537,19 @@ exports.definitions = [
|
|
|
3530
3537
|
description: "Hue OmniGlow lightstrip 5m",
|
|
3531
3538
|
extend: [philips.m.light({ colorTemp: { range: [50, 1000] }, color: { modes: ["xy", "hs"], enhancedHue: true } })],
|
|
3532
3539
|
},
|
|
3540
|
+
{
|
|
3541
|
+
zigbeeModel: ["929004608201"],
|
|
3542
|
+
model: "929004608201",
|
|
3543
|
+
vendor: "Philips",
|
|
3544
|
+
description: "Hue OmniGlow lightstrip 10m",
|
|
3545
|
+
extend: [
|
|
3546
|
+
philips.m.light({
|
|
3547
|
+
colorTemp: { range: [50, 1000] },
|
|
3548
|
+
color: { modes: ["xy", "hs"], enhancedHue: true },
|
|
3549
|
+
gradient: { extraEffects: ["sparkle", "opal", "glisten", "prism", "underwater", "cosmos", "sunbeam", "enchant"] },
|
|
3550
|
+
}),
|
|
3551
|
+
],
|
|
3552
|
+
},
|
|
3533
3553
|
{
|
|
3534
3554
|
zigbeeModel: ["929003099301", "929003099302"],
|
|
3535
3555
|
model: "929003099301",
|
|
@@ -4820,37 +4840,64 @@ exports.definitions = [
|
|
|
4820
4840
|
extend: [philips.m.light({ colorTemp: { range: [153, 500] } })],
|
|
4821
4841
|
},
|
|
4822
4842
|
{
|
|
4823
|
-
zigbeeModel: ["
|
|
4824
|
-
model: "
|
|
4843
|
+
zigbeeModel: ["929004610402", "929004610502", "929004610602", "929004610702", "929004610802"],
|
|
4844
|
+
model: "929004610402",
|
|
4825
4845
|
vendor: "Philips",
|
|
4826
|
-
description: "Hue White and Color Flux
|
|
4846
|
+
description: "Hue White and Color Lightstrip Flux (3m)",
|
|
4827
4847
|
whiteLabel: [
|
|
4848
|
+
{
|
|
4849
|
+
model: "929004610502",
|
|
4850
|
+
vendor: "Philips",
|
|
4851
|
+
description: "Hue White and Color Lightstrip Flux (4m)",
|
|
4852
|
+
fingerprint: [{ modelID: "929004610502" }],
|
|
4853
|
+
},
|
|
4854
|
+
{
|
|
4855
|
+
model: "929004610602",
|
|
4856
|
+
vendor: "Philips",
|
|
4857
|
+
description: "Hue White and Color Lightstrip Flux (5m)",
|
|
4858
|
+
fingerprint: [{ modelID: "929004610602" }],
|
|
4859
|
+
},
|
|
4828
4860
|
{
|
|
4829
4861
|
model: "929004610702",
|
|
4830
4862
|
vendor: "Philips",
|
|
4831
|
-
description: "Hue White and Color Flux
|
|
4863
|
+
description: "Hue White and Color Lightstrip Flux (6m)",
|
|
4832
4864
|
fingerprint: [{ modelID: "929004610702" }],
|
|
4833
4865
|
},
|
|
4834
4866
|
{
|
|
4835
4867
|
model: "929004610802",
|
|
4836
4868
|
vendor: "Philips",
|
|
4837
|
-
description: "Hue White and Color Flux
|
|
4869
|
+
description: "Hue White and Color Lightstrip Flux (10m)",
|
|
4838
4870
|
fingerprint: [{ modelID: "929004610802" }],
|
|
4839
4871
|
},
|
|
4872
|
+
],
|
|
4873
|
+
extend: [
|
|
4874
|
+
philips.m.light({
|
|
4875
|
+
colorTemp: { range: [50, 1000] },
|
|
4876
|
+
color: { modes: ["xy", "hs"], enhancedHue: true },
|
|
4877
|
+
gradient: { extraEffects: ["sparkle", "opal", "glisten", "prism", "underwater", "cosmos", "sunbeam", "enchant"] },
|
|
4878
|
+
}),
|
|
4879
|
+
],
|
|
4880
|
+
},
|
|
4881
|
+
{
|
|
4882
|
+
zigbeeModel: ["929004276602", "929004276702", "929004276802"],
|
|
4883
|
+
model: "929004276602",
|
|
4884
|
+
vendor: "Philips",
|
|
4885
|
+
description: "Hue White and Color Lightstrip Ultra Bright (3m)",
|
|
4886
|
+
whiteLabel: [
|
|
4840
4887
|
{
|
|
4841
|
-
model: "
|
|
4888
|
+
model: "929004276702",
|
|
4842
4889
|
vendor: "Philips",
|
|
4843
|
-
description: "Hue White and Color
|
|
4844
|
-
fingerprint: [{ modelID: "
|
|
4890
|
+
description: "Hue White and Color Lightstrip Ultra Bright (5m)",
|
|
4891
|
+
fingerprint: [{ modelID: "929004276702" }],
|
|
4845
4892
|
},
|
|
4846
4893
|
{
|
|
4847
|
-
model: "
|
|
4894
|
+
model: "929004276802",
|
|
4848
4895
|
vendor: "Philips",
|
|
4849
|
-
description: "Hue White and Color
|
|
4850
|
-
fingerprint: [{ modelID: "
|
|
4896
|
+
description: "Hue White and Color Lightstrip Ultra Bright (10m)",
|
|
4897
|
+
fingerprint: [{ modelID: "929004276802" }],
|
|
4851
4898
|
},
|
|
4852
4899
|
],
|
|
4853
|
-
extend: [philips.m.light({ colorTemp: { range: [
|
|
4900
|
+
extend: [philips.m.light({ colorTemp: { range: [50, 1000] }, color: { modes: ["xy", "hs"], enhancedHue: true } })],
|
|
4854
4901
|
},
|
|
4855
4902
|
];
|
|
4856
4903
|
//# sourceMappingURL=philips.js.map
|