zigbee-herdsman-converters 14.0.542 → 14.0.543

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.
@@ -2259,9 +2259,9 @@ const converters = {
2259
2259
  switch (dp) {
2260
2260
  case tuya.dataPoints.coverPosition: // Started moving to position (triggered from Zigbee)
2261
2261
  case tuya.dataPoints.coverArrived: { // Arrived at position
2262
- const running = dp === tuya.dataPoints.coverPosition;
2263
2262
  const invert = tuya.isCoverInverted(meta.device.manufacturerName) ? !options.invert_cover : options.invert_cover;
2264
2263
  const position = invert ? 100 - (value & 0xFF) : (value & 0xFF);
2264
+ const running = dp === tuya.dataPoints.coverPosition || (position == 0 || position == 100);
2265
2265
 
2266
2266
  if (position > 0 && position <= 100) {
2267
2267
  return {running, position, state: 'OPEN'};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.542",
3
+ "version": "14.0.543",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [