@haydendonald/node-red-contrib-hass-stuff 1.1.4 → 1.1.6

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.
@@ -85,12 +85,12 @@
85
85
  </div>
86
86
  <div class="form-row">
87
87
  <label style="font-weight: bold;" for="node-config-input-relaxSettings">Relax Settings</label>
88
- <p>The scene to use for the relax scene (7am-8am and 7-8pm) [scene] [brightnessPercent]</p>
88
+ <p>The scene to use for the relax scene (7am-8am and 7-10pm) [scene] [brightnessPercent]</p>
89
89
  <input type="text" id="node-config-input-relaxSettings" />
90
90
  </div>
91
91
  <div class="form-row">
92
92
  <label style="font-weight: bold;" for="node-config-input-restSettings">Rest Settings</label>
93
- <p>The scene to use for the rest scene (6am - 7am) (8-11pm) [scene] [brightnessPercent]</p>
93
+ <p>The scene to use for the rest scene (6am - 7am) (10-11pm) [scene] [brightnessPercent]</p>
94
94
  <input type="text" id="node-config-input-restSettings" />
95
95
  </div>
96
96
  <div class="form-row">
@@ -87,6 +87,11 @@ module.exports = function LightControlConfigNode(RED) {
87
87
  sceneName: config.relaxSettings.split(" ")[0],
88
88
  brightnessPct: parseInt(config.relaxSettings.split(" ")[1])
89
89
  },
90
+ rest: {
91
+ friendlyName: "Rest",
92
+ sceneName: config.restSettings.split(" ")[0],
93
+ brightnessPct: parseInt(config.restSettings.split(" ")[1])
94
+ },
90
95
  nightLight: {
91
96
  friendlyName: "Night Light",
92
97
  sceneName: config.nightLightSettings.split(" ")[0],
@@ -313,10 +318,10 @@ module.exports = function LightControlConfigNode(RED) {
313
318
  else if (currentHour >= 15 && currentHour < 19) {
314
319
  scene = scenes["read"];
315
320
  }
316
- else if (currentHour >= 19 && currentHour < 20) {
321
+ else if (currentHour >= 19 && currentHour < 22) {
317
322
  scene = scenes["relax"];
318
323
  }
319
- else if (currentHour >= 20 && currentHour < 23) {
324
+ else if (currentHour >= 22 && currentHour < 23) {
320
325
  scene = scenes["rest"];
321
326
  }
322
327
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haydendonald/node-red-contrib-hass-stuff",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
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",