homebridge-nuheat2 1.2.24 → 1.2.26
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 +19 -0
- package/README.md +2 -2
- package/index.js +5 -4
- package/lib/NuHeatGroup.js +2 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,25 @@ All notable changes to this project should be documented in this file
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [1.2.26] - 2026-07-09
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- Declare Node.js 26 as a supported runtime so Homebridge no longer reports the plugin as incompatible with Node v26
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- Add Node 26 to the CI test matrix
|
|
16
|
+
- Update `@types/node` to the Node 26 type definitions
|
|
17
|
+
|
|
18
|
+
## [1.2.25] - 2026-07-09
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- Make “Expose away-mode switches for all groups” override the optional group allow-list so every Nuheat group appears in HomeKit
|
|
23
|
+
- Support the string group identifiers returned by Nuheat's current Conductor/NAM API
|
|
24
|
+
- Update the `ws` dependency override to 7.5.11 to resolve a memory-exhaustion denial-of-service advisory
|
|
25
|
+
|
|
7
26
|
## [1.2.24] - 2026-07-08
|
|
8
27
|
|
|
9
28
|
### Fixed
|
package/README.md
CHANGED
|
@@ -20,9 +20,9 @@ This maintained fork modernizes Nuheat support for current Homebridge releases w
|
|
|
20
20
|
## Compatibility
|
|
21
21
|
|
|
22
22
|
- Homebridge: `^1.8.0 || ^2.0.0-beta.0`
|
|
23
|
-
- Node.js: `^18.20.4 || ^20.18.0 || ^22 || ^24`
|
|
23
|
+
- Node.js: `^18.20.4 || ^20.18.0 || ^22 || ^24 || ^26`
|
|
24
24
|
|
|
25
|
-
For current Homebridge
|
|
25
|
+
For current Homebridge releases, use Node 22, 24, or 26.
|
|
26
26
|
|
|
27
27
|
## Installation
|
|
28
28
|
|
package/index.js
CHANGED
|
@@ -130,12 +130,13 @@ class NuHeatPlatform {
|
|
|
130
130
|
this.log.error("Error getting data from NuHeatAPI");
|
|
131
131
|
return;
|
|
132
132
|
}
|
|
133
|
-
|
|
134
|
-
|
|
133
|
+
const exposeAllGroups = !!this.config.autoPopulateAwayModeSwitches;
|
|
134
|
+
if (exposeAllGroups) {
|
|
135
|
+
this.log.info("Auto populating away mode switches by pulling all groups from the account.");
|
|
135
136
|
}
|
|
136
137
|
await Promise.all(response.map(async (deviceData) => {
|
|
137
|
-
|
|
138
|
-
|
|
138
|
+
const configuredGroup = groupArray.find((device) => device.groupName == deviceData.groupName && !device.disabled);
|
|
139
|
+
if (!exposeAllGroups && !configuredGroup) {
|
|
139
140
|
return;
|
|
140
141
|
}
|
|
141
142
|
const uuid = UUIDGen.generate(String(deviceData.groupId));
|
package/lib/NuHeatGroup.js
CHANGED
|
@@ -28,7 +28,7 @@ class NuHeatGroup {
|
|
|
28
28
|
}
|
|
29
29
|
async setAwayMode(value, callback) {
|
|
30
30
|
this.log.debug("Setting group away mode to " + value, this.deviceData.groupName);
|
|
31
|
-
const response = await this.NuHeatAPI.setAwayMode(this.deviceData.groupId ??
|
|
31
|
+
const response = await this.NuHeatAPI.setAwayMode(this.deviceData.groupId ?? "", value);
|
|
32
32
|
if (!response) {
|
|
33
33
|
this.log.error("Error setting away mode", this.deviceData.groupName);
|
|
34
34
|
callback(new Error("Error: setAwayMode"));
|
|
@@ -39,7 +39,7 @@ class NuHeatGroup {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
async updateAccessory() {
|
|
42
|
-
const response = await this.NuHeatAPI.refreshGroup(this.deviceData.groupId ??
|
|
42
|
+
const response = await this.NuHeatAPI.refreshGroup(this.deviceData.groupId ?? "");
|
|
43
43
|
if (!response) {
|
|
44
44
|
this.log.error("Error getting updated data", this.deviceData.groupName);
|
|
45
45
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-nuheat2",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.26",
|
|
4
4
|
"description": "Homebridge Platform for NuHeat Signature Thermostats",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"node-html-parser": "^5.2.0"
|
|
43
43
|
},
|
|
44
44
|
"overrides": {
|
|
45
|
-
"ws": "^7.5.
|
|
45
|
+
"ws": "^7.5.11",
|
|
46
46
|
"tough-cookie": "^4.1.3"
|
|
47
47
|
},
|
|
48
48
|
"engines": {
|
|
49
|
-
"node": "^18.20.4 || ^20.18.0 || ^22.0.0 || ^24.0.0",
|
|
49
|
+
"node": "^18.20.4 || ^20.18.0 || ^22.0.0 || ^24.0.0 || ^26.0.0",
|
|
50
50
|
"homebridge": "^1.8.0 || ^2.0.0-beta.0"
|
|
51
51
|
},
|
|
52
52
|
"files": [
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"CHANGELOG.md"
|
|
60
60
|
],
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@types/node": "^
|
|
62
|
+
"@types/node": "^26.0.0",
|
|
63
63
|
"typescript": "^6.0.2"
|
|
64
64
|
}
|
|
65
65
|
}
|