node-red-contrib-power-saver 3.0.8 → 3.0.9
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/dist/404.html +3 -3
- package/docs/.vuepress/dist/assets/js/app.190d977f.js +1 -0
- package/docs/.vuepress/dist/assets/js/{runtime~app.7653fe7e.js → runtime~app.36bc5048.js} +1 -1
- package/docs/.vuepress/dist/assets/js/v-510ed0d4.01d07aab.js +1 -0
- package/docs/.vuepress/dist/changelog/index.html +3 -3
- package/docs/.vuepress/dist/contribute/index.html +2 -2
- package/docs/.vuepress/dist/examples/example-nordpool-current-state.html +2 -2
- package/docs/.vuepress/dist/examples/example-nordpool-events-state.html +2 -2
- package/docs/.vuepress/dist/examples/example-tibber-mqtt.html +2 -2
- package/docs/.vuepress/dist/examples/index.html +2 -2
- package/docs/.vuepress/dist/guide/index.html +2 -2
- package/docs/.vuepress/dist/index.html +2 -2
- package/docs/.vuepress/dist/nodes/index.html +2 -2
- package/docs/.vuepress/dist/nodes/old-power-saver-doc.html +2 -2
- package/docs/.vuepress/dist/nodes/power-saver.html +2 -2
- package/docs/.vuepress/dist/nodes/ps-elvia-add-tariff.html +2 -2
- package/docs/.vuepress/dist/nodes/ps-receive-price.html +2 -2
- package/docs/.vuepress/dist/nodes/ps-strategy-best-save.html +2 -2
- package/docs/.vuepress/dist/nodes/ps-strategy-lowest-price.html +2 -2
- package/docs/.vuepress/dist/nodes/strategy-input.html +2 -2
- package/docs/changelog/README.md +4 -0
- package/docs/examples/example-nordpool-current-state.md +172 -152
- package/docs/nodes/ps-receive-price.md +4 -0
- package/package.json +1 -1
- package/src/receive-price-functions.js +8 -0
- package/test/data/nordpool-prices-in-payload.json +287 -0
- package/test/receive-price.test.js +22 -0
- package/docs/.vuepress/dist/assets/js/app.8ccc81e3.js +0 -1
- package/docs/.vuepress/dist/assets/js/v-510ed0d4.e5215a83.js +0 -1
|
@@ -72,6 +72,14 @@ function convertMsg(msg) {
|
|
|
72
72
|
value: v.value,
|
|
73
73
|
start: v.start,
|
|
74
74
|
}));
|
|
75
|
+
} else if (msg.payload?.attributes && msg.payload.attributes["raw_" + day]) {
|
|
76
|
+
result.source = "Nordpool";
|
|
77
|
+
result[day] = msg.payload.attributes["raw_" + day]
|
|
78
|
+
.filter((v) => v.value)
|
|
79
|
+
.map((v) => ({
|
|
80
|
+
value: v.value,
|
|
81
|
+
start: v.start,
|
|
82
|
+
}));
|
|
75
83
|
} else {
|
|
76
84
|
result.source = "Other";
|
|
77
85
|
result[day] = msg.payload[day] || [];
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_msgid": "45d6a7a32390154a",
|
|
3
|
+
"payload": {
|
|
4
|
+
"entity_id": "sensor.nordpool_kwh_oslo_nok_3_10_025",
|
|
5
|
+
"state": "2.171",
|
|
6
|
+
"attributes": {
|
|
7
|
+
"current_price": 2.171,
|
|
8
|
+
"average": 1.868,
|
|
9
|
+
"off peak 1": 1.619,
|
|
10
|
+
"off peak 2": 2.199,
|
|
11
|
+
"peak": 1.849,
|
|
12
|
+
"min": 1.605,
|
|
13
|
+
"max": 2.22,
|
|
14
|
+
"unit": "kWh",
|
|
15
|
+
"currency": "NOK",
|
|
16
|
+
"country": "Norway",
|
|
17
|
+
"region": "Oslo",
|
|
18
|
+
"low price": false,
|
|
19
|
+
"tomorrow_valid": true,
|
|
20
|
+
"today": [
|
|
21
|
+
1.639, 1.619, 1.609, 1.605, 1.605, 1.61, 1.641, 1.627, 1.685, 1.772, 1.794, 1.778, 1.812, 1.846, 1.873, 1.943,
|
|
22
|
+
1.972, 2.171, 2.22, 2.21, 2.22, 2.213, 2.192, 2.168
|
|
23
|
+
],
|
|
24
|
+
"tomorrow": [
|
|
25
|
+
2.086, 1.992, 1.951, 1.911, 2.058, 2.221, 2.875, 4.838, 5.338, 5.05, 4.603, 4.186, 3.567, 4.335, 4.987, 5.281,
|
|
26
|
+
5.424, 5.672, 5.739, 5.418, 3.303, 4.581, 3.114, 2.751
|
|
27
|
+
],
|
|
28
|
+
"raw_today": [
|
|
29
|
+
{
|
|
30
|
+
"start": "2021-12-19T00:00:00+01:00",
|
|
31
|
+
"end": "2021-12-19T01:00:00+01:00",
|
|
32
|
+
"value": 1.639
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"start": "2021-12-19T01:00:00+01:00",
|
|
36
|
+
"end": "2021-12-19T02:00:00+01:00",
|
|
37
|
+
"value": 1.619
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"start": "2021-12-19T02:00:00+01:00",
|
|
41
|
+
"end": "2021-12-19T03:00:00+01:00",
|
|
42
|
+
"value": 1.609
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"start": "2021-12-19T03:00:00+01:00",
|
|
46
|
+
"end": "2021-12-19T04:00:00+01:00",
|
|
47
|
+
"value": 1.605
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"start": "2021-12-19T04:00:00+01:00",
|
|
51
|
+
"end": "2021-12-19T05:00:00+01:00",
|
|
52
|
+
"value": 1.605
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"start": "2021-12-19T05:00:00+01:00",
|
|
56
|
+
"end": "2021-12-19T06:00:00+01:00",
|
|
57
|
+
"value": 1.61
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"start": "2021-12-19T06:00:00+01:00",
|
|
61
|
+
"end": "2021-12-19T07:00:00+01:00",
|
|
62
|
+
"value": 1.641
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"start": "2021-12-19T07:00:00+01:00",
|
|
66
|
+
"end": "2021-12-19T08:00:00+01:00",
|
|
67
|
+
"value": 1.627
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"start": "2021-12-19T08:00:00+01:00",
|
|
71
|
+
"end": "2021-12-19T09:00:00+01:00",
|
|
72
|
+
"value": 1.685
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"start": "2021-12-19T09:00:00+01:00",
|
|
76
|
+
"end": "2021-12-19T10:00:00+01:00",
|
|
77
|
+
"value": 1.772
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"start": "2021-12-19T10:00:00+01:00",
|
|
81
|
+
"end": "2021-12-19T11:00:00+01:00",
|
|
82
|
+
"value": 1.794
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"start": "2021-12-19T11:00:00+01:00",
|
|
86
|
+
"end": "2021-12-19T12:00:00+01:00",
|
|
87
|
+
"value": 1.778
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"start": "2021-12-19T12:00:00+01:00",
|
|
91
|
+
"end": "2021-12-19T13:00:00+01:00",
|
|
92
|
+
"value": 1.812
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"start": "2021-12-19T13:00:00+01:00",
|
|
96
|
+
"end": "2021-12-19T14:00:00+01:00",
|
|
97
|
+
"value": 1.846
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"start": "2021-12-19T14:00:00+01:00",
|
|
101
|
+
"end": "2021-12-19T15:00:00+01:00",
|
|
102
|
+
"value": 1.873
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"start": "2021-12-19T15:00:00+01:00",
|
|
106
|
+
"end": "2021-12-19T16:00:00+01:00",
|
|
107
|
+
"value": 1.943
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"start": "2021-12-19T16:00:00+01:00",
|
|
111
|
+
"end": "2021-12-19T17:00:00+01:00",
|
|
112
|
+
"value": 1.972
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"start": "2021-12-19T17:00:00+01:00",
|
|
116
|
+
"end": "2021-12-19T18:00:00+01:00",
|
|
117
|
+
"value": 2.171
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"start": "2021-12-19T18:00:00+01:00",
|
|
121
|
+
"end": "2021-12-19T19:00:00+01:00",
|
|
122
|
+
"value": 2.22
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"start": "2021-12-19T19:00:00+01:00",
|
|
126
|
+
"end": "2021-12-19T20:00:00+01:00",
|
|
127
|
+
"value": 2.21
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"start": "2021-12-19T20:00:00+01:00",
|
|
131
|
+
"end": "2021-12-19T21:00:00+01:00",
|
|
132
|
+
"value": 2.22
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"start": "2021-12-19T21:00:00+01:00",
|
|
136
|
+
"end": "2021-12-19T22:00:00+01:00",
|
|
137
|
+
"value": 2.213
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"start": "2021-12-19T22:00:00+01:00",
|
|
141
|
+
"end": "2021-12-19T23:00:00+01:00",
|
|
142
|
+
"value": 2.192
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"start": "2021-12-19T23:00:00+01:00",
|
|
146
|
+
"end": "2021-12-20T00:00:00+01:00",
|
|
147
|
+
"value": 2.168
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
"raw_tomorrow": [
|
|
151
|
+
{
|
|
152
|
+
"start": "2021-12-20T00:00:00+01:00",
|
|
153
|
+
"end": "2021-12-20T01:00:00+01:00",
|
|
154
|
+
"value": 2.086
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"start": "2021-12-20T01:00:00+01:00",
|
|
158
|
+
"end": "2021-12-20T02:00:00+01:00",
|
|
159
|
+
"value": 1.992
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"start": "2021-12-20T02:00:00+01:00",
|
|
163
|
+
"end": "2021-12-20T03:00:00+01:00",
|
|
164
|
+
"value": 1.951
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"start": "2021-12-20T03:00:00+01:00",
|
|
168
|
+
"end": "2021-12-20T04:00:00+01:00",
|
|
169
|
+
"value": 1.911
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"start": "2021-12-20T04:00:00+01:00",
|
|
173
|
+
"end": "2021-12-20T05:00:00+01:00",
|
|
174
|
+
"value": 2.058
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"start": "2021-12-20T05:00:00+01:00",
|
|
178
|
+
"end": "2021-12-20T06:00:00+01:00",
|
|
179
|
+
"value": 2.221
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"start": "2021-12-20T06:00:00+01:00",
|
|
183
|
+
"end": "2021-12-20T07:00:00+01:00",
|
|
184
|
+
"value": 2.875
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"start": "2021-12-20T07:00:00+01:00",
|
|
188
|
+
"end": "2021-12-20T08:00:00+01:00",
|
|
189
|
+
"value": 4.838
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"start": "2021-12-20T08:00:00+01:00",
|
|
193
|
+
"end": "2021-12-20T09:00:00+01:00",
|
|
194
|
+
"value": 5.338
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"start": "2021-12-20T09:00:00+01:00",
|
|
198
|
+
"end": "2021-12-20T10:00:00+01:00",
|
|
199
|
+
"value": 5.05
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"start": "2021-12-20T10:00:00+01:00",
|
|
203
|
+
"end": "2021-12-20T11:00:00+01:00",
|
|
204
|
+
"value": 4.603
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"start": "2021-12-20T11:00:00+01:00",
|
|
208
|
+
"end": "2021-12-20T12:00:00+01:00",
|
|
209
|
+
"value": 4.186
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"start": "2021-12-20T12:00:00+01:00",
|
|
213
|
+
"end": "2021-12-20T13:00:00+01:00",
|
|
214
|
+
"value": 3.567
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"start": "2021-12-20T13:00:00+01:00",
|
|
218
|
+
"end": "2021-12-20T14:00:00+01:00",
|
|
219
|
+
"value": 4.335
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"start": "2021-12-20T14:00:00+01:00",
|
|
223
|
+
"end": "2021-12-20T15:00:00+01:00",
|
|
224
|
+
"value": 4.987
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"start": "2021-12-20T15:00:00+01:00",
|
|
228
|
+
"end": "2021-12-20T16:00:00+01:00",
|
|
229
|
+
"value": 5.281
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"start": "2021-12-20T16:00:00+01:00",
|
|
233
|
+
"end": "2021-12-20T17:00:00+01:00",
|
|
234
|
+
"value": 5.424
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"start": "2021-12-20T17:00:00+01:00",
|
|
238
|
+
"end": "2021-12-20T18:00:00+01:00",
|
|
239
|
+
"value": 5.672
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"start": "2021-12-20T18:00:00+01:00",
|
|
243
|
+
"end": "2021-12-20T19:00:00+01:00",
|
|
244
|
+
"value": 5.739
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"start": "2021-12-20T19:00:00+01:00",
|
|
248
|
+
"end": "2021-12-20T20:00:00+01:00",
|
|
249
|
+
"value": 5.418
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"start": "2021-12-20T20:00:00+01:00",
|
|
253
|
+
"end": "2021-12-20T21:00:00+01:00",
|
|
254
|
+
"value": 3.303
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"start": "2021-12-20T21:00:00+01:00",
|
|
258
|
+
"end": "2021-12-20T22:00:00+01:00",
|
|
259
|
+
"value": 4.581
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"start": "2021-12-20T22:00:00+01:00",
|
|
263
|
+
"end": "2021-12-20T23:00:00+01:00",
|
|
264
|
+
"value": 3.114
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"start": "2021-12-20T23:00:00+01:00",
|
|
268
|
+
"end": "2021-12-21T00:00:00+01:00",
|
|
269
|
+
"value": 2.751
|
|
270
|
+
}
|
|
271
|
+
],
|
|
272
|
+
"unit_of_measurement": "NOK/kWh",
|
|
273
|
+
"icon": "mdi:flash",
|
|
274
|
+
"friendly_name": "nordpool_kwh_oslo_nok_3_10_025"
|
|
275
|
+
},
|
|
276
|
+
"last_changed": "2021-12-19T16:00:00.099173+00:00",
|
|
277
|
+
"last_updated": "2021-12-19T16:00:00.099173+00:00",
|
|
278
|
+
"context": {
|
|
279
|
+
"id": "bd31b337e9271ec5ee5b8c1c170840c2",
|
|
280
|
+
"parent_id": null,
|
|
281
|
+
"user_id": null
|
|
282
|
+
},
|
|
283
|
+
"timeSinceChangedMs": 815634,
|
|
284
|
+
"original_state": "2.171"
|
|
285
|
+
},
|
|
286
|
+
"topic": ""
|
|
287
|
+
}
|
|
@@ -120,4 +120,26 @@ describe("receive-price node", function () {
|
|
|
120
120
|
n1.receive({ payload: nordpoolPrices.payload, data: nordpoolPrices.data });
|
|
121
121
|
});
|
|
122
122
|
});
|
|
123
|
+
it("should convert nordpool data in payload", function (done) {
|
|
124
|
+
const nordpoolPrices = require("./data/nordpool-prices-in-payload.json");
|
|
125
|
+
const flow = [
|
|
126
|
+
{
|
|
127
|
+
id: "n1",
|
|
128
|
+
type: "ps-receive-price",
|
|
129
|
+
name: "Receive prices",
|
|
130
|
+
wires: [["n2"]],
|
|
131
|
+
},
|
|
132
|
+
{ id: "n2", type: "helper" },
|
|
133
|
+
];
|
|
134
|
+
helper.load(receivePrices, flow, function () {
|
|
135
|
+
const n1 = helper.getNode("n1");
|
|
136
|
+
const n2 = helper.getNode("n2");
|
|
137
|
+
n2.on("input", function (msg) {
|
|
138
|
+
expect(msg.payload.priceData.length).toEqual(48);
|
|
139
|
+
expect(msg.payload.source).toEqual("Nordpool");
|
|
140
|
+
done();
|
|
141
|
+
});
|
|
142
|
+
n1.receive({ payload: nordpoolPrices.payload });
|
|
143
|
+
});
|
|
144
|
+
});
|
|
123
145
|
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunknode_red_contrib_power_saver=self.webpackChunknode_red_contrib_power_saver||[]).push([[143],{3131:(e,t,n)=>{n.d(t,{g:()=>s});var a=n(2009),d=n(6971),o=n(1598);const s=[a.Z,d.Z,o.Z]},9947:(e,t,n)=>{n.d(t,{p:()=>a});const a=[n(3051).Z]},4611:(e,t,n)=>{n.d(t,{l:()=>s});var a=n(8866),d=n(1263),o=n(6243);const s=[a.Z,d.Z,o.Z]},4150:(e,t,n)=>{n.d(t,{Z:()=>d});var a=n(6252);const d={404:(0,a.RC)((()=>n.e(491).then(n.bind(n,8491)))),Layout:(0,a.RC)((()=>n.e(293).then(n.bind(n,3293))))}},6056:(e,t,n)=>{n.d(t,{b:()=>d});var a=n(6252);const d={"v-8daa1a0e":(0,a.RC)((()=>n.e(509).then(n.bind(n,1829)))),"v-7c87f26e":(0,a.RC)((()=>n.e(889).then(n.bind(n,1787)))),"v-510ed0d4":(0,a.RC)((()=>n.e(495).then(n.bind(n,2195)))),"v-0aca7ba6":(0,a.RC)((()=>n.e(27).then(n.bind(n,1701)))),"v-61f728ca":(0,a.RC)((()=>n.e(283).then(n.bind(n,8156)))),"v-30acb564":(0,a.RC)((()=>n.e(901).then(n.bind(n,2870)))),"v-5db8da3a":(0,a.RC)((()=>n.e(625).then(n.bind(n,3350)))),"v-fffb8e28":(0,a.RC)((()=>n.e(807).then(n.bind(n,4595)))),"v-e8c55052":(0,a.RC)((()=>n.e(651).then(n.bind(n,4493)))),"v-b4a42144":(0,a.RC)((()=>n.e(407).then(n.bind(n,3838)))),"v-1ad821fa":(0,a.RC)((()=>n.e(22).then(n.bind(n,8718)))),"v-08683c60":(0,a.RC)((()=>n.e(332).then(n.bind(n,6250)))),"v-677dfaed":(0,a.RC)((()=>n.e(745).then(n.bind(n,1253)))),"v-0b5e3c8c":(0,a.RC)((()=>n.e(363).then(n.bind(n,6112)))),"v-4637f9e4":(0,a.RC)((()=>n.e(418).then(n.bind(n,1255)))),"v-5954bcb2":(0,a.RC)((()=>n.e(317).then(n.bind(n,8638)))),"v-3706649a":(0,a.RC)((()=>n.e(88).then(n.bind(n,8109))))}},9706:(e,t,n)=>{n.d(t,{T:()=>a});const a={"v-8daa1a0e":()=>n.e(509).then(n.bind(n,6464)).then((({data:e})=>e)),"v-7c87f26e":()=>n.e(889).then(n.bind(n,9459)).then((({data:e})=>e)),"v-510ed0d4":()=>n.e(495).then(n.bind(n,3707)).then((({data:e})=>e)),"v-0aca7ba6":()=>n.e(27).then(n.bind(n,7726)).then((({data:e})=>e)),"v-61f728ca":()=>n.e(283).then(n.bind(n,4773)).then((({data:e})=>e)),"v-30acb564":()=>n.e(901).then(n.bind(n,8835)).then((({data:e})=>e)),"v-5db8da3a":()=>n.e(625).then(n.bind(n,8682)).then((({data:e})=>e)),"v-fffb8e28":()=>n.e(807).then(n.bind(n,9570)).then((({data:e})=>e)),"v-e8c55052":()=>n.e(651).then(n.bind(n,3029)).then((({data:e})=>e)),"v-b4a42144":()=>n.e(407).then(n.bind(n,7952)).then((({data:e})=>e)),"v-1ad821fa":()=>n.e(22).then(n.bind(n,2336)).then((({data:e})=>e)),"v-08683c60":()=>n.e(332).then(n.bind(n,5845)).then((({data:e})=>e)),"v-677dfaed":()=>n.e(745).then(n.bind(n,7951)).then((({data:e})=>e)),"v-0b5e3c8c":()=>n.e(363).then(n.bind(n,3594)).then((({data:e})=>e)),"v-4637f9e4":()=>n.e(418).then(n.bind(n,3959)).then((({data:e})=>e)),"v-5954bcb2":()=>n.e(317).then(n.bind(n,1535)).then((({data:e})=>e)),"v-3706649a":()=>n.e(88).then(n.bind(n,1801)).then((({data:e})=>e))}},4634:(e,t,n)=>{n.d(t,{g:()=>d});var a=n(4802);const d=[["v-8daa1a0e","/","",["/index.html","/README.md"]],["v-7c87f26e","/contribute/","Contribute",["/contribute/index.html","/contribute/README.md"]],["v-510ed0d4","/changelog/","Change Log",["/changelog/index.html","/changelog/README.md"]],["v-0aca7ba6","/examples/","Examples",["/examples/index.html","/examples/README.md"]],["v-61f728ca","/examples/example-nordpool-current-state.html","Nord Pool and current state node",["/examples/example-nordpool-current-state","/examples/example-nordpool-current-state.md"]],["v-30acb564","/examples/example-nordpool-events-state.html","Nord Pool and events: state node",["/examples/example-nordpool-events-state","/examples/example-nordpool-events-state.md"]],["v-5db8da3a","/examples/example-tibber-mqtt.html","Tibber, a switch and MQTT",["/examples/example-tibber-mqtt","/examples/example-tibber-mqtt.md"]],["v-fffb8e28","/guide/","Guide",["/guide/index.html","/guide/README.md"]],["v-e8c55052","/nodes/","Nodes",["/nodes/index.html","/nodes/README.md"]],["v-b4a42144","/nodes/old-power-saver-doc.html","node-red-contrib-power-saver v2 (deprecated)",["/nodes/old-power-saver-doc","/nodes/old-power-saver-doc.md"]],["v-1ad821fa","/nodes/power-saver.html","power-saver",["/nodes/power-saver","/nodes/power-saver.md"]],["v-08683c60","/nodes/ps-elvia-add-tariff.html","ps-elvia-add-tariff",["/nodes/ps-elvia-add-tariff","/nodes/ps-elvia-add-tariff.md"]],["v-677dfaed","/nodes/ps-receive-price.html","ps-receive-price",["/nodes/ps-receive-price","/nodes/ps-receive-price.md"]],["v-0b5e3c8c","/nodes/ps-strategy-best-save.html","ps-strategy-best-save",["/nodes/ps-strategy-best-save","/nodes/ps-strategy-best-save.md"]],["v-4637f9e4","/nodes/ps-strategy-lowest-price.html","ps-strategy-lowest-price",["/nodes/ps-strategy-lowest-price","/nodes/ps-strategy-lowest-price.md"]],["v-5954bcb2","/nodes/strategy-input.html","Strategy input format",["/nodes/strategy-input","/nodes/strategy-input.md"]],["v-3706649a","/404.html","",["/404"]]].reduce(((e,[t,n,d,o])=>(e.push({name:t,path:n,component:a.Y,meta:{title:d}},...o.map((e=>({path:e,redirect:n})))),e)),[{name:"404",path:"/:catchAll(.*)",component:a.Y}])},5220:(e,t,n)=>{n.d(t,{H:()=>a});const a={base:"/node-red-contrib-power-saver/",lang:"en-US",title:"Power Saver",description:"A Node-RED note to save money on hourly changing power prices",head:[["link",{rel:"icon",href:"/euro.png"}]],locales:{}}},2232:(e,t,n)=>{n.d(t,{f:()=>a});const a={navbar:[{text:"Guide",link:"/guide/"},{text:"Nodes",link:"/nodes/"},{text:"Examples",link:"/examples/"},{text:"Contribute",link:"/contribute/"},{text:"Changes",link:"/changelog/"}],sidebar:{"/guide/":[{text:"Guide",children:["/guide/README.md"]}],"/nodes/":[{text:"Nodes",children:[{text:"Power Saver",link:"/nodes/power-saver.md"},{text:"Strategy nodes",children:["/nodes/ps-strategy-best-save.md","/nodes/ps-strategy-lowest-price.md"]},{text:"Utility nodes",children:["/nodes/ps-receive-price.md"]},{text:"Grid tariff nodes",children:["/nodes/ps-elvia-add-tariff.md"]}]},{text:"Data format",children:["/nodes/strategy-input.md"]}],"/examples/":[{text:"Examples",children:["/examples/example-nordpool-current-state.md","/examples/example-nordpool-events-state.md","/examples/example-tibber-mqtt.md"]}],"/contribute/":"auto","/changelog/":"auto"},locales:{"/":{selectLanguageName:"English"}},logo:null,darkMode:!0,repo:null,selectLanguageText:"Languages",selectLanguageAriaLabel:"Select language",sidebarDepth:2,editLink:!0,editLinkText:"Edit this page",lastUpdated:!0,lastUpdatedText:"Last Updated",contributors:!0,contributorsText:"Contributors",notFound:["There's nothing here.","How did we get here?","That's a Four-Oh-Four.","Looks like we've got some broken links."],backToHome:"Take me home",openInNewWindow:"open in new window",toggleDarkMode:"toggle dark mode",toggleSidebar:"toggle sidebar"}}},e=>{e.O(0,[460,812],(()=>(5698,e(e.s=5698)))),e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunknode_red_contrib_power_saver=self.webpackChunknode_red_contrib_power_saver||[]).push([[495],{3707:(e,i,l)=>{l.r(i),l.d(i,{data:()=>a});const a={key:"v-510ed0d4",path:"/changelog/",title:"Change Log",lang:"en-US",frontmatter:{sidebar:"auto"},excerpt:"",headers:[{level:2,title:"3.0.7",slug:"_3-0-7",children:[]},{level:2,title:"3.0.6",slug:"_3-0-6",children:[]},{level:2,title:"3.0.5",slug:"_3-0-5",children:[]},{level:2,title:"3.0.4",slug:"_3-0-4",children:[]},{level:2,title:"3.0.3",slug:"_3-0-3",children:[]},{level:2,title:"3.0.2",slug:"_3-0-2",children:[]},{level:2,title:"3.0.1",slug:"_3-0-1",children:[]},{level:2,title:"3.0.0",slug:"_3-0-0",children:[]},{level:2,title:"2.1.0",slug:"_2-1-0",children:[]},{level:2,title:"2.0.5",slug:"_2-0-5",children:[]},{level:2,title:"2.0.4",slug:"_2-0-4",children:[]},{level:2,title:"2.0.3",slug:"_2-0-3",children:[]},{level:2,title:"2.0.2",slug:"_2-0-2",children:[]},{level:2,title:"2.0.1",slug:"_2-0-1",children:[]},{level:2,title:"2.0.0",slug:"_2-0-0",children:[]},{level:2,title:"1.0.9",slug:"_1-0-9",children:[]}],filePathRelative:"changelog/README.md",git:{updatedTime:1639524284e3,contributors:[{name:"Otto Paulsen",email:"ottpau@gmail.com",commits:5},{name:"Otto Paulsen",email:"otto.paulsen@itema.no",commits:3}]}}},2195:(e,i,l)=>{l.r(i),l.d(i,{default:()=>t});const a=(0,l(6252).uE)('<h1 id="change-log" tabindex="-1"><a class="header-anchor" href="#change-log" aria-hidden="true">#</a> Change Log</h1><p>List the most significant changes, starting in version 1.0.9.</p><h2 id="_3-0-7" tabindex="-1"><a class="header-anchor" href="#_3-0-7" aria-hidden="true">#</a> 3.0.7</h2><ul><li>Fix Nord Pool current state node input.</li></ul><h2 id="_3-0-6" tabindex="-1"><a class="header-anchor" href="#_3-0-6" aria-hidden="true">#</a> 3.0.6</h2><ul><li>Remove non-existant node from package.json.</li></ul><h2 id="_3-0-5" tabindex="-1"><a class="header-anchor" href="#_3-0-5" aria-hidden="true">#</a> 3.0.5</h2><ul><li>Move dependencies to correct section (node_fetch and lodash.cloneDeep).</li></ul><h2 id="_3-0-4" tabindex="-1"><a class="header-anchor" href="#_3-0-4" aria-hidden="true">#</a> 3.0.4</h2><ul><li>Remove <code>null</code>-values from Nordpool data for <code>tomorrow</code>.</li></ul><h2 id="_3-0-3" tabindex="-1"><a class="header-anchor" href="#_3-0-3" aria-hidden="true">#</a> 3.0.3</h2><ul><li>Fix bug in lowest price strategy, when period ends at midnight.</li><li>Fix labels for hours on, so they do not have leading zero.</li><li>Fix so source should be visible in output 3.</li></ul><h2 id="_3-0-2" tabindex="-1"><a class="header-anchor" href="#_3-0-2" aria-hidden="true">#</a> 3.0.2</h2><ul><li>Bugfix in Lowest Price node (not successful)</li></ul><h2 id="_3-0-1" tabindex="-1"><a class="header-anchor" href="#_3-0-1" aria-hidden="true">#</a> 3.0.1</h2><ul><li>Fix so elvia subscripion key is stored as credential</li><li>Fix bug on config for strategy nodes. Config was not saved properly.</li><li>Remove double output bug, and better handling when hoursOn > period</li></ul><h2 id="_3-0-0" tabindex="-1"><a class="header-anchor" href="#_3-0-0" aria-hidden="true">#</a> 3.0.0</h2><ul><li>Deprecating old Power Saver node, adding multiple new nodes.</li><li>New node <code>ps-strategy-best-save</code> is replacing old node <code>Power Saver</code> together with the new <code>ps-receive-price</code> node.</li><li>Add new strategy node: <code>ps-strategy-lowest-price</code>.</li><li>Add new node: <code>ps-receive-price</code>.</li><li>Add gridd tariff for Elvia customers, using the <code>ps-elvia-add-tariff</code> node.</li><li>New documentation.</li><li>Change node category to Power Saver.</li></ul><h2 id="_2-1-0" tabindex="-1"><a class="header-anchor" href="#_2-1-0" aria-hidden="true">#</a> 2.1.0</h2><ul><li>Accept config as input, making it possible to dynamically change config</li><li>Fix dropdown for config value for selecting output when there is no schedule</li><li>Improve config screen and documentation</li></ul><h2 id="_2-0-5" tabindex="-1"><a class="header-anchor" href="#_2-0-5" aria-hidden="true">#</a> 2.0.5</h2><ul><li>Update links to examples</li></ul><h2 id="_2-0-4" tabindex="-1"><a class="header-anchor" href="#_2-0-4" aria-hidden="true">#</a> 2.0.4</h2><ul><li>Update doc and add examples</li></ul><h2 id="_2-0-3" tabindex="-1"><a class="header-anchor" href="#_2-0-3" aria-hidden="true">#</a> 2.0.3</h2><ul><li>Bugfix</li></ul><h2 id="_2-0-2" tabindex="-1"><a class="header-anchor" href="#_2-0-2" aria-hidden="true">#</a> 2.0.2</h2><ul><li>Fix so Nordpool data can be read directly from the current state node</li></ul><h2 id="_2-0-1" tabindex="-1"><a class="header-anchor" href="#_2-0-1" aria-hidden="true">#</a> 2.0.1</h2><ul><li>Fix bug that caused no schedule</li><li>Add config to output</li></ul><h2 id="_2-0-0" tabindex="-1"><a class="header-anchor" href="#_2-0-0" aria-hidden="true">#</a> 2.0.0</h2><ul><li>New and better algorithm to calculate savings, resulting in a better schedule.</li><li>Removed possibility to configure maximum hours to save per day, as this does not really make much sense.</li><li>Round savings to 4 decimals.</li><li>Set last savings hour to null when 0.</li></ul><h2 id="_1-0-9" tabindex="-1"><a class="header-anchor" href="#_1-0-9" aria-hidden="true">#</a> 1.0.9</h2><ul><li>Fix bug in saving last hour of the day.</li></ul>',34),d={},t=(0,l(3744).Z)(d,[["render",function(e,i){return a}]])},3744:(e,i)=>{i.Z=(e,i)=>{const l=e.__vccOpts||e;for(const[e,a]of i)l[e]=a;return l}}}]);
|