zigbee-herdsman-converters 14.0.543 → 14.0.544

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.
@@ -2261,7 +2261,8 @@ const converters = {
2261
2261
  case tuya.dataPoints.coverArrived: { // Arrived at position
2262
2262
  const invert = tuya.isCoverInverted(meta.device.manufacturerName) ? !options.invert_cover : options.invert_cover;
2263
2263
  const position = invert ? 100 - (value & 0xFF) : (value & 0xFF);
2264
- const running = dp === tuya.dataPoints.coverPosition || (position == 0 || position == 100);
2264
+ let running = position == 0 || position == 100;
2265
+ if (dp === tuya.dataPoints.coverArrived) running = false;
2265
2266
 
2266
2267
  if (position > 0 && position <= 100) {
2267
2268
  return {running, position, state: 'OPEN'};
@@ -0,0 +1,17 @@
1
+ const exposes = require('../lib/exposes');
2
+ const fz = {...require('../converters/fromZigbee'), legacy: require('../lib/legacy').fromZigbee};
3
+ const tz = require('../converters/toZigbee');
4
+ const e = exposes.presets;
5
+ const ea = exposes.access;
6
+
7
+ module.exports = [
8
+ {
9
+ fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE200_yenbr4om'}],
10
+ model: 'BSEED_TS0601_cover',
11
+ vendor: 'BSEED',
12
+ description: 'Zigbee curtain switch',
13
+ fromZigbee: [fz.tuya_cover],
14
+ toZigbee: [tz.tuya_cover_control],
15
+ exposes: [e.cover_position().setAccess('position', ea.STATE_SET)],
16
+ },
17
+ ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.543",
3
+ "version": "14.0.544",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -38,7 +38,7 @@
38
38
  "buffer-crc32": "^0.2.13",
39
39
  "https-proxy-agent": "^5.0.1",
40
40
  "tar-stream": "^2.2.0",
41
- "zigbee-herdsman": "^0.14.34"
41
+ "zigbee-herdsman": "^0.14.35"
42
42
  },
43
43
  "devDependencies": {
44
44
  "eslint": "*",