zigbee-herdsman-converters 16.0.1 → 16.0.2

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 CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## [16.0.2](https://github.com/Koenkk/zigbee-herdsman-converters/compare/v16.0.1...v16.0.2) (2023-12-04)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * Add DCM-K01 as whitelabel of LLKZMK12LM ([#6620](https://github.com/Koenkk/zigbee-herdsman-converters/issues/6620)) ([e23ac5e](https://github.com/Koenkk/zigbee-herdsman-converters/commit/e23ac5e416ef1fd05699e7aebd68323a66beaae2))
9
+ * **detect:** Detect `_TZE204_oqtpvx51` as TuYa YXZBRB58 ([#6619](https://github.com/Koenkk/zigbee-herdsman-converters/issues/6619)) ([21b747e](https://github.com/Koenkk/zigbee-herdsman-converters/commit/21b747e1651c91390db2ea855475a03735ce6552))
10
+ * Fix `scene_add` not working for groups https://github.com/Koenkk/zigbee2mqtt/issues/20001 ([dc6b1ae](https://github.com/Koenkk/zigbee-herdsman-converters/commit/dc6b1ae0b69387abc52c4f2ef74fa7d16c82d1f1))
11
+ * **ignore:** fix dc6b1ae0b69387abc52c4f2ef74fa7d16c82d1f1 ([77cb2c8](https://github.com/Koenkk/zigbee-herdsman-converters/commit/77cb2c8df711457fb4cd2a065ce64dd18174d5e1))
12
+
3
13
  ## [16.0.1](https://github.com/Koenkk/zigbee-herdsman-converters/compare/v16.0.0...v16.0.1) (2023-12-04)
4
14
 
5
15
 
@@ -4215,8 +4215,7 @@ const converters2 = {
4215
4215
  * We accept a SUCCESS or NOT_FOUND as a result of the remove call.
4216
4216
  */
4217
4217
  const removeresp = await entity.command('genScenes', 'remove', { groupid, sceneid }, utils.getOptions(meta.mapped, entity));
4218
- utils.assertObject(removeresp);
4219
- if (isGroup || (removeresp.status === 0 || removeresp.status == 133 || removeresp.status == 139)) {
4218
+ if (isGroup || (utils.isObject(removeresp) && (removeresp.status === 0 || removeresp.status == 133 || removeresp.status == 139))) {
4220
4219
  const response = await entity.command('genScenes', 'add', { groupid, sceneid, scenename: '', transtime, extensionfieldsets }, utils.getOptions(meta.mapped, entity));
4221
4220
  utils.assertObject(response);
4222
4221
  if (isGroup) {
@@ -4234,7 +4233,8 @@ const converters2 = {
4234
4233
  }
4235
4234
  }
4236
4235
  else {
4237
- throw new Error(`Scene add unable to remove existing scene ('${zigbee_herdsman_1.Zcl.Status[removeresp.status]}')`);
4236
+ const status = utils.isObject(removeresp) ? zigbee_herdsman_1.Zcl.Status[removeresp.status] : 'unknown';
4237
+ throw new Error(`Scene add unable to remove existing scene ('${status}')`);
4238
4238
  }
4239
4239
  meta.logger.info('Successfully added scene');
4240
4240
  return { state: {} };