node-red-contrib-knx-ultimate 2.4.5-beta.1 → 2.4.5-beta.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 +3 -0
- package/nodes/commonFunctions.js +1 -1
- package/nodes/hue-config.js +8 -18
- package/nodes/knxUltimateHueLight.html +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
# CHANGELOG
|
|
8
8
|
|
|
9
|
+
**Version 2.4.5-beta.2 PUBLIC BETA** - Feb 2024<br/>
|
|
10
|
+
- Fix the listing of ethernet interfaces in the gateway config window.<br/>
|
|
11
|
+
|
|
9
12
|
**Version 2.4.5-beta.1 PUBLIC BETA** - Feb 2024<br/>
|
|
10
13
|
- WARNING: this version uses the Node-Red plugin system; the Node-Red version must be **equals or major than 3.1.1**<br/>
|
|
11
14
|
- HUE: Optimized color translation between xyBri and RGB.<br/>
|
package/nodes/commonFunctions.js
CHANGED
|
@@ -237,9 +237,9 @@ module.exports = (RED) => {
|
|
|
237
237
|
|
|
238
238
|
// 14/08/2019 Endpoint for retrieving the ethernet interfaces
|
|
239
239
|
RED.httpAdmin.get("/knxUltimateETHInterfaces", (req, res) => {
|
|
240
|
+
const jListInterfaces = [];
|
|
240
241
|
try {
|
|
241
242
|
const oiFaces = oOS.networkInterfaces();
|
|
242
|
-
const jListInterfaces = [];
|
|
243
243
|
Object.keys(oiFaces).forEach((ifname) => {
|
|
244
244
|
// Interface with single IP
|
|
245
245
|
if (Object.keys(oiFaces[ifname]).length === 1) {
|
package/nodes/hue-config.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable camelcase */
|
|
1
2
|
/* eslint-disable no-underscore-dangle */
|
|
2
3
|
/* eslint-disable no-lonely-if */
|
|
3
4
|
/* eslint-disable no-param-reassign */
|
|
@@ -120,26 +121,15 @@ module.exports = (RED) => {
|
|
|
120
121
|
// °°°°°° Load ALL resources
|
|
121
122
|
try {
|
|
122
123
|
node.hueAllResources = await node.hueManager.hueApiV2.get("/resource");
|
|
123
|
-
|
|
124
|
-
// // DEBUG
|
|
125
|
-
// try {
|
|
126
|
-
// const fs = require('fs');
|
|
127
|
-
// const { resolve } = require('path');
|
|
128
|
-
// const content = JSON.stringify(node.hueAllResources);
|
|
129
|
-
// try {
|
|
130
|
-
// fs.writeFileSync('resources.json', content);
|
|
131
|
-
// RED.log.info("******************************* FILE WROTE IN resources.json " + resolve("resources.json"))
|
|
132
|
-
// // file written successfully
|
|
133
|
-
// } catch (error) {
|
|
134
|
-
// RED.log.error("********************************************* const content = JSON.stringify(node.hueAllResources)2222: " + error.message)
|
|
135
|
-
// }
|
|
136
|
-
// } catch (error) {
|
|
137
|
-
// RED.log.error("********************************************* const content = JSON.stringify(node.hueAllResources): " + error.message)
|
|
138
|
-
// }
|
|
139
|
-
|
|
140
|
-
|
|
141
124
|
if (node.hueAllResources !== undefined) {
|
|
142
125
|
node.hueAllRooms = node.hueAllResources.filter((a) => a.type === "room");
|
|
126
|
+
|
|
127
|
+
// Get zigbee_connectivituy
|
|
128
|
+
// const bridgeId = node.hueAllResources.filter((a) => a.bridge_id === config.bridgeid).owner.rid;
|
|
129
|
+
// const zigbee_ConnectivityID = node.hueAllResources.filter((a) => a.id === bridgeId).services.filter((a) => a.rtype === "zigbee_connectivity").rid;
|
|
130
|
+
// // connected, disconnected, connectivity_issue, unidirectional_incoming
|
|
131
|
+
// const oZigbeeConnectivityStatus = node.hueAllResources.filter((a) => a.id === zigbee_ConnectivityID).status;
|
|
132
|
+
|
|
143
133
|
// Update all KNX State of the nodes with the new hue device values
|
|
144
134
|
node.nodeClients.forEach((_node) => {
|
|
145
135
|
if (_node.hueDevice !== undefined && node.hueAllResources !== undefined) {
|
|
@@ -1498,7 +1498,8 @@ Start typing in the GA field, the name or group address of your KNX device, the
|
|
|
1498
1498
|
| Status H %| Status of the HSV chromatic circle.|
|
|
1499
1499
|
| Control S dim | Changes the light's color saturation, using DPT 3.007 dimming. You can set the dimming speed in the **_Behaviour_** tab.|
|
|
1500
1500
|
| Status S %| The light color saturation status group address.|
|
|
1501
|
-
| Dim Speed (ms) | The dimming speed, in Milliseconds, from bottom to top scale. |
|
|
1501
|
+
| Dim Speed (ms) | The dimming speed, in Milliseconds, from bottom to top scale. |
|
|
1502
|
+
|
|
1502
1503
|
For controlling the "V" (brightness) of the HSV, please use the standard controls of the **DIM** tab.
|
|
1503
1504
|
|
|
1504
1505
|
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"engines": {
|
|
4
4
|
"node": ">=16.0.0"
|
|
5
5
|
},
|
|
6
|
-
"version": "2.4.5-beta.
|
|
6
|
+
"version": "2.4.5-beta.2",
|
|
7
7
|
"description": "Control your KNX intallation via Node-Red! A bunch of KNX nodes, with integrated Philips HUE control and ETS group address importer. Easy to use and highly configurable.",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"binary-parser": "2.2.1",
|