@haydendonald/node-red-contrib-hass-stuff 1.3.1 → 1.5.0
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.
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
groupEntityId: { value: "", required: true, default: "light.example" },
|
|
8
8
|
nightModeEntityId: { value: "", required: false, default: "input_boolean.example" },
|
|
9
9
|
entitiesOffAtNight: { value: "", required: false, default: "light.example1,light.example2" },
|
|
10
|
+
continuousAdaptive: { value: true, required: false },
|
|
10
11
|
concentrateSettings: { value: "", required: true, default: "concentrate 100" },
|
|
11
12
|
readSettings: { value: "", required: true, default: "read 100" },
|
|
12
13
|
relaxSettings: { value: "", required: true, default: "relax 100" },
|
|
@@ -47,6 +48,11 @@
|
|
|
47
48
|
<p>Comma-separated list of entities to turn off during night mode. Empty to disable</p>
|
|
48
49
|
<input type="text" id="node-config-input-entitiesOffAtNight" />
|
|
49
50
|
</div>
|
|
51
|
+
<div class="form-row">
|
|
52
|
+
<label style="font-weight: bold;" for="node-config-input-continuousAdaptive">Continuously Send Adaptive Colours</label>
|
|
53
|
+
<p>If enabled, adaptive scenes will be resent every 5 minutes, if disabled will only send when a change is required</p>
|
|
54
|
+
<input type="checkbox" id="node-config-input-continuousAdaptive" style="display: inline-block; width: auto; vertical-align: top;">
|
|
55
|
+
</div>
|
|
50
56
|
<div class="form-row">
|
|
51
57
|
<hr>
|
|
52
58
|
<h2>Scene definitions</h2>
|
|
@@ -379,7 +379,7 @@ module.exports = function LightControlConfigNode(RED) {
|
|
|
379
379
|
const runAdaptiveInterval = () => {
|
|
380
380
|
clearTimeout(adaptiveInterval);
|
|
381
381
|
if (currentSceneState == "Adaptive") {
|
|
382
|
-
run(300, false,
|
|
382
|
+
run(300, false, config.continuousAdaptive);
|
|
383
383
|
}
|
|
384
384
|
//Reschedule
|
|
385
385
|
adaptiveInterval = setTimeout(runAdaptiveInterval, 300000);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haydendonald/node-red-contrib-hass-stuff",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
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",
|