node-red-contrib-homebridge-automation 0.1.12-beta.7 → 0.1.12-beta.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
@@ -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 23:23:03 UTC 2024 -->
63
+ <!-- Added by: runner, at: Sun Jul 7 00:03:36 UTC 2024 -->
64
64
 
65
65
  <!--te-->
66
66
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-homebridge-automation",
3
- "version": "0.1.12-beta.7",
3
+ "version": "0.1.12-beta.9",
4
4
  "description": "NodeRED Automation for HomeBridge",
5
5
  "main": "src/HAP-NodeRed.js",
6
6
  "scripts": {
@@ -505,9 +505,6 @@ module.exports = function (RED) {
505
505
 
506
506
  node.on('input', function (msg) {
507
507
  this.msg = msg;
508
- Object.keys(msg.payload).sort().forEach(function (key) {
509
- payload[key] = msg.payload[key];
510
- });
511
508
  _control.call(this, node, msg.payload, function (err, data) {
512
509
  // debug('hbControl complete [%s] - [%s]', node, node.hbDevice); // Images produce alot of noise
513
510
  if (!err && data && (node.deviceType == '00000110' || node.deviceType == '00000111')) {
@@ -650,7 +647,7 @@ module.exports = function (RED) {
650
647
  });
651
648
 
652
649
  RED.httpAdmin.get('/hap-device/evDevices/:id', RED.auth.needsPermission('hb-event.read'), function (req, res) {
653
- if (evDevices) {
650
+ if (evDevices && hbDevices) {
654
651
  debug("evDevices", hbDevices.toList({
655
652
  perms: 'ev'
656
653
  }).length);