@homebridge-plugins/homebridge-ecovacs 7.0.0 → 7.0.2

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/CHANGELOG.md CHANGED
@@ -8,6 +8,18 @@ This project tries to adhere to [Semantic Versioning](http://semver.org/). In pr
8
8
  - `MINOR` version when a new device type is added, or when a new feature is added that is backwards-compatible
9
9
  - `PATCH` version when backwards-compatible bug fixes are implemented
10
10
 
11
+ ## v7.0.2 (2025-07-11)
12
+
13
+ ### Changed
14
+
15
+ - fix `patch-package` command not present
16
+
17
+ ## v7.0.1 (2025-07-11)
18
+
19
+ ### Changed
20
+
21
+ - patch `evocavs-deebot` with a change to not log events when not in debug mode
22
+
11
23
  ## v7.0.0 (2025-07-11)
12
24
 
13
25
  - Drop support for Node.js v16 and v18, add support for Node.js v20, v22, and v24
@@ -13,7 +13,7 @@ export default class {
13
13
  self.hapChar.call(this, 'Max Speed', self.uuids.maxSpeed)
14
14
  this.setProps({
15
15
  format: api.hap.Formats.BOOL,
16
- perms: [api.hap.Perms.READ, api.hap.Perms.WRITE, api.hap.Perms.NOTIFY],
16
+ perms: [api.hap.Perms.PAIRED_READ, api.hap.Perms.PAIRED_WRITE, api.hap.Perms.NOTIFY],
17
17
  })
18
18
  this.value = this.getDefaultValue()
19
19
  }
@@ -22,7 +22,7 @@ export default class {
22
22
  self.hapChar.call(this, 'Predefined Area', self.uuids.predefinedArea)
23
23
  this.setProps({
24
24
  format: api.hap.Formats.UINT8,
25
- perms: [api.hap.Perms.READ, api.hap.Perms.WRITE, api.hap.Perms.NOTIFY],
25
+ perms: [api.hap.Perms.PAIRED_READ, api.hap.Perms.PAIRED_WRITE, api.hap.Perms.NOTIFY],
26
26
  minValue: 0,
27
27
  maxValue: 15,
28
28
  minStep: 1,
@@ -35,7 +35,7 @@ export default class {
35
35
  self.hapChar.call(this, 'TrueDetect', self.uuids.trueDetect)
36
36
  this.setProps({
37
37
  format: api.hap.Formats.BOOL,
38
- perms: [api.hap.Perms.READ, api.hap.Perms.WRITE, api.hap.Perms.NOTIFY],
38
+ perms: [api.hap.Perms.PAIRED_READ, api.hap.Perms.PAIRED_WRITE, api.hap.Perms.NOTIFY],
39
39
  })
40
40
  this.value = this.getDefaultValue()
41
41
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "displayName": "Homebridge Ecovacs",
4
4
  "alias": "Deebot",
5
5
  "type": "module",
6
- "version": "7.0.0",
6
+ "version": "7.0.2",
7
7
  "description": "Homebridge plugin to integrate ECOVACS Deebot devices into HomeKit.",
8
8
  "author": {
9
9
  "name": "bwp91",
@@ -58,11 +58,13 @@
58
58
  },
59
59
  "scripts": {
60
60
  "lint": "eslint . --fix",
61
+ "postinstall": "patch-package",
61
62
  "rebuild": "rm -rf package-lock.json && rm -rf node_modules && npm install"
62
63
  },
63
64
  "dependencies": {
64
65
  "@homebridge/plugin-ui-utils": "^2.1.0",
65
- "ecovacs-deebot": "^0.9.6-beta.8"
66
+ "ecovacs-deebot": "^0.9.6-beta.8",
67
+ "patch-package": "^8.0.0"
66
68
  },
67
69
  "devDependencies": {
68
70
  "@antfu/eslint-config": "^4.16.2"
@@ -0,0 +1,23 @@
1
+ diff --git a/node_modules/ecovacs-deebot/library/tools.js b/node_modules/ecovacs-deebot/library/tools.js
2
+ index d484ba1..1ad1f14 100644
3
+ --- a/node_modules/ecovacs-deebot/library/tools.js
4
+ +++ b/node_modules/ecovacs-deebot/library/tools.js
5
+ @@ -369,11 +369,13 @@ function envLogRaw(message) {
6
+ }
7
+
8
+ function logEvent(event, value) {
9
+ - if (typeof value === 'object') {
10
+ - console.log(chalk.bgGreen.white(' event ') + ' ' + chalk.green(event));
11
+ - console.log(value);
12
+ - } else {
13
+ - console.log(chalk.bgGreen.white(' event ') + ' ' + chalk.green(event) + ' ' + value);
14
+ + if ((process.env.NODE_ENV === 'development') || (process.env.NODE_ENV === 'dev')) {
15
+ + if (typeof value === 'object') {
16
+ + console.log(chalk.bgGreen.white(' event ') + ' ' + chalk.green(event));
17
+ + console.log(value);
18
+ + } else {
19
+ + console.log(chalk.bgGreen.white(' event ') + ' ' + chalk.green(event) + ' ' + value);
20
+ + }
21
+ }
22
+ }
23
+