node-red-contrib-power-saver 3.5.7 → 3.6.2
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/docs/.vuepress/config.js +3 -10
- package/docs/changelog/README.md +13 -0
- package/docs/examples/README.md +2 -0
- package/docs/examples/example-grid-tariff-capacity-flow.json +1126 -0
- package/docs/examples/example-grid-tariff-capacity-part.md +353 -107
- package/docs/images/example-capacity-flow.png +0 -0
- package/docs/images/lowest-price-config.png +0 -0
- package/docs/nodes/ps-strategy-best-save.md +4 -2
- package/docs/nodes/ps-strategy-lowest-price.md +27 -13
- package/package.json +2 -1
- package/src/elvia/elvia-add-tariff.js +1 -2
- package/src/elvia/elvia-api.js +3 -0
- package/src/strategy-best-save-functions.js +5 -1
- package/src/strategy-lowest-price.html +12 -0
- package/src/strategy-lowest-price.js +11 -2
- package/src/utils.js +5 -2
- package/test/data/best-save-overlap-prices.json +197 -0
- package/test/data/best-save-overlap-result.json +357 -0
- package/test/data/lowest-price-result-cont-max-fail.json +14 -0
- package/test/data/lowest-price-result-cont-max.json +20 -0
- package/test/data/lowest-price-result-cont.json +6 -5
- package/test/data/lowest-price-result-missing-end.json +7 -3
- package/test/data/lowest-price-result-split-allday.json +9 -8
- package/test/data/lowest-price-result-split-allday10.json +8 -7
- package/test/data/lowest-price-result-split-max.json +22 -0
- package/test/data/lowest-price-result-split.json +8 -7
- package/test/data/nordpool-3-days-result.json +10 -5
- package/test/data/result.js +9 -0
- package/test/data/tibber-result-end-0-24h.json +9 -4
- package/test/data/tibber-result-end-0.json +5 -2
- package/test/data/tibber-result.json +28 -14
- package/test/power-saver.test.js +6 -0
- package/test/strategy-best-save-overlap.test.js +52 -0
- package/test/strategy-lowest-price.test.js +88 -31
- package/test/utils.test.js +9 -8
package/docs/.vuepress/config.js
CHANGED
|
@@ -50,6 +50,7 @@ module.exports = {
|
|
|
50
50
|
"/examples/example-heat-capacitor.md",
|
|
51
51
|
"/examples/example-cascade-temperature-control.md",
|
|
52
52
|
"/examples/example-visualize-on-off/example-visualize-on-off.md",
|
|
53
|
+
"/examples/example-grid-tariff-capacity-part.md",
|
|
53
54
|
],
|
|
54
55
|
},
|
|
55
56
|
],
|
|
@@ -58,16 +59,7 @@ module.exports = {
|
|
|
58
59
|
"/changelog/": [{ text: "Changelog", children: ["/changelog/README.md"] }],
|
|
59
60
|
},
|
|
60
61
|
},
|
|
61
|
-
head: [
|
|
62
|
-
["link", { rel: "shortcut icon", type: "image/x-icon", href: "euro.png" }],
|
|
63
|
-
["script", { async: true, src: "https://www.googletagmanager.com/gtag/js?id=G-Z2QNNCDQZG" }],
|
|
64
|
-
[
|
|
65
|
-
"script",
|
|
66
|
-
{
|
|
67
|
-
src: "window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'G-Z2QNNCDQZG');",
|
|
68
|
-
},
|
|
69
|
-
],
|
|
70
|
-
],
|
|
62
|
+
head: [["link", { rel: "shortcut icon", type: "image/x-icon", href: "euro.png" }]],
|
|
71
63
|
plugins: [
|
|
72
64
|
[
|
|
73
65
|
"@vuepress/register-components",
|
|
@@ -76,5 +68,6 @@ module.exports = {
|
|
|
76
68
|
},
|
|
77
69
|
],
|
|
78
70
|
["@vuepress/plugin-search"],
|
|
71
|
+
["@vuepress/google-analytics", { id: "G-Z2QNNCDQZG" }],
|
|
79
72
|
],
|
|
80
73
|
};
|
package/docs/changelog/README.md
CHANGED
|
@@ -6,6 +6,19 @@ sidebar: "auto"
|
|
|
6
6
|
|
|
7
7
|
List the most significant changes, starting in version 1.0.9.
|
|
8
8
|
|
|
9
|
+
## 3.6.2
|
|
10
|
+
|
|
11
|
+
- Fix bug in Elvia API causing Node-RED to crash when the API key was wrong. Not it shows status `Unauthorized` and survive.
|
|
12
|
+
|
|
13
|
+
## 3.6.1
|
|
14
|
+
|
|
15
|
+
- Fix bug in Best Save node, so a better saving is not overwritten by a not as good saving in an overlapping period. This bug could occur in rare cases when a shorter savings period gave better results than a longer.
|
|
16
|
+
|
|
17
|
+
## 3.6.0
|
|
18
|
+
|
|
19
|
+
- New feature `Max price` for Lowest Price node. Can be set to only turn on if prices is below or equal to the max price.
|
|
20
|
+
- New value in output 3 from the Lowest Price and Best Save nodes, `countHours`, telling the number of hours that the value will stay.
|
|
21
|
+
|
|
9
22
|
## 3.5.7
|
|
10
23
|
|
|
11
24
|
- Add day-filter to general-add-tariff node so it can add one tariff for some days, and another tariff for other days.
|
package/docs/examples/README.md
CHANGED
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
|
|
13
13
|
[Visualize on/off, price and consumption in Lovelace](example-visualize-on-off/example-visualize-on-off)
|
|
14
14
|
|
|
15
|
+
[Capacity part of grid tariff](./example-grid-tariff-capacity-part)
|
|
16
|
+
|
|
15
17
|
## User provided examples
|
|
16
18
|
|
|
17
19
|
[Output schedule to a sensor entity](./example-next-schedule-entity.md) (by Stefan)
|