@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 +8 -0
- package/README.md +0 -2
- package/lib/device/zigbee/zigbee-water-valve.js +8 -4
- package/lib/platform.js +1 -1
- package/lib/utils/constants.js +1 -0
- package/lib/utils/lang-en.js +0 -1
- package/package.json +1 -1
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
|
-
|
|
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
|
-
|
|
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,
|
|
170
|
-
const newState = !!params.
|
|
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
package/lib/utils/constants.js
CHANGED
package/lib/utils/lang-en.js
CHANGED
|
@@ -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