From d9183f5dc1f05cf16a1d51048f114328928d4224 Mon Sep 17 00:00:00 2001 From: dehsgr Date: Sat, 17 Dec 2022 17:09:19 +0100 Subject: [PATCH] Added triggerSrc Header This will fix issue #24. --- .gitignore | 2 ++ meross/smartgarage-control.js | 1 + meross/smartplug-control.js | 1 + package.json | 2 +- 4 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..25c8fdb --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules +package-lock.json \ No newline at end of file diff --git a/meross/smartgarage-control.js b/meross/smartgarage-control.js index 2af50d6..0ee415d 100644 --- a/meross/smartgarage-control.js +++ b/meross/smartgarage-control.js @@ -31,6 +31,7 @@ module.exports = function(RED) { 'Appliance.GarageDoor.State' : 'Appliance.System.All', 'timestamp': undefined, + 'triggerSrc': "NodeRedPluginLocal", 'payloadVersion': 1 }, 'payload': (typeof msg.payload === 'boolean') ? diff --git a/meross/smartplug-control.js b/meross/smartplug-control.js index 48ab354..6a02984 100644 --- a/meross/smartplug-control.js +++ b/meross/smartplug-control.js @@ -32,6 +32,7 @@ module.exports = function(RED) { msg.payload.namespace : 'Appliance.System.All', 'timestamp': undefined, + 'triggerSrc': "NodeRedPluginLocal", 'payloadVersion': 1 }, 'payload': (typeof msg.payload === 'boolean') ? diff --git a/package.json b/package.json index fd34eea..710e787 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-red-contrib-meross", - "version": "2.0.0", + "version": "2.0.1", "description": "This provides nodes for controlling Meross devices.", "author": "d3h56r", "license": "ISC",