@haydendonald/node-red-contrib-hass-stuff 1.2.2 → 1.2.4

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
@@ -191,6 +198,14 @@ module.exports = function LightControlConfigNode(RED) {
191
198
  connectionsConfigNode.sendHASSAction("light.turn_off", { entity_id: [config.groupEntityId] }, {
192
199
  transition: serviceData.transition || 1
193
200
  });
201
+ lastSentScene = "off";
202
+ //Send to the node output
203
+ self.sendMsg({
204
+ topic: "lightsOff",
205
+ payload: {
206
+ transitionSec: serviceData.transition || 1
207
+ }
208
+ });
194
209
  }
195
210
  }
196
211
  });
@@ -52,9 +52,21 @@
52
52
  {
53
53
  topic: "sceneSent",
54
54
  payload: {
55
- friendlyName: "Concentrate",
56
- sceneName: "sunFlare",
57
- brightnessPct: 100
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.2",
3
+ "version": "1.2.4",
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",