zigbee-herdsman-converters 14.0.401 → 14.0.402

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.
@@ -15,6 +15,16 @@ const readInitialBatteryState = async (type, data, device) => {
15
15
  }
16
16
  };
17
17
 
18
+ const fzLocal = {
19
+ command_off: {
20
+ cluster: 'genOnOff',
21
+ type: 'commandOff',
22
+ convert: (model, msg, publish, options, meta) => {
23
+ return {action: 'off'};
24
+ },
25
+ },
26
+ };
27
+
18
28
  module.exports = [
19
29
  {
20
30
  zigbeeModel: [' Contactor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000'+
@@ -107,11 +117,12 @@ module.exports = [
107
117
  vendor: 'Legrand',
108
118
  // led blink RED when battery is low
109
119
  description: 'Wireless remote switch',
110
- fromZigbee: [fz.identify, fz.command_on, fz.command_off, fz.command_toggle, fz.legacy.cmd_move, fz.legacy.cmd_stop, fz.battery],
120
+ fromZigbee: [fz.identify, fz.command_on, fzLocal.command_off, fz.command_toggle, fz.legacy.cmd_move, fz.legacy.cmd_stop,
121
+ fz.battery],
111
122
  exposes: [e.battery(), e.action(['identify', 'on', 'off', 'toggle', 'brightness_move_up',
112
123
  'brightness_move_down', 'brightness_stop'])],
113
124
  toZigbee: [],
114
- meta: {handleDuplicateTransaction: true, battery: {voltageToPercentage: '3V_2500'}},
125
+ meta: {battery: {voltageToPercentage: '3V_2500'}},
115
126
  configure: async (device, coordinatorEndpoint, logger) => {
116
127
  const endpoint = device.getEndpoint(1);
117
128
  await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg', 'genOnOff', 'genLevelCtrl']);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.401",
3
+ "version": "14.0.402",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.401",
3
+ "version": "14.0.402",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [