node-red-contrib-homebridge-automation 0.1.12-beta.6 → 0.1.12-beta.7
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 +1 -1
- package/package.json +1 -1
- package/src/HAP-NodeRed.js +3 -10
package/README.md
CHANGED
|
@@ -60,7 +60,7 @@ The above Node-RED Flow, turns on my 'Outside Office' light when the powder room
|
|
|
60
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)
|
|
61
61
|
|
|
62
62
|
<!-- Created by https://github.com/ekalinin/github-markdown-toc -->
|
|
63
|
-
<!-- Added by: runner, at: Sat Jul 6
|
|
63
|
+
<!-- Added by: runner, at: Sat Jul 6 23:23:03 UTC 2024 -->
|
|
64
64
|
|
|
65
65
|
<!--te-->
|
|
66
66
|
|
package/package.json
CHANGED
package/src/HAP-NodeRed.js
CHANGED
|
@@ -180,7 +180,7 @@ module.exports = function (RED) {
|
|
|
180
180
|
node.command = function (event) {
|
|
181
181
|
// False messages can be received from accessories with multiple services
|
|
182
182
|
// if (Object.keys(_convertHBcharactericToNode(event, node)).length > 0) {
|
|
183
|
-
debug("hbEvent", node.name, event);
|
|
183
|
+
// debug("hbEvent", node.name, event);
|
|
184
184
|
if (event.status === true && event.value !== undefined) {
|
|
185
185
|
node.state = Object.assign(node.state, _convertHBcharactericToNode([event], node));
|
|
186
186
|
var msg = {
|
|
@@ -538,7 +538,7 @@ module.exports = function (RED) {
|
|
|
538
538
|
node.conf.register(node, function () {
|
|
539
539
|
debug("hbControl.register:", node.fullName);
|
|
540
540
|
this.hbDevice = hbDevices.findDevice(node.device);
|
|
541
|
-
|
|
541
|
+
// console.log('hbControl Register', this.hbDevice)
|
|
542
542
|
if (this.hbDevice) {
|
|
543
543
|
node.hbDevice = this.hbDevice;
|
|
544
544
|
node.deviceType = this.hbDevice.type;
|
|
@@ -549,13 +549,6 @@ module.exports = function (RED) {
|
|
|
549
549
|
node.error("437:Can't find device " + node.device, null);
|
|
550
550
|
// this.error("Missing device " + node.device);
|
|
551
551
|
}
|
|
552
|
-
switch (node.service) {
|
|
553
|
-
case "Camera Control": // Camera Control
|
|
554
|
-
debug("hbControl camera");
|
|
555
|
-
break;
|
|
556
|
-
default:
|
|
557
|
-
debug("node.conf.register", node.service);
|
|
558
|
-
}
|
|
559
552
|
});
|
|
560
553
|
}
|
|
561
554
|
|
|
@@ -938,7 +931,7 @@ module.exports = function (RED) {
|
|
|
938
931
|
"image-width": 1920,
|
|
939
932
|
"image-height": 1080
|
|
940
933
|
};
|
|
941
|
-
debug("Control %s ->", device.id, JSON.stringify(message));
|
|
934
|
+
debug("Control %s ->", device.id, node.fullName, JSON.stringify(message));
|
|
942
935
|
homebridge.HAPresourceByDeviceID(device.id, JSON.stringify(message), function (err, status) {
|
|
943
936
|
if (!err) {
|
|
944
937
|
// debug("Controlled %s ->", device.id, JSON.stringify(payload));
|