@haydendonald/node-red-contrib-hass-stuff 1.2.2 → 1.2.3
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.
|
@@ -176,6 +176,13 @@ module.exports = function LightControlConfigNode(RED) {
|
|
|
176
176
|
transition: serviceData.transition || 1
|
|
177
177
|
});
|
|
178
178
|
lastSentScene = "off";
|
|
179
|
+
//Send to the node output
|
|
180
|
+
self.sendMsg({
|
|
181
|
+
topic: "lightsOff",
|
|
182
|
+
payload: {
|
|
183
|
+
transitionSec: serviceData.transition || 1
|
|
184
|
+
}
|
|
185
|
+
});
|
|
179
186
|
}
|
|
180
187
|
});
|
|
181
188
|
//Add our toggle scene
|
|
@@ -52,9 +52,21 @@
|
|
|
52
52
|
{
|
|
53
53
|
topic: "sceneSent",
|
|
54
54
|
payload: {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
transitionSec: 1,
|
|
56
|
+
scene: {
|
|
57
|
+
friendlyName: "Concentrate",
|
|
58
|
+
sceneName: "sunFlare",
|
|
59
|
+
brightnessPct: 100
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
</code></pre>
|
|
64
|
+
<li>Lights off - The lights were turned off</li>
|
|
65
|
+
<pre><code>
|
|
66
|
+
{
|
|
67
|
+
topic: "lightsOff",
|
|
68
|
+
payload: {
|
|
69
|
+
transitionSec: 1
|
|
58
70
|
}
|
|
59
71
|
}
|
|
60
72
|
</code></pre>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haydendonald/node-red-contrib-hass-stuff",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "A collection of stuff I use on my Node Red + Home Assistant server. This could be of use for others, i don't know..",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@types/node": "^18.14.0",
|