node-red-contrib-homebridge-automation 0.1.7 → 0.1.9

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/README.md CHANGED
@@ -33,6 +33,7 @@ The above Node-RED Flow, turns on my 'Outside Office' light when the powder room
33
33
  * [Dec 31, 2022 - Version 0.1.3](#dec-31-2022---version-013)
34
34
  * [Jan 6, 2023 - Version 0.1.5](#jan-6-2023---version-015)
35
35
  * [Jan 11, 2023 - Version 0.1.7](#jan-11-2023---version-017)
36
+ * [Jan 15, 2023 - Version 0.1.8](#jan-15-2023---version-018)
36
37
  * [Backlog / Roadmap](#backlog--roadmap)
37
38
  * [Dropped items](#dropped-items)
38
39
  * [Installation Steps](#installation-steps)
@@ -58,7 +59,7 @@ The above Node-RED Flow, turns on my 'Outside Office' light when the powder room
58
59
  * [To start Node-RED in DEBUG mode, and output Homebridge-Automation debug logs start Node-RED like this.](#to-start-node-red-in-debug-mode-and-output-homebridge-automation-debug-logs-start-node-red-like-this)
59
60
 
60
61
  <!-- Created by https://github.com/ekalinin/github-markdown-toc -->
61
- <!-- Added by: sgracey, at: Wed 11 Jan 2023 11:21:22 EST -->
62
+ <!-- Added by: sgracey, at: Tue 7 Mar 2023 19:53:52 EST -->
62
63
 
63
64
  <!--te-->
64
65
 
@@ -177,6 +178,10 @@ With a plugin, you can see if it supports Real Time events, by opening the Home
177
178
 
178
179
  - Fix for #110 and homebridge-alexa #564
179
180
 
181
+ ### Jan 15, 2023 - Version 0.1.8
182
+
183
+ - Workaround for #111
184
+
180
185
  # Backlog / Roadmap
181
186
 
182
187
  * [x] - Update Node Information with Homebridge Accessory Details ( hapEndpoint, deviceType, description )
@@ -15,11 +15,11 @@ function Characteristic(devices, context) {
15
15
  this.type = devices.type.substring(0, 8);
16
16
  this.perms = devices.perms;
17
17
  this.value = devices.value;
18
- this.description = devices.description;
18
+ this.description = (devices.description ? devices.description : this.type);
19
19
  this.characteristic = {};
20
20
  this.getCharacteristic = context.aid + '.' + this.iid;
21
21
  this.characteristic[this.getCharacteristic] = {
22
- characteristic: devices.description.replace(/ /g, "").replace(/\./g, "_"),
22
+ characteristic: this.description.replace(/ /g, "").replace(/\./g, "_"),
23
23
  iid: this.iid
24
24
  };
25
25
  this.eventRegister = {
package/lib/Service.js CHANGED
@@ -128,7 +128,7 @@ Service.prototype.toList = function (context) {
128
128
  // debug("characteristic", characteristic)
129
129
  // debug("perms", context.opt);
130
130
  // debug("perms", (context.opt ? "perms" + context.opt.perms + characteristic.perms.includes(context.opt.perms) : "noperms"));
131
- if (characteristic.type !== '00000023' && (context.opt ? characteristic.perms.includes(context.opt.perms) : true)) {
131
+ if (characteristic.type !== '00000023' && characteristic.perms && (context.opt ? characteristic.perms.includes(context.opt.perms) : true)) {
132
132
  // debug("Yes", context.name, characteristic.description, characteristic.perms);
133
133
  descriptions = (descriptions ? descriptions + ', ' : '') + characteristic.description.replace(/ /g, "").replace(/\./g, "_");
134
134
  getCharacteristics = (getCharacteristics ? getCharacteristics + ',' : '') + characteristic.getCharacteristic;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-homebridge-automation",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "NodeRED Automation for HomeBridge",
5
5
  "main": "HAP-NodeRed.js",
6
6
  "scripts": {