node-red-contrib-homekit-bridged 1.4.0-dev.18 → 1.4.1
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/CHANGELOG.md
CHANGED
|
@@ -11,7 +11,13 @@ All notable changes to this project will be documented in this file.
|
|
|
11
11
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres
|
|
12
12
|
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
13
13
|
|
|
14
|
-
## [1.4.
|
|
14
|
+
## [1.4.1]
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- Fix readme appearance on `flows.nodered.org`
|
|
19
|
+
|
|
20
|
+
## [1.4.0]
|
|
15
21
|
|
|
16
22
|
### Fixed
|
|
17
23
|
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
#### Do you need setup help? Have a great idea? Want to shoot the breeze with fellow users? [Join us on our Discord server!](https://discord.gg/uvYac5u)
|
|
6
6
|
|
|
7
|
-
### <img src="https://github.com/NRCHKB/NRCHKB.github.io/raw/master/static/images/presentation/demonstration.gif"
|
|
7
|
+
### <img src="https://github.com/NRCHKB/NRCHKB.github.io/raw/master/static/images/presentation/demonstration.gif" alt="NRCHKB Demonstration" align="right"/> About this Contrib
|
|
8
8
|
|
|
9
9
|
This is a collection of nodes which can be used to imitate HomeKit devices inside of Node-RED. Messages coming into these nodes are able to set device states and status in Apple's iOS and MacOS Home apps. Commands from Home apps (or Siri) will be passed from these nodes into your Node-RED flows.
|
|
10
10
|
|
|
@@ -9,7 +9,11 @@ module.exports = function (node) {
|
|
|
9
9
|
let characteristicProperties = {};
|
|
10
10
|
if (config.characteristicProperties &&
|
|
11
11
|
config.characteristicProperties.length > 0) {
|
|
12
|
-
characteristicProperties = JSON.parse(config.characteristicProperties.replace(/\${(.*?)}
|
|
12
|
+
characteristicProperties = JSON.parse(config.characteristicProperties.replace(/\${(.*?)}/g, (_, envName) => node.RED.util.evaluateNodeProperty(envName, 'env', node, {})));
|
|
13
|
+
log.trace('Evaluating value:');
|
|
14
|
+
log.trace(config.characteristicProperties);
|
|
15
|
+
log.trace('Evaluated as:');
|
|
16
|
+
log.trace(JSON.stringify(characteristicProperties));
|
|
13
17
|
for (const key in characteristicProperties) {
|
|
14
18
|
if (!characteristicProperties.hasOwnProperty(key))
|
|
15
19
|
continue;
|
|
@@ -9,7 +9,11 @@ module.exports = function (node) {
|
|
|
9
9
|
let characteristicProperties = {};
|
|
10
10
|
if (config.characteristicProperties &&
|
|
11
11
|
config.characteristicProperties.length > 0) {
|
|
12
|
-
characteristicProperties = JSON.parse(config.characteristicProperties.replace(/\${(.*?)}
|
|
12
|
+
characteristicProperties = JSON.parse(config.characteristicProperties.replace(/\${(.*?)}/g, (_, envName) => node.RED.util.evaluateNodeProperty(envName, 'env', node, {})));
|
|
13
|
+
log.trace('Evaluating value:');
|
|
14
|
+
log.trace(config.characteristicProperties);
|
|
15
|
+
log.trace('Evaluated as:');
|
|
16
|
+
log.trace(JSON.stringify(characteristicProperties));
|
|
13
17
|
for (const key in characteristicProperties) {
|
|
14
18
|
if (!characteristicProperties.hasOwnProperty(key))
|
|
15
19
|
continue;
|