node-red-contrib-knx-ultimate 2.2.13 → 2.2.15

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
@@ -6,7 +6,7 @@
6
6
 
7
7
  # CHANGELOG
8
8
 
9
- <b>Version 2.2.13</b> - November 2023<br/>
9
+ <b>Version 2.2.15</b> - November 2023<br/>
10
10
  <p>
11
11
  - NEW: Hue Light: you can now enable the input/output PINs and send/receive commands to/from the light, via the msg flow, like msg.on={"on":true}. The option is "Node Input/Output PINs".<br/>
12
12
  - NEW: Hue Scene: you can now enable the input/output PINs and send/receive commands to/from the light, via the msg flow. The option is "Node Input/Output PINs".<br/>
@@ -126,8 +126,14 @@ module.exports = (RED) => {
126
126
  await node.initHUEConnection();
127
127
  } else {
128
128
  // Check wether the hue connection is still alive
129
- const ret = await node.hueManager.isConnected();
130
- if (!ret) node.linkStatus = "disconnected";
129
+ if (node.hueManager !== undefined) {
130
+ try {
131
+ const ret = await node.hueManager.isConnected();
132
+ if (!ret) node.linkStatus = "disconnected";
133
+ } catch (error) { node.linkStatus = "disconnected"; }
134
+ } else {
135
+ node.linkStatus = "disconnected";
136
+ }
131
137
  }
132
138
  node.startWatchdogTimer();
133
139
  })();
@@ -211,13 +211,14 @@
211
211
  <label for="node-input-namelightsensor" style="width:50px; margin-left: 0px; text-align: right;">Name</label>
212
212
  <input type="text" id="node-input-namelightsensor" style="width:200px;margin-left: 5px; text-align: left;">
213
213
  </div>
214
-
214
+
215
+ <br/>
215
216
  <div class="form-row">
216
217
  <label style="width:180px" for="node-input-readStatusAtStartup"><i class="fa fa-play-circle"></i> Read status at startup</label>
217
218
  <select id="node-input-readStatusAtStartup">
218
219
  <option value="no">No</option>
219
- <option value="yes">Yes, and emit KNX telegrams.</option>
220
- </select>
220
+ <option value="yes">Yes, and emit KNX telegrams.</option>
221
+ </select>
221
222
  </div>
222
223
 
223
224
 
@@ -11,6 +11,7 @@
11
11
  nametemperaturesensor: { value: "" },
12
12
  GAtemperaturesensor: { value: "" },
13
13
  dpttemperaturesensor: { value: "" },
14
+ readStatusAtStartup: { value: "no" },
14
15
 
15
16
  hueDevice: { value: "" }
16
17
  },
@@ -210,7 +211,15 @@
210
211
  <label for="node-input-nametemperaturesensor" style="width:50px; margin-left: 0px; text-align: right;">Name</label>
211
212
  <input type="text" id="node-input-nametemperaturesensor" style="width:200px;margin-left: 5px; text-align: left;">
212
213
  </div>
213
-
214
+
215
+ <br/>
216
+ <div class="form-row">
217
+ <label style="width:180px" for="node-input-readStatusAtStartup"><i class="fa fa-play-circle"></i> Read status at startup</label>
218
+ <select id="node-input-readStatusAtStartup">
219
+ <option value="no">No</option>
220
+ <option value="yes">Yes, and emit KNX telegrams.</option>
221
+ </select>
222
+ </div>
214
223
 
215
224
  <br/>
216
225
  <br/>
@@ -232,6 +241,8 @@ you're typing.
232
241
  | KNX GW | Select the KNX gateway to be used |
233
242
  | HUE Bridge | Select the HUE Bridge to be used |
234
243
  | Hue Sensor | HUE sensor to be used. The avaiable buttons start showing up while you're typing.|
244
+ | Read status at startup | Read the status at startup and emit the event to the KNX bus at startup/reconnection.
245
+ (Default "no")|
235
246
 
236
247
  **KNX**
237
248
  |Property|Description|
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "engines": {
4
4
  "node": ">=16.0.0"
5
5
  },
6
- "version": "2.2.13",
6
+ "version": "2.2.15",
7
7
  "description": "Control your KNX intallation via Node-Red! Single Node KNX IN/OUT with optional ETS group address importer. Easy to use and highly configurable. With integrated Philips HUE devices control.",
8
8
  "dependencies": {
9
9
  "binary-parser": "2.2.1",