zigbee-herdsman-converters 14.0.351 → 14.0.352

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/sonoff.js CHANGED
@@ -70,11 +70,11 @@ module.exports = [
70
70
  exposes: [e.battery(), e.action(['single', 'double', 'long'])],
71
71
  fromZigbee: [fz.ewelink_action, fz.battery],
72
72
  toZigbee: [],
73
- meta: {battery: {voltageToPercentage: '3V_2500'}},
74
73
  configure: async (device, coordinatorEndpoint, logger) => {
75
74
  const endpoint = device.getEndpoint(1);
76
75
  await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'genPowerCfg']);
77
76
  await reporting.batteryVoltage(endpoint);
77
+ await reporting.batteryPercentageRemaining(endpoint);
78
78
  },
79
79
  },
80
80
  {
@@ -126,12 +126,12 @@ module.exports = [
126
126
  description: 'Motion sensor',
127
127
  fromZigbee: [fz.ias_occupancy_alarm_1, fz.battery],
128
128
  toZigbee: [],
129
- meta: {battery: {voltageToPercentage: '3V_2500'}},
130
129
  configure: async (device, coordinatorEndpoint, logger) => {
131
130
  const endpoint = device.getEndpoint(1);
132
131
  const bindClusters = ['genPowerCfg'];
133
132
  await reporting.bind(endpoint, coordinatorEndpoint, bindClusters);
134
133
  await reporting.batteryVoltage(endpoint);
134
+ await reporting.batteryPercentageRemaining(endpoint);
135
135
  },
136
136
  exposes: [e.occupancy(), e.battery_low(), e.tamper(), e.battery()],
137
137
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.351",
3
+ "version": "14.0.352",
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.351",
3
+ "version": "14.0.352",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [