zigbee-herdsman-converters 14.0.303 → 14.0.304
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/devices/philips.js +12 -3
- package/lib/ota/tradfri.js +5 -2
- package/npm-shrinkwrap.json +1 -1
- package/package.json +1 -1
package/devices/philips.js
CHANGED
|
@@ -1964,12 +1964,12 @@ module.exports = [
|
|
|
1964
1964
|
ota: ota.zigbeeOTA,
|
|
1965
1965
|
},
|
|
1966
1966
|
{
|
|
1967
|
-
zigbeeModel: ['5047131P9'],
|
|
1967
|
+
zigbeeModel: ['5047131P9', '5047131P6'],
|
|
1968
1968
|
model: '5047131P9',
|
|
1969
1969
|
vendor: 'Philips',
|
|
1970
|
-
description: 'Hue White ambiance Buckram',
|
|
1970
|
+
description: 'Hue White ambiance Buckram single spotlight with bluetooth',
|
|
1971
1971
|
meta: {turnsOffAtBrightness1: true},
|
|
1972
|
-
extend: hueExtend.light_onoff_brightness_colortemp(),
|
|
1972
|
+
extend: hueExtend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
|
|
1973
1973
|
ota: ota.zigbeeOTA,
|
|
1974
1974
|
},
|
|
1975
1975
|
{
|
|
@@ -2197,4 +2197,13 @@ module.exports = [
|
|
|
2197
2197
|
extend: hueExtend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
|
|
2198
2198
|
ota: ota.zigbeeOTA,
|
|
2199
2199
|
},
|
|
2200
|
+
{
|
|
2201
|
+
zigbeeModel: ['5047131P8'],
|
|
2202
|
+
model: '5047131P8',
|
|
2203
|
+
vendor: 'Philips',
|
|
2204
|
+
description: 'Hue White ambiance Buckram single spotlight',
|
|
2205
|
+
meta: {turnsOffAtBrightness1: true},
|
|
2206
|
+
extend: hueExtend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
|
|
2207
|
+
ota: ota.zigbeeOTA,
|
|
2208
|
+
},
|
|
2200
2209
|
];
|
package/lib/ota/tradfri.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
const productionURL = 'http://fw.ota.homesmart.ikea.net/feed/version_info.json';
|
|
2
2
|
const testURL = 'http://fw.test.ota.homesmart.ikea.net/feed/version_info.json';
|
|
3
|
-
const assert = require('assert');
|
|
4
3
|
const common = require('./common');
|
|
5
4
|
const axios = common.getAxios();
|
|
6
5
|
let useTestURL = false;
|
|
@@ -14,7 +13,11 @@ async function getImageMeta(current, logger, device) {
|
|
|
14
13
|
const imageType = current.imageType;
|
|
15
14
|
const images = (await axios.get(url)).data;
|
|
16
15
|
const image = images.find((i) => i.fw_image_type === imageType);
|
|
17
|
-
|
|
16
|
+
|
|
17
|
+
if (!image) {
|
|
18
|
+
throw new Error(`No image available for imageType '${imageType}'`);
|
|
19
|
+
}
|
|
20
|
+
|
|
18
21
|
return {
|
|
19
22
|
fileVersion: (image.fw_file_version_MSB << 16) | image.fw_file_version_LSB,
|
|
20
23
|
url: image.fw_binary_url,
|
package/npm-shrinkwrap.json
CHANGED