zigbee-herdsman-converters 14.0.428 → 14.0.429

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.
@@ -5528,7 +5528,7 @@ const converters = {
5528
5528
  {0: 'hold', 1: 'release', 2: 'double'} : {0: 'single', 1: 'single'};
5529
5529
 
5530
5530
  const action = actionLookup[msg.data['onOff']];
5531
- const button = mapping && mapping[msg.endpoint.ID] ? `_${button}` : '';
5531
+ const button = mapping && mapping[msg.endpoint.ID] ? `_${mapping[msg.endpoint.ID]}` : '';
5532
5532
 
5533
5533
  if (action === 'release') {
5534
5534
  const anotherAction = globalStore.getValue(msg.endpoint, 'hold', false) ? 'hold_release' : 'single';
package/devices/evn.js ADDED
@@ -0,0 +1,26 @@
1
+ const exposes = require('../lib/exposes');
2
+ const fz = {...require('../converters/fromZigbee'), legacy: require('../lib/legacy').fromZigbee};
3
+ const reporting = require('../lib/reporting');
4
+ const e = exposes.presets;
5
+
6
+ module.exports = [
7
+ {
8
+ zigbeeModel: ['EVN ZBHS4RGBW'],
9
+ model: 'ZBHS4RGBW',
10
+ vendor: 'EVN',
11
+ description: 'Zigbee 4 channel RGBW remote control',
12
+ fromZigbee: [fz.battery, fz.command_on, fz.command_off, fz.command_step, fz.command_move, fz.command_stop, fz.command_recall,
13
+ fz.command_move_hue, fz.command_move_to_color, fz.command_move_to_color_temp],
14
+ exposes: [e.battery(), e.action(['on', 'off', 'brightness_step_up', 'brightness_step_down', 'brightness_move_up',
15
+ 'brightness_move_down', 'brightness_stop', 'recall_1', 'recall_2', 'recall_3', 'hue_move', 'color_temperature_move',
16
+ 'color_move', 'hue_stop'])],
17
+ toZigbee: [],
18
+ meta: {multiEndpoint: true, battery: {dontDividePercentage: true}},
19
+ configure: async (device, coordinatorEndpoint) => {
20
+ const endpoint = device.getEndpoint(1);
21
+ await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'genPowerCfg']);
22
+ await reporting.batteryVoltage(endpoint);
23
+ await reporting.batteryPercentageRemaining(endpoint);
24
+ },
25
+ },
26
+ ];
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.428",
3
+ "version": "14.0.429",
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.428",
3
+ "version": "14.0.429",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [