zigbee-herdsman-converters 14.0.591 → 14.0.592

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.
@@ -1556,7 +1556,7 @@ const converters = {
1556
1556
  result[postfixWithEndpointName('tilt', msg, model, meta)] = invert ? value : 100 - value;
1557
1557
  if (coverStateFromTilt) {
1558
1558
  result[postfixWithEndpointName('state', msg, model, meta)] =
1559
- invert ? (value === 100 ? 'CLOSE' : 'OPEN') : (value === 0 ? 'CLOSE' : 'OPEN');
1559
+ invert ? (value === 100 ? 'OPEN' : 'CLOSE') : (value === 0 ? 'OPEN' : 'CLOSE');
1560
1560
  }
1561
1561
  }
1562
1562
  return result;
package/devices/gewiss.js CHANGED
@@ -39,8 +39,8 @@ module.exports = [
39
39
  toZigbee: [tz.cover_state, tz.cover_position_tilt],
40
40
  configure: async (device, coordinatorEndpoint, logger) => {
41
41
  const endpoint = device.getEndpoint(1);
42
- await reporting.bind(endpoint, coordinatorEndpoint, ['genLevelCtrl']);
43
- await reporting.brightness(endpoint);
42
+ await reporting.bind(endpoint, coordinatorEndpoint, ['closuresWindowCovering']);
43
+ await reporting.currentPositionLiftPercentage(endpoint);
44
44
  },
45
45
  exposes: [e.cover_position()],
46
46
  },
package/devices/xiaomi.js CHANGED
@@ -1007,6 +1007,26 @@ module.exports = [
1007
1007
  },
1008
1008
  ota: ota.zigbeeOTA,
1009
1009
  },
1010
+ {
1011
+ zigbeeModel: ['lumi.motion.acn001'],
1012
+ model: 'RTCGQ15LM',
1013
+ vendor: 'Xiaomi',
1014
+ description: 'Aqara E1 human body movement and illuminance sensor',
1015
+ fromZigbee: [fz.aqara_occupancy_illuminance, fz.aqara_opple, fz.battery],
1016
+ toZigbee: [tz.aqara_detection_interval],
1017
+ exposes: [e.occupancy(), e.illuminance_lux().withProperty('illuminance'),
1018
+ e.illuminance().withUnit('lx').withDescription('Measured illuminance in lux'),
1019
+ exposes.numeric('detection_interval', ea.ALL).withValueMin(2).withValueMax(65535).withUnit('s')
1020
+ .withDescription('Time interval for detecting actions'),
1021
+ e.device_temperature(), e.battery(), e.battery_voltage(), e.power_outage_count(false)],
1022
+ meta: {battery: {voltageToPercentage: '3V_2850_3200'}},
1023
+ configure: async (device, coordinatorEndpoint, logger) => {
1024
+ const endpoint = device.getEndpoint(1);
1025
+ await endpoint.read('genPowerCfg', ['batteryVoltage']);
1026
+ await endpoint.read('aqaraOpple', [0x0102], {manufacturerCode: 0x115f});
1027
+ },
1028
+ ota: ota.zigbeeOTA,
1029
+ },
1010
1030
  {
1011
1031
  zigbeeModel: ['lumi.motion.ac01'],
1012
1032
  model: 'RTCZCGQ11LM',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.591",
3
+ "version": "14.0.592",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [