zigbee-herdsman-converters 14.0.627 → 14.0.628

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.
@@ -8155,9 +8155,12 @@ const converters = {
8155
8155
  convert: (model, msg, publish, options, meta) => {
8156
8156
  const lookup = {'0': 'idle', '1': 'in', '2': 'out'};
8157
8157
  const value = precisionRound(parseFloat(msg.data['presentValue']), 1);
8158
+ const people = precisionRound(msg.data.presentValue, 0);
8158
8159
  let result = null;
8159
- result = {people: precisionRound(msg.data.presentValue, 0), status: lookup[value*10%10]};
8160
- return result;
8160
+ if (value <= 80) {
8161
+ result = {people: people, status: lookup[value*10%10]};
8162
+ return result;
8163
+ }
8161
8164
  },
8162
8165
  },
8163
8166
  sihas_action: {
@@ -1,5 +1,7 @@
1
1
  const reporting = require('../lib/reporting');
2
2
  const extend = require('../lib/extend');
3
+ const exposes = require('../lib/exposes');
4
+ const e = exposes.presets;
3
5
 
4
6
  module.exports = [
5
7
  {
@@ -8,11 +10,20 @@ module.exports = [
8
10
  vendor: 'HZC Electric',
9
11
  description: 'Zigbee dual dimmer',
10
12
  extend: extend.light_onoff_brightness({noConfigure: true}),
13
+ exposes: [e.light_brightness().withEndpoint('l1'), e.light_brightness().withEndpoint('l2')],
11
14
  configure: async (device, coordinatorEndpoint, logger) => {
12
15
  await extend.light_onoff_brightness().configure(device, coordinatorEndpoint, logger);
13
- const endpoint = device.getEndpoint(1);
14
- await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl']);
15
- await reporting.onOff(endpoint);
16
+ const endpoint1 = device.getEndpoint(1);
17
+ await reporting.bind(endpoint1, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl']);
18
+ await reporting.onOff(endpoint1);
19
+
20
+ await extend.light_onoff_brightness().configure(device, coordinatorEndpoint, logger);
21
+ const endpoint2 = device.getEndpoint(2);
22
+ await reporting.bind(endpoint2, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl']);
23
+ await reporting.onOff(endpoint2);
24
+ },
25
+ endpoint: () => {
26
+ return {l1: 1, l2: 2};
16
27
  },
17
28
  },
18
29
  ];
@@ -609,6 +609,13 @@ module.exports = [
609
609
  description: 'Hue Calla outdoor',
610
610
  extend: hueExtend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 500]}),
611
611
  },
612
+ {
613
+ zigbeeModel: ['1741930V7'],
614
+ model: '1741930V7',
615
+ vendor: 'Philips',
616
+ description: 'Hue Calla outdoor',
617
+ extend: hueExtend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 500]}),
618
+ },
612
619
  {
613
620
  zigbeeModel: ['1744130P7'],
614
621
  model: '1744130P7',
@@ -1815,7 +1822,9 @@ module.exports = [
1815
1822
  vendor: 'Philips',
1816
1823
  description: 'Hue wall switch module',
1817
1824
  fromZigbee: [fz.battery, fz.hue_wall_switch_device_mode, fz.hue_wall_switch],
1818
- exposes: [e.battery(), e.action(['left_press', 'left_press_release', 'right_press', 'right_press_release']),
1825
+ exposes: [
1826
+ e.battery(), e.action(['left_press', 'left_press_release', 'right_press', 'right_press_release',
1827
+ 'left_hold', 'left_hold_release', 'right_hold', 'right_hold_release']),
1819
1828
  exposes.enum('device_mode', ea.ALL, ['single_rocker', 'single_push_button', 'dual_rocker', 'dual_push_button'])],
1820
1829
  toZigbee: [tz.hue_wall_switch_device_mode],
1821
1830
  configure: async (device, coordinatorEndpoint, logger) => {
@@ -19,6 +19,7 @@ module.exports = [
19
19
  {modelID: 'TS0601', manufacturerName: '_TZE200_zuhszj9s'},
20
20
  {modelID: 'TS0601', manufacturerName: '_TZE200_9gvruqf5'},
21
21
  {modelID: 'TS0601', manufacturerName: '_TZE200_zr9c0day'},
22
+ {modelID: 'TS0601', manufacturerName: '_TZE200_0dvm9mva'},
22
23
  ],
23
24
  model: 'SEA801-Zigbee/SEA802-Zigbee',
24
25
  vendor: 'Saswell',
package/devices/tuya.js CHANGED
@@ -21,7 +21,7 @@ const TS011Fplugs = ['_TZ3000_5f43h46b', '_TZ3000_cphmq0q7', '_TZ3000_dpo1ysak',
21
21
  '_TZ3000_1h2x4akh', '_TZ3000_9vo5icau', '_TZ3000_cehuw1lw', '_TZ3000_ko6v90pg', '_TZ3000_f1bapcit', '_TZ3000_cjrngdr3',
22
22
  '_TZ3000_zloso4jk', '_TZ3000_r6buo8ba', '_TZ3000_iksasdbv', '_TZ3000_idrffznf', '_TZ3000_okaz9tjs', '_TZ3210_q7oryllx',
23
23
  '_TZ3000_ss98ec5d', '_TZ3000_gznh2xla', '_TZ3000_hdopuwv6', '_TZ3000_gvn91tmx', '_TZ3000_dksbtrzs', '_TZ3000_b28wrpvx',
24
- '_TZ3000_aim0ztek', '_TZ3000_mlswgkc3'];
24
+ '_TZ3000_aim0ztek', '_TZ3000_mlswgkc3', '_TZ3000_7dndcnnb'];
25
25
 
26
26
  const tzLocal = {
27
27
  SA12IZL_silence_siren: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.627",
3
+ "version": "14.0.628",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [