node-red-contrib-homebridge-automation 0.1.8 → 0.1.10

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)
@@ -54,11 +55,12 @@ The above Node-RED Flow, turns on my 'Outside Office' light when the powder room
54
55
  * [hb control](#hb-control)
55
56
  * [Input](#input-2)
56
57
  * [Flows Shared from Community](#flows-shared-from-community)
58
+ * [Donations](#donations)
57
59
  * [Troubleshooting / DEBUG MODE](#troubleshooting--debug-mode)
58
60
  * [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
61
 
60
62
  <!-- Created by https://github.com/ekalinin/github-markdown-toc -->
61
- <!-- Added by: sgracey, at: Sun 15 Jan 2023 10:16:14 EST -->
63
+ <!-- Added by: sgracey, at: Tue 7 Mar 2023 20:10:44 EST -->
62
64
 
63
65
  <!--te-->
64
66
 
@@ -177,6 +179,10 @@ With a plugin, you can see if it supports Real Time events, by opening the Home
177
179
 
178
180
  - Fix for #110 and homebridge-alexa #564
179
181
 
182
+ ### Jan 15, 2023 - Version 0.1.8
183
+
184
+ - Workaround for #111
185
+
180
186
  # Backlog / Roadmap
181
187
 
182
188
  * [x] - Update Node Information with Homebridge Accessory Details ( hapEndpoint, deviceType, description )
@@ -353,6 +359,10 @@ I have started collecting flows for useful functions on the wiki.
353
359
 
354
360
  https://github.com/NorthernMan54/node-red-contrib-homebridge-automation/wiki
355
361
 
362
+ # Donations
363
+
364
+ [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6V3MNYYR446EG)
365
+
356
366
  # Troubleshooting / DEBUG MODE
357
367
 
358
368
  ## To start Node-RED in DEBUG mode, and output Homebridge-Automation debug logs start Node-RED like this.
@@ -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
@@ -117,6 +117,8 @@ Service.prototype.toList = function (context) {
117
117
  fullName = context.name + " - " + this.name;
118
118
  } else if (context.manufacturer === "Mitsubishi" && !fullName.includes(this.name)) {
119
119
  fullName = context.name + " - " + this.name;
120
+ } else if (context.manufacturer === "Allterco") {
121
+ fullName = context.name + " - " + this.name;
120
122
  } else {
121
123
  context.name = this.name;
122
124
  fullName = context.name;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-homebridge-automation",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "NodeRED Automation for HomeBridge",
5
5
  "main": "HAP-NodeRed.js",
6
6
  "scripts": {