@homebridge-plugins/homebridge-ewelink 12.15.2 → 12.15.3-beta.1

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,14 @@
2
2
 
3
3
  All notable changes to `@homebridge-plugins/homebridge-ewelink` will be documented in this file.
4
4
 
5
+ ## v12.15.3 (Pending Release)
6
+
7
+ ### Changed
8
+
9
+ - chore: remove the looking-for-maintainers message
10
+ - fix: use the switch_00 param for the swv-zne irrigation valve (7047) (#778)
11
+ - chore(github): update the setup-node action to v7
12
+
5
13
  ## v12.15.2 (2026-07-14)
6
14
 
7
15
  ### Changed
package/README.md CHANGED
@@ -24,8 +24,6 @@ Homebridge plugin to integrate eWeLink devices into HomeKit
24
24
  - listens for real-time device updates when controlled externally
25
25
  - supports removing your eWeLink credentials from the configuration in certain situations, see [wiki](https://github.com/homebridge-plugins/homebridge-ewelink/wiki/Connection-Methods#lan-mode-without-ewelink-credentials)
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
-
29
27
  ### Prerequisites
30
28
 
31
29
  - To use this plugin, you will need to already have:
@@ -14,6 +14,10 @@ export default class {
14
14
  // Set up custom variables for this device type
15
15
  this.enableLogging = !platform.config.disableDeviceLogging
16
16
 
17
+ // The newer SWV-ZNE irrigation valve (uiid 7047) reports and accepts its
18
+ // state under 'switch_00' rather than 'switch' (#778)
19
+ this.switchParam = accessory.context.eweUIID === 7047 ? 'switch_00' : 'switch'
20
+
17
21
  // Initialize cache state
18
22
  this.cacheState = false
19
23
 
@@ -61,7 +65,7 @@ export default class {
61
65
 
62
66
  // Send command to the device
63
67
  await this.platform.sendDeviceUpdate(this.accessory, {
64
- switch: newState,
68
+ [this.switchParam]: newState,
65
69
  })
66
70
 
67
71
  // Update InUse characteristic to match Active
@@ -114,7 +118,7 @@ export default class {
114
118
  try {
115
119
  // Send explicit command to turn off the valve
116
120
  await this.platform.sendDeviceUpdate(this.accessory, {
117
- switch: false,
121
+ [this.switchParam]: false,
118
122
  })
119
123
 
120
124
  // Update HomeKit characteristics
@@ -166,8 +170,8 @@ export default class {
166
170
  async externalUpdate(params) {
167
171
  try {
168
172
  // Handle On/Off state
169
- if (hasProperty(params, 'switch')) {
170
- const newState = !!params.switch
173
+ if (hasProperty(params, this.switchParam)) {
174
+ const newState = !!params[this.switchParam]
171
175
  if (newState !== this.cacheState) {
172
176
  this.cacheState = newState
173
177
  const value = newState ? 1 : 0
package/lib/platform.js CHANGED
@@ -626,7 +626,7 @@ export default class {
626
626
  }
627
627
 
628
628
  // Setup successful
629
- this.log('%s. %s', this.lang.complete, this.lang.welcome)
629
+ this.log('%s.', this.lang.complete)
630
630
  } catch (err) {
631
631
  // Catch any errors during setup
632
632
  const eText = parseError(err, [
@@ -434,6 +434,7 @@ export default {
434
434
  'speed',
435
435
  'state',
436
436
  'switch',
437
+ 'switch_00',
437
438
  'switches',
438
439
  'targetTemp',
439
440
  'temperature',
@@ -137,7 +137,6 @@ export default {
137
137
  viaAL: 'via adaptive lighting',
138
138
  viaLAN: 'via LAN',
139
139
  viaWS: 'via WS',
140
- 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 😄',
141
140
  wsHostRec: 'Web socket host received',
142
141
  wsLogin: 'Sending WS login request',
143
142
  wsLoginErr: 'Unknown WS parameters received',
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "displayName": "Homebridge eWeLink",
4
4
  "alias": "eWeLink",
5
5
  "type": "module",
6
- "version": "12.15.2",
6
+ "version": "12.15.3-beta.1",
7
7
  "description": "Homebridge plugin to integrate eWeLink devices into HomeKit.",
8
8
  "author": {
9
9
  "name": "bwp91",