zigbee-herdsman-converters 14.0.584 → 14.0.585

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.
@@ -1545,7 +1545,7 @@ const converters = {
1545
1545
  const value = msg.data['currentPositionLiftPercentage'];
1546
1546
  result[postfixWithEndpointName('position', msg, model, meta)] = invert ? value : 100 - value;
1547
1547
  result[postfixWithEndpointName('state', msg, model, meta)] =
1548
- invert ? (value > 0 ? 'CLOSE' : 'OPEN') : (value > 0 ? 'OPEN' : 'CLOSE');
1548
+ invert ? (value === 100 ? 'CLOSE' : 'OPEN') : (value === 0 ? 'CLOSE' : 'OPEN');
1549
1549
  }
1550
1550
  if (msg.data.hasOwnProperty('currentPositionTiltPercentage') && msg.data['currentPositionTiltPercentage'] <= 100) {
1551
1551
  const value = msg.data['currentPositionTiltPercentage'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.584",
3
+ "version": "14.0.585",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [