homebridge-nuheat2 1.2.24 → 1.2.25
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/index.js +5 -4
- package/lib/NuHeatGroup.js +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,14 @@ All notable changes to this project should be documented in this file
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [1.2.25] - 2026-07-09
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- Make “Expose away-mode switches for all groups” override the optional group allow-list so every Nuheat group appears in HomeKit
|
|
12
|
+
- Support the string group identifiers returned by Nuheat's current Conductor/NAM API
|
|
13
|
+
- Update the `ws` dependency override to 7.5.11 to resolve a memory-exhaustion denial-of-service advisory
|
|
14
|
+
|
|
7
15
|
## [1.2.24] - 2026-07-08
|
|
8
16
|
|
|
9
17
|
### Fixed
|
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.25",
|
|
4
4
|
"description": "Homebridge Platform for NuHeat Signature Thermostats",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -42,7 +42,7 @@
|
|
|
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": {
|