zigbee-herdsman-converters 14.0.268 → 14.0.269
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/converters/toZigbee.js +6 -5
- package/devices/philips.js +9 -0
- package/npm-shrinkwrap.json +1 -1
- package/package.json +1 -1
package/converters/toZigbee.js
CHANGED
|
@@ -4645,7 +4645,7 @@ const converters = {
|
|
|
4645
4645
|
} else {
|
|
4646
4646
|
throw new Error(`Scene add not succesfull ('${herdsman.Zcl.Status[response.status]}')`);
|
|
4647
4647
|
}
|
|
4648
|
-
|
|
4648
|
+
meta.logger.info('Successfully stored scene');
|
|
4649
4649
|
return {state: {}};
|
|
4650
4650
|
},
|
|
4651
4651
|
},
|
|
@@ -4688,6 +4688,7 @@ const converters = {
|
|
|
4688
4688
|
membersState[member.getDevice().ieeeAddr] = {};
|
|
4689
4689
|
}
|
|
4690
4690
|
}
|
|
4691
|
+
meta.logger.info('Successfully recalled group scene');
|
|
4691
4692
|
return {membersState};
|
|
4692
4693
|
} else {
|
|
4693
4694
|
let recalledState = utils.getSceneState(entity, sceneid, groupid);
|
|
@@ -4698,7 +4699,7 @@ const converters = {
|
|
|
4698
4699
|
}
|
|
4699
4700
|
|
|
4700
4701
|
Object.assign(recalledState, libColor.syncColorState(recalledState, meta.state, meta.options));
|
|
4701
|
-
|
|
4702
|
+
meta.logger.info('Successfully recalled scene');
|
|
4702
4703
|
return {state: recalledState};
|
|
4703
4704
|
} else {
|
|
4704
4705
|
meta.logger.warn(`Unknown scene was recalled for ${entity.deviceIeeeAddress}, can't restore state.`);
|
|
@@ -4844,7 +4845,7 @@ const converters = {
|
|
|
4844
4845
|
} else {
|
|
4845
4846
|
throw new Error(`Scene add unable to remove existing scene ('${herdsman.Zcl.Status[removeresp.status]}')`);
|
|
4846
4847
|
}
|
|
4847
|
-
|
|
4848
|
+
meta.logger.info('Successfully added scene');
|
|
4848
4849
|
return {state: {}};
|
|
4849
4850
|
},
|
|
4850
4851
|
},
|
|
@@ -4856,7 +4857,6 @@ const converters = {
|
|
|
4856
4857
|
const response = await entity.command(
|
|
4857
4858
|
'genScenes', 'remove', {groupid, sceneid}, utils.getOptions(meta.mapped),
|
|
4858
4859
|
);
|
|
4859
|
-
|
|
4860
4860
|
const isGroup = entity.constructor.name === 'Group';
|
|
4861
4861
|
if (isGroup) {
|
|
4862
4862
|
if (meta.membersState) {
|
|
@@ -4869,6 +4869,7 @@ const converters = {
|
|
|
4869
4869
|
} else {
|
|
4870
4870
|
throw new Error(`Scene remove not succesfull ('${herdsman.Zcl.Status[response.status]}')`);
|
|
4871
4871
|
}
|
|
4872
|
+
meta.logger.info('Successfully removed scene');
|
|
4872
4873
|
},
|
|
4873
4874
|
},
|
|
4874
4875
|
scene_remove_all: {
|
|
@@ -4878,7 +4879,6 @@ const converters = {
|
|
|
4878
4879
|
const response = await entity.command(
|
|
4879
4880
|
'genScenes', 'removeAll', {groupid}, utils.getOptions(meta.mapped),
|
|
4880
4881
|
);
|
|
4881
|
-
|
|
4882
4882
|
const isGroup = entity.constructor.name === 'Group';
|
|
4883
4883
|
if (isGroup) {
|
|
4884
4884
|
if (meta.membersState) {
|
|
@@ -4891,6 +4891,7 @@ const converters = {
|
|
|
4891
4891
|
} else {
|
|
4892
4892
|
throw new Error(`Scene remove all not succesfull ('${herdsman.Zcl.Status[response.status]}')`);
|
|
4893
4893
|
}
|
|
4894
|
+
meta.logger.info('Successfully removed all scenes');
|
|
4894
4895
|
},
|
|
4895
4896
|
},
|
|
4896
4897
|
TS0003_curtain_switch: {
|
package/devices/philips.js
CHANGED
|
@@ -501,6 +501,15 @@ module.exports = [
|
|
|
501
501
|
extend: hueExtend.light_onoff_brightness(),
|
|
502
502
|
ota: ota.zigbeeOTA,
|
|
503
503
|
},
|
|
504
|
+
{
|
|
505
|
+
zigbeeModel: ['LWA017'],
|
|
506
|
+
model: '929002469202',
|
|
507
|
+
vendor: 'Philips',
|
|
508
|
+
description: 'Hue white A60 bulb E27 1050lm with Bluetooth',
|
|
509
|
+
meta: {turnsOffAtBrightness1: true},
|
|
510
|
+
extend: extend.light_onoff_brightness(),
|
|
511
|
+
ota: ota.zigbeeOTA,
|
|
512
|
+
},
|
|
504
513
|
{
|
|
505
514
|
zigbeeModel: ['LWA002'],
|
|
506
515
|
model: '9290018215',
|
package/npm-shrinkwrap.json
CHANGED