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.
- package/devices/legrand.js +13 -2
- package/npm-shrinkwrap.json +1 -1
- package/package.json +1 -1
package/devices/legrand.js
CHANGED
|
@@ -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,
|
|
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: {
|
|
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']);
|
package/npm-shrinkwrap.json
CHANGED