zigbee-herdsman-converters 19.40.0 → 19.41.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 CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## [19.41.0](https://github.com/Koenkk/zigbee-herdsman-converters/compare/v19.40.0...v19.41.0) (2024-05-18)
4
+
5
+
6
+ ### Features
7
+
8
+ * **add:** RB 267 ([#7527](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7527)) ([010319f](https://github.com/Koenkk/zigbee-herdsman-converters/commit/010319fc669fbdc2d7ef9ad3aa12ee4f3c540a0e))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **detect:** Detect `_TZB210_417ikxay` as MiBoxer FUT037Z+ https://github.com/Koenkk/zigbee2mqtt/issues/21659 ([668db65](https://github.com/Koenkk/zigbee-herdsman-converters/commit/668db653c96ee23be0d9abe0ef3417e4bb007b06))
14
+ * **detect:** Detect `_TZE204_v5xjyphj` as IOTPerfect PF-PM02D-TYZ https://github.com/Koenkk/zigbee2mqtt/issues/22664 ([945ec3f](https://github.com/Koenkk/zigbee-herdsman-converters/commit/945ec3fe7e66d3f0a2c8a3f0af4ceb51c87328a5))
15
+ * **detect:** Detect `YRD410 PB` as Yale YRD410-BLE ([#7526](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7526)) ([fb8969c](https://github.com/Koenkk/zigbee-herdsman-converters/commit/fb8969c4961223b69a1a12d0dc5e8a4c625d0fba))
16
+ * Fix cannot find manuSpecificUbisysDeviceSetup ([#7532](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7532)) ([5f82043](https://github.com/Koenkk/zigbee-herdsman-converters/commit/5f82043add431ed0eb9b40b728db480d46911f23))
17
+ * Fix ID checks for scene/group 0 ([#7529](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7529)) ([92b9918](https://github.com/Koenkk/zigbee-herdsman-converters/commit/92b9918a0a74c9d104a4a5a96f4547ddc039854a))
18
+ * Improvements for Aqara Spotlight T3 ([#7530](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7530)) ([c831f5c](https://github.com/Koenkk/zigbee-herdsman-converters/commit/c831f5cf0ad04fa0965ef9f657d289131eb3a943))
19
+
3
20
  ## [19.40.0](https://github.com/Koenkk/zigbee-herdsman-converters/compare/v19.39.0...v19.40.0) (2024-05-15)
4
21
 
5
22
 
@@ -1 +1 @@
1
- {"version":3,"file":"toZigbee.d.ts","sourceRoot":"","sources":["../src/converters/toZigbee.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,EAAE,EAAE,WAAW,EAAC,MAAM,cAAc,CAAC;AAO7C,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAs2I1C,QAAA,MAAM,UAAU;;QAxGR;;;WAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA/kGH;;;;;;;;;;;WAWG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mKAixEoC,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAs5BS,CAAC;AAEpE,eAAe,UAAU,CAAC"}
@@ -3448,7 +3448,7 @@ const converters2 = {
3448
3448
  key: ['scene_store'],
3449
3449
  convertSet: async (entity, key, value, meta) => {
3450
3450
  const isGroup = utils.isGroup(entity);
3451
- const groupid = isGroup ? entity.groupID : value.hasOwnProperty('group_id') ? value.group_id : 0;
3451
+ const groupid = isGroup ? entity.groupID : (value.group_id != undefined ? value.group_id : 0);
3452
3452
  let sceneid = value;
3453
3453
  let scenename = null;
3454
3454
  if (typeof value === 'object') {
@@ -3456,10 +3456,10 @@ const converters2 = {
3456
3456
  scenename = value.name;
3457
3457
  }
3458
3458
  utils.assertNumber(sceneid, 'ID');
3459
- if (sceneid < 1) {
3460
- // Don't allow ID 0, from the spec:
3459
+ if (groupid === 0 && sceneid === 0) {
3460
+ // From Zigbee spec:
3461
3461
  // "Scene identifier 0x00, along with group identifier 0x0000, is reserved for the global scene used by the OnOff cluster"
3462
- throw new Error('ID must be at least 1');
3462
+ throw new Error('Scene ID 0 cannot be used with group ID 0 (reserved).');
3463
3463
  }
3464
3464
  const response = await entity.command('genScenes', 'store', { groupid, sceneid }, utils.getOptions(meta.mapped, entity));
3465
3465
  if (isGroup) {
@@ -3544,22 +3544,20 @@ const converters2 = {
3544
3544
  key: ['scene_add'],
3545
3545
  convertSet: async (entity, key, value, meta) => {
3546
3546
  utils.assertObject(value);
3547
- if (!value.hasOwnProperty('ID')) {
3548
- throw new Error('Payload missing ID.');
3549
- }
3550
- if (value.ID < 1) {
3551
- // Don't allow ID 0, from the spec:
3552
- // "Scene identifier 0x00, along with group identifier 0x0000, is reserved for the global scene used by the OnOff cluster"
3553
- throw new Error('ID must be at least 1');
3554
- }
3555
- if (value.hasOwnProperty('color_temp') && value.hasOwnProperty('color')) {
3547
+ utils.assertNumber(value.ID, 'ID');
3548
+ if (value.color_temp != undefined && value.color != undefined) {
3556
3549
  throw new Error(`Don't specify both 'color_temp' and 'color'`);
3557
3550
  }
3558
3551
  const isGroup = utils.isGroup(entity);
3559
- const groupid = isGroup ? entity.groupID : value.hasOwnProperty('group_id') ? value.group_id : 0;
3552
+ const groupid = isGroup ? entity.groupID : (value.group_id != undefined ? value.group_id : 0);
3560
3553
  const sceneid = value.ID;
3561
3554
  const scenename = value.name;
3562
- const transtime = value.hasOwnProperty('transition') ? value.transition : 0;
3555
+ const transtime = value.transition != undefined ? value.transition : 0;
3556
+ if (groupid === 0 && sceneid === 0) {
3557
+ // From Zigbee spec:
3558
+ // "Scene identifier 0x00, along with group identifier 0x0000, is reserved for the global scene used by the OnOff cluster"
3559
+ throw new Error('Scene ID 0 cannot be used with group ID 0 (reserved).');
3560
+ }
3563
3561
  const state = {};
3564
3562
  const extensionfieldsets = [];
3565
3563
  for (let [attribute, val] of Object.entries(value)) {