@homebridge-plugins/homebridge-ecovacs 7.2.0 → 7.2.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
@@ -2,6 +2,18 @@
2
2
 
3
3
  All notable changes to homebridge-ecovacs will be documented in this file.
4
4
 
5
+ ## v7.2.2 (2025-07-18)
6
+
7
+ ### Other Changes
8
+
9
+ - add maintainer message
10
+
11
+ ## v7.2.1 (2025-07-16)
12
+
13
+ ### Other Changes
14
+
15
+ - clear cache values on reset, fix go charge on
16
+
5
17
  ## v7.2.0 (2025-07-13)
6
18
 
7
19
  ### Notable Changes
package/README.md CHANGED
@@ -24,6 +24,8 @@ Homebridge plugin to integrate Ecovacs Deebot or Yeedi devices into HomeKit
24
24
  - requires your Ecovacs or Yeedi credentials to function
25
25
  - uses a cloud-based connection (i.e. requires the internet)
26
26
 
27
+ > I'm looking for some lovely people to help maintain this plugin, please get in touch on GitHub or Discord if you'd like to help out 😄
28
+
27
29
  ### Prerequisites
28
30
 
29
31
  - To use this plugin, you will need to already have:
package/lib/platform.js CHANGED
@@ -495,6 +495,21 @@ export default class {
495
495
  accessory.context.isOnline = false
496
496
  accessory.context.lastMsg = ''
497
497
 
498
+ // Remove the existing cache values from the context
499
+ // accessory.context.cacheClean
500
+ // accessory.context.cacheCharge
501
+ // accessory.context.cacheAirDrying
502
+ // accessory.context.cacheSpeed
503
+ // accessory.context.cacheBattery
504
+ const cacheKeys = [
505
+ 'cacheClean',
506
+ 'cacheCharge',
507
+ 'cacheAirDrying',
508
+ 'cacheSpeed',
509
+ 'cacheBattery',
510
+ ]
511
+ cacheKeys.forEach(key => delete accessory.context[key])
512
+
498
513
  // Add the 'clean' switch service if it doesn't already exist
499
514
  const cleanService = accessory.getService('Clean') || accessory.addService(this.hapServ.Switch, 'Clean', 'clean')
500
515
  if (!cleanService.testCharacteristic(this.hapChar.ConfiguredName)) {
@@ -1023,7 +1038,7 @@ export default class {
1023
1038
  // Avoid quick switching with this function
1024
1039
  const updateKey = Math.random()
1025
1040
  .toString(36)
1026
- .substr(2, 8)
1041
+ .slice(2, 10)
1027
1042
  accessory.context.lastCommandKey = updateKey
1028
1043
  await sleep(1)
1029
1044
  if (updateKey !== accessory.context.lastCommandKey) {
@@ -1135,7 +1150,7 @@ export default class {
1135
1150
  setTimeout(() => {
1136
1151
  accessory
1137
1152
  .getService('Go Charge')
1138
- .updateCharacteristic(this.hapChar.On, accessory.context.cacheCharge === 'charging')
1153
+ .updateCharacteristic(this.hapChar.On, accessory.context.cacheCharge === 'returning')
1139
1154
  }, 2000)
1140
1155
  throw new this.hapErr(-70402)
1141
1156
  }
@@ -74,6 +74,6 @@ export default {
74
74
  speedFail: 'sending speed update failed as',
75
75
  stop: 'stop',
76
76
  typeForArea: 'Type for predefined area',
77
- welcome: 'This plugin has been made with by bwp91, please consider a on GitHub if you are finding it useful!',
77
+ welcome: 'I\'m looking for some lovely people to help maintain this plugin, please get in touch on GitHub or Discord if you\'d like to help out 😄',
78
78
  unknownCommandTypeForArea: 'Unknown command type for predefined area',
79
79
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "displayName": "Homebridge Ecovacs",
4
4
  "alias": "Deebot",
5
5
  "type": "module",
6
- "version": "7.2.0",
6
+ "version": "7.2.2",
7
7
  "description": "Homebridge plugin to integrate Ecovacs Deebot devices into HomeKit.",
8
8
  "author": {
9
9
  "name": "bwp91",
@@ -67,7 +67,7 @@
67
67
  "patch-package": "^8.0.0"
68
68
  },
69
69
  "devDependencies": {
70
- "@antfu/eslint-config": "^4.16.2"
70
+ "@antfu/eslint-config": "^4.17.0"
71
71
  },
72
72
  "overrides": {
73
73
  "ecovacs-deebot": {