node-red-contrib-power-saver 2.0.4 → 3.0.1

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.
Files changed (176) hide show
  1. package/CHANGELOG.md +1 -33
  2. package/README.md +3 -191
  3. package/docs/.vuepress/config.js +67 -0
  4. package/docs/.vuepress/dist/404.html +15 -0
  5. package/docs/.vuepress/dist/assets/css/styles.e835bef6.css +8 -0
  6. package/docs/.vuepress/dist/assets/img/back-to-top.8b37f773.svg +1 -0
  7. package/docs/.vuepress/dist/assets/img/elvia-config-no-config.b4bb972c.png +0 -0
  8. package/docs/.vuepress/dist/assets/img/elvia-config-no-tariff.3f89aba8.png +0 -0
  9. package/docs/.vuepress/dist/assets/img/elvia-config-select-tariff.0f73fd56.png +0 -0
  10. package/docs/.vuepress/dist/assets/img/elvia-config-subscription-key.8be8ab8a.png +0 -0
  11. package/docs/.vuepress/dist/assets/img/elvia-flow.bae2a4d5.png +0 -0
  12. package/docs/.vuepress/dist/assets/img/example-flow-1.3ff3e23f.png +0 -0
  13. package/docs/.vuepress/dist/assets/img/example-flow-2.b653b58d.png +0 -0
  14. package/docs/.vuepress/dist/assets/img/migrate-best-save.f73420f6.png +0 -0
  15. package/docs/.vuepress/dist/assets/img/migrate-power-saver.aae13f9d.png +0 -0
  16. package/docs/.vuepress/dist/assets/img/node-power-saver.51ff2e5d.png +0 -0
  17. package/docs/.vuepress/dist/assets/img/node-ps-elvia-add-tariff.94ea2b09.png +0 -0
  18. package/docs/.vuepress/dist/assets/img/node-ps-receive-price.76eaa418.png +0 -0
  19. package/docs/.vuepress/dist/assets/img/node-ps-strategy-best-save.392292d5.png +0 -0
  20. package/docs/.vuepress/dist/assets/img/node-ps-strategy-lowest-price.3a4ad347.png +0 -0
  21. package/docs/.vuepress/dist/assets/img/power-saver-nordpool-current-state.bf14afde.png +0 -0
  22. package/docs/.vuepress/dist/assets/img/power-saver-nordpool-events-state.8c392507.png +0 -0
  23. package/docs/.vuepress/dist/assets/img/power-saver-tibber-mqtt.16891dd2.png +0 -0
  24. package/docs/.vuepress/dist/assets/js/293.5e967839.js +1 -0
  25. package/docs/.vuepress/dist/assets/js/491.c183eba3.js +1 -0
  26. package/docs/.vuepress/dist/assets/js/812.79dad458.js +2 -0
  27. package/docs/.vuepress/dist/assets/js/812.79dad458.js.LICENSE.txt +8 -0
  28. package/docs/.vuepress/dist/assets/js/app.80d4373d.js +1 -0
  29. package/docs/.vuepress/dist/assets/js/runtime~app.665b411c.js +1 -0
  30. package/docs/.vuepress/dist/assets/js/v-08683c60.9edcaa60.js +1 -0
  31. package/docs/.vuepress/dist/assets/js/v-0aca7ba6.5eca5160.js +1 -0
  32. package/docs/.vuepress/dist/assets/js/v-0b5e3c8c.c02472fb.js +1 -0
  33. package/docs/.vuepress/dist/assets/js/v-1ad821fa.a628e907.js +1 -0
  34. package/docs/.vuepress/dist/assets/js/v-30acb564.80b4190d.js +1 -0
  35. package/docs/.vuepress/dist/assets/js/v-3706649a.d7f73384.js +1 -0
  36. package/docs/.vuepress/dist/assets/js/v-4637f9e4.df94c6ea.js +1 -0
  37. package/docs/.vuepress/dist/assets/js/v-510ed0d4.a78d8542.js +1 -0
  38. package/docs/.vuepress/dist/assets/js/v-5954bcb2.4f4712f3.js +1 -0
  39. package/docs/.vuepress/dist/assets/js/v-5db8da3a.2e49b81a.js +1 -0
  40. package/docs/.vuepress/dist/assets/js/v-61f728ca.7b545524.js +1 -0
  41. package/docs/.vuepress/dist/assets/js/v-677dfaed.756e0fb5.js +1 -0
  42. package/docs/.vuepress/dist/assets/js/v-7c87f26e.57507077.js +1 -0
  43. package/docs/.vuepress/dist/assets/js/v-8daa1a0e.1ea39527.js +1 -0
  44. package/docs/.vuepress/dist/assets/js/v-b4a42144.a812c440.js +1 -0
  45. package/docs/.vuepress/dist/assets/js/v-e8c55052.30f30acd.js +1 -0
  46. package/docs/.vuepress/dist/assets/js/v-fffb8e28.850019c1.js +1 -0
  47. package/docs/.vuepress/dist/changelog/index.html +15 -0
  48. package/docs/.vuepress/dist/contribute/index.html +15 -0
  49. package/docs/.vuepress/dist/euro.png +0 -0
  50. package/docs/.vuepress/dist/examples/example-nordpool-current-state.html +169 -0
  51. package/docs/.vuepress/dist/examples/example-nordpool-events-state.html +173 -0
  52. package/docs/.vuepress/dist/examples/example-tibber-mqtt.html +182 -0
  53. package/docs/.vuepress/dist/examples/index.html +15 -0
  54. package/docs/.vuepress/dist/guide/index.html +52 -0
  55. package/docs/.vuepress/dist/index.html +15 -0
  56. package/docs/.vuepress/dist/logo.png +0 -0
  57. package/docs/.vuepress/dist/nodes/index.html +15 -0
  58. package/docs/.vuepress/dist/nodes/old-power-saver-doc.html +97 -0
  59. package/docs/.vuepress/dist/nodes/power-saver.html +15 -0
  60. package/docs/.vuepress/dist/nodes/ps-elvia-add-tariff.html +15 -0
  61. package/docs/.vuepress/dist/nodes/ps-receive-price.html +80 -0
  62. package/docs/.vuepress/dist/nodes/ps-strategy-best-save.html +65 -0
  63. package/docs/.vuepress/dist/nodes/ps-strategy-lowest-price.html +89 -0
  64. package/docs/.vuepress/dist/nodes/strategy-input.html +40 -0
  65. package/docs/.vuepress/public/euro.png +0 -0
  66. package/docs/.vuepress/public/logo.png +0 -0
  67. package/docs/README.md +32 -0
  68. package/docs/changelog/README.md +61 -0
  69. package/docs/contribute/README.md +39 -0
  70. package/docs/examples/README.md +5 -0
  71. package/docs/examples/example-nordpool-current-state.md +166 -0
  72. package/docs/examples/example-nordpool-events-state.md +170 -0
  73. package/docs/examples/example-tibber-mqtt.md +179 -0
  74. package/docs/guide/README.md +202 -0
  75. package/docs/images/all-nodes.png +0 -0
  76. package/docs/images/best-save-config.png +0 -0
  77. package/docs/images/elvia-add-tariff-node-used.png +0 -0
  78. package/docs/images/elvia-config-no-config.png +0 -0
  79. package/docs/images/elvia-config-no-tariff.png +0 -0
  80. package/docs/images/elvia-config-select-tariff.png +0 -0
  81. package/docs/images/elvia-config-subscription-key.png +0 -0
  82. package/docs/images/elvia-flow.png +0 -0
  83. package/docs/images/elvia-tariff-config.png +0 -0
  84. package/docs/images/euro.png +0 -0
  85. package/docs/images/example-flow-1.png +0 -0
  86. package/docs/images/example-flow-2.png +0 -0
  87. package/docs/images/logo.png +0 -0
  88. package/docs/images/lowest-price-config.png +0 -0
  89. package/docs/images/migrate-best-save.png +0 -0
  90. package/docs/images/migrate-power-saver.png +0 -0
  91. package/docs/images/node-power-saver.png +0 -0
  92. package/docs/images/node-ps-elvia-add-tariff.png +0 -0
  93. package/docs/images/node-ps-elvia-tariff-types.png +0 -0
  94. package/docs/images/node-ps-elvia-tariff.png +0 -0
  95. package/docs/images/node-ps-receive-price.png +0 -0
  96. package/docs/images/node-ps-strategy-best-save.png +0 -0
  97. package/docs/images/node-ps-strategy-lowest-price.png +0 -0
  98. package/{doc → docs/images}/node-red-contrib-power-saver-flow.png +0 -0
  99. package/docs/images/power-saver-nordpool-current-state.png +0 -0
  100. package/docs/images/power-saver-nordpool-events-state.png +0 -0
  101. package/docs/images/power-saver-tibber-mqtt.png +0 -0
  102. package/docs/nodes/README.md +53 -0
  103. package/docs/nodes/old-power-saver-doc.md +231 -0
  104. package/docs/nodes/power-saver.md +23 -0
  105. package/docs/nodes/ps-elvia-add-tariff.md +52 -0
  106. package/docs/nodes/ps-receive-price.md +153 -0
  107. package/docs/nodes/ps-strategy-best-save.md +142 -0
  108. package/docs/nodes/ps-strategy-lowest-price.md +165 -0
  109. package/docs/nodes/strategy-input.md +39 -0
  110. package/package.json +19 -4
  111. package/src/elvia/elvia-add-tariff.html +70 -0
  112. package/src/elvia/elvia-add-tariff.js +47 -0
  113. package/src/elvia/elvia-api.js +61 -0
  114. package/src/elvia/elvia-config.html +46 -0
  115. package/src/elvia/elvia-config.js +19 -0
  116. package/src/elvia/elvia-tariff-types.html +34 -0
  117. package/src/elvia/elvia-tariff-types.js +25 -0
  118. package/src/elvia/elvia-tariff.html +89 -0
  119. package/src/elvia/elvia-tariff.js +22 -0
  120. package/src/elvia/icons/elvia_hvite.svg +4 -0
  121. package/src/elvia/icons/elvia_positive_4 copy.svg +4 -0
  122. package/src/handle-input.js +162 -0
  123. package/src/power-saver.html +116 -0
  124. package/{power-saver.js → src/power-saver.js} +90 -72
  125. package/src/receive-price-functions.js +99 -0
  126. package/src/receive-price.html +30 -0
  127. package/src/receive-price.js +21 -0
  128. package/src/strategy-best-save-functions.js +110 -0
  129. package/src/strategy-best-save.html +116 -0
  130. package/src/strategy-best-save.js +95 -0
  131. package/src/strategy-lowest-price-functions.js +35 -0
  132. package/src/strategy-lowest-price.html +168 -0
  133. package/src/strategy-lowest-price.js +125 -0
  134. package/{utils.js → src/utils.js} +59 -104
  135. package/test/data/adjustedResult.js +302 -0
  136. package/test/data/adjustedResult_old.js +154 -0
  137. package/test/data/best-save-result.json +357 -0
  138. package/test/data/converted-prices.json +196 -0
  139. package/test/data/elvia-input-grid-tariff.json +760 -0
  140. package/test/data/elvia-input-power-prices.json +194 -0
  141. package/test/data/elvia-output-add-tariff.json +290 -0
  142. package/test/data/lowest-price-result-cont.json +18 -0
  143. package/test/data/lowest-price-result-split-allday.json +21 -0
  144. package/test/data/lowest-price-result-split-allday10.json +20 -0
  145. package/test/data/lowest-price-result-split.json +20 -0
  146. package/test/data/nordpool-current-state-prices.json +283 -0
  147. package/test/data/nordpool-event-prices.json +574 -0
  148. package/test/data/reconfigResult.js +315 -0
  149. package/test/data/reconfigResult_old.js +141 -0
  150. package/test/data/result.js +1 -0
  151. package/test/data/tibber-prices-single-home.json +64 -0
  152. package/test/data/tibber-prices.json +124 -0
  153. package/test/data/{tibber_result.json → tibber-result.json} +2 -1
  154. package/test/elvia.test.js +26 -0
  155. package/test/mostSavedStrategy.test.js +22 -55
  156. package/test/power-saver.test.js +4 -38
  157. package/test/receive-price-functions.test.js +153 -0
  158. package/test/receive-price.test.js +122 -0
  159. package/test/send-config-input.test.js +121 -0
  160. package/test/strategy-best-save-test-utils.js +32 -0
  161. package/test/strategy-best-save.test.js +103 -0
  162. package/test/strategy-lowest-price-functions.test.js +40 -0
  163. package/test/strategy-lowest-price.test.js +472 -0
  164. package/test/test-utils.js +106 -0
  165. package/test/utils.test.js +53 -163
  166. package/doc/example-nordpool-current-state.md +0 -166
  167. package/doc/example-nordpool-events-state.md +0 -153
  168. package/doc/example-tibber-mqtt.md +0 -189
  169. package/doc/power-saver-nordpool-current-state.png +0 -0
  170. package/doc/power-saver-nordpool-events-state.png +0 -0
  171. package/doc/power-saver-tibber-mqtt.png +0 -0
  172. package/mostSavedStrategy.js +0 -84
  173. package/mostSavedStrategy_v2.js +0 -68
  174. package/power-saver.html +0 -259
  175. package/test/data/tibber_data.json +0 -412
  176. package/test/data/tibber_prices.json +0 -412
@@ -0,0 +1,302 @@
1
+ module.exports = {
2
+ schedule: [],
3
+ hours: [
4
+ {
5
+ price: 0.2494,
6
+ onOff: false,
7
+ start: "2021-06-20T01:50:00.000+02:00",
8
+ saving: 0.0395,
9
+ },
10
+ {
11
+ price: 0.2209,
12
+ onOff: false,
13
+ start: "2021-06-20T01:50:00.010+02:00",
14
+ saving: 0.011,
15
+ },
16
+ {
17
+ price: 0.2099,
18
+ onOff: true,
19
+ start: "2021-06-20T01:50:00.020+02:00",
20
+ saving: null,
21
+ },
22
+ {
23
+ price: 0.219,
24
+ onOff: true,
25
+ start: "2021-06-20T01:50:00.030+02:00",
26
+ saving: null,
27
+ },
28
+ {
29
+ price: 0.2614,
30
+ onOff: true,
31
+ start: "2021-06-20T01:50:00.040+02:00",
32
+ saving: null,
33
+ },
34
+ {
35
+ price: 0.4426,
36
+ onOff: true,
37
+ start: "2021-06-20T01:50:00.050+02:00",
38
+ saving: null,
39
+ },
40
+ {
41
+ price: 0.5433,
42
+ onOff: true,
43
+ start: "2021-06-20T01:50:00.060+02:00",
44
+ saving: null,
45
+ },
46
+ {
47
+ price: 0.5667,
48
+ onOff: true,
49
+ start: "2021-06-20T01:50:00.070+02:00",
50
+ saving: null,
51
+ },
52
+ {
53
+ price: 0.5847,
54
+ onOff: true,
55
+ start: "2021-06-20T01:50:00.080+02:00",
56
+ saving: null,
57
+ },
58
+ {
59
+ price: 0.5762,
60
+ onOff: true,
61
+ start: "2021-06-20T01:50:00.090+02:00",
62
+ saving: null,
63
+ },
64
+ {
65
+ price: 0.5391,
66
+ onOff: true,
67
+ start: "2021-06-20T01:50:00.100+02:00",
68
+ saving: null,
69
+ },
70
+ {
71
+ price: 0.5124,
72
+ onOff: true,
73
+ start: "2021-06-20T01:50:00.110+02:00",
74
+ saving: null,
75
+ },
76
+ {
77
+ price: 0.504,
78
+ onOff: true,
79
+ start: "2021-06-20T01:50:00.120+02:00",
80
+ saving: null,
81
+ },
82
+ {
83
+ price: 0.5057,
84
+ onOff: true,
85
+ start: "2021-06-20T01:50:00.130+02:00",
86
+ saving: null,
87
+ },
88
+ {
89
+ price: 0.5066,
90
+ onOff: true,
91
+ start: "2021-06-20T01:50:00.140+02:00",
92
+ saving: null,
93
+ },
94
+ {
95
+ price: 0.5136,
96
+ onOff: true,
97
+ start: "2021-06-20T01:50:00.150+02:00",
98
+ saving: null,
99
+ },
100
+ {
101
+ price: 0.5143,
102
+ onOff: true,
103
+ start: "2021-06-20T01:50:00.160+02:00",
104
+ saving: null,
105
+ },
106
+ {
107
+ price: 0.5306,
108
+ onOff: true,
109
+ start: "2021-06-20T01:50:00.170+02:00",
110
+ saving: null,
111
+ },
112
+ {
113
+ price: 0.5534,
114
+ onOff: true,
115
+ start: "2021-06-20T01:50:00.180+02:00",
116
+ saving: null,
117
+ },
118
+ {
119
+ price: 0.5511,
120
+ onOff: true,
121
+ start: "2021-06-20T01:50:00.190+02:00",
122
+ saving: null,
123
+ },
124
+ {
125
+ price: 0.5491,
126
+ onOff: true,
127
+ start: "2021-06-20T01:50:00.200+02:00",
128
+ saving: null,
129
+ },
130
+ {
131
+ price: 0.5485,
132
+ onOff: true,
133
+ start: "2021-06-20T01:50:00.210+02:00",
134
+ saving: null,
135
+ },
136
+ {
137
+ price: 0.5481,
138
+ onOff: true,
139
+ start: "2021-06-20T01:50:00.220+02:00",
140
+ saving: null,
141
+ },
142
+ {
143
+ price: 0.5218,
144
+ onOff: true,
145
+ start: "2021-06-20T01:50:00.230+02:00",
146
+ saving: null,
147
+ },
148
+ {
149
+ price: 0.4533,
150
+ onOff: true,
151
+ start: "2021-06-20T01:50:00.240+02:00",
152
+ saving: null,
153
+ },
154
+ {
155
+ price: 0.4196,
156
+ onOff: true,
157
+ start: "2021-06-20T01:50:00.250+02:00",
158
+ saving: null,
159
+ },
160
+ {
161
+ price: 0.4037,
162
+ onOff: true,
163
+ start: "2021-06-20T01:50:00.260+02:00",
164
+ saving: null,
165
+ },
166
+ {
167
+ price: 0.3829,
168
+ onOff: true,
169
+ start: "2021-06-20T01:50:00.270+02:00",
170
+ saving: null,
171
+ },
172
+ {
173
+ price: 0.4555,
174
+ onOff: true,
175
+ start: "2021-06-20T01:50:00.280+02:00",
176
+ saving: null,
177
+ },
178
+ {
179
+ price: 0.4721,
180
+ onOff: true,
181
+ start: "2021-06-20T01:50:00.290+02:00",
182
+ saving: null,
183
+ },
184
+ {
185
+ price: 0.4903,
186
+ onOff: true,
187
+ start: "2021-06-20T01:50:00.300+02:00",
188
+ saving: null,
189
+ },
190
+ {
191
+ price: 0.5028,
192
+ onOff: true,
193
+ start: "2021-06-20T01:50:00.310+02:00",
194
+ saving: null,
195
+ },
196
+ {
197
+ price: 0.5163,
198
+ onOff: true,
199
+ start: "2021-06-20T01:50:00.320+02:00",
200
+ saving: null,
201
+ },
202
+ {
203
+ price: 0.5264,
204
+ onOff: true,
205
+ start: "2021-06-20T01:50:00.330+02:00",
206
+ saving: null,
207
+ },
208
+ {
209
+ price: 0.5346,
210
+ onOff: true,
211
+ start: "2021-06-20T01:50:00.340+02:00",
212
+ saving: null,
213
+ },
214
+ {
215
+ price: 0.5224,
216
+ onOff: true,
217
+ start: "2021-06-20T01:50:00.350+02:00",
218
+ saving: null,
219
+ },
220
+ {
221
+ price: 0.5071,
222
+ onOff: true,
223
+ start: "2021-06-20T01:50:00.360+02:00",
224
+ saving: null,
225
+ },
226
+ {
227
+ price: 0.5045,
228
+ onOff: true,
229
+ start: "2021-06-20T01:50:00.370+02:00",
230
+ saving: null,
231
+ },
232
+ {
233
+ price: 0.5024,
234
+ onOff: true,
235
+ start: "2021-06-20T01:50:00.380+02:00",
236
+ saving: null,
237
+ },
238
+ {
239
+ price: 0.5038,
240
+ onOff: true,
241
+ start: "2021-06-20T01:50:00.390+02:00",
242
+ saving: null,
243
+ },
244
+ {
245
+ price: 0.5118,
246
+ onOff: true,
247
+ start: "2021-06-20T01:50:00.400+02:00",
248
+ saving: null,
249
+ },
250
+ {
251
+ price: 0.5111,
252
+ onOff: true,
253
+ start: "2021-06-20T01:50:00.410+02:00",
254
+ saving: null,
255
+ },
256
+ {
257
+ price: 0.5108,
258
+ onOff: true,
259
+ start: "2021-06-20T01:50:00.420+02:00",
260
+ saving: null,
261
+ },
262
+ {
263
+ price: 0.5055,
264
+ onOff: true,
265
+ start: "2021-06-20T01:50:00.430+02:00",
266
+ saving: null,
267
+ },
268
+ {
269
+ price: 0.5042,
270
+ onOff: true,
271
+ start: "2021-06-20T01:50:00.440+02:00",
272
+ saving: null,
273
+ },
274
+ {
275
+ price: 0.5259,
276
+ onOff: true,
277
+ start: "2021-06-20T01:50:00.450+02:00",
278
+ saving: null,
279
+ },
280
+ {
281
+ price: 0.5282,
282
+ onOff: true,
283
+ start: "2021-06-20T01:50:00.460+02:00",
284
+ saving: null,
285
+ },
286
+ {
287
+ price: 0.5252,
288
+ onOff: true,
289
+ start: "2021-06-20T01:50:00.470+02:00",
290
+ saving: null,
291
+ },
292
+ ],
293
+ source: undefined,
294
+ config: {
295
+ maxHoursToSaveInSequence: 5,
296
+ minHoursOnAfterMaxSequenceSaved: 2,
297
+ minSaving: 0.25,
298
+ sendCurrentValueWhenRescheduling: undefined,
299
+ outputIfNoSchedule: false,
300
+ scheduleOnlyFromCurrentTime: true,
301
+ },
302
+ };
@@ -0,0 +1,154 @@
1
+ module.exports = {
2
+ schedule: [
3
+ {
4
+ time: "2021-06-20T01:50:00.080+02:00",
5
+ value: true,
6
+ },
7
+ {
8
+ time: "2021-06-20T01:50:00.100+02:00",
9
+ value: false,
10
+ },
11
+ {
12
+ time: "2021-06-20T01:50:00.120+02:00",
13
+ value: true,
14
+ },
15
+ {
16
+ time: "2021-06-20T01:50:00.130+02:00",
17
+ value: false,
18
+ },
19
+ {
20
+ time: "2021-06-20T01:50:00.180+02:00",
21
+ value: true,
22
+ },
23
+ ],
24
+ hours: [
25
+ {
26
+ price: 0.3,
27
+ onOff: true,
28
+ start: "2021-06-20T01:50:00.000+02:00",
29
+ saving: null,
30
+ },
31
+ {
32
+ price: 0.4,
33
+ onOff: true,
34
+ start: "2021-06-20T01:50:00.010+02:00",
35
+ saving: null,
36
+ },
37
+ {
38
+ price: 0.8,
39
+ onOff: true,
40
+ start: "2021-06-20T01:50:00.020+02:00",
41
+ saving: null,
42
+ },
43
+ {
44
+ price: 0.9,
45
+ onOff: false,
46
+ start: "2021-06-20T01:50:00.030+02:00",
47
+ saving: 0.7,
48
+ },
49
+ {
50
+ price: 0.7,
51
+ onOff: false,
52
+ start: "2021-06-20T01:50:00.040+02:00",
53
+ saving: 0.5,
54
+ },
55
+ {
56
+ price: 0.6,
57
+ onOff: false,
58
+ start: "2021-06-20T01:50:00.050+02:00",
59
+ saving: 0.4,
60
+ },
61
+ {
62
+ price: 0.5,
63
+ onOff: false,
64
+ start: "2021-06-20T01:50:00.060+02:00",
65
+ saving: 0.3,
66
+ },
67
+ {
68
+ price: 0.75,
69
+ onOff: false,
70
+ start: "2021-06-20T01:50:00.070+02:00",
71
+ saving: 0.55,
72
+ },
73
+ {
74
+ price: 0.2,
75
+ onOff: true,
76
+ start: "2021-06-20T01:50:00.080+02:00",
77
+ saving: null,
78
+ },
79
+ {
80
+ price: 0.85,
81
+ onOff: true,
82
+ start: "2021-06-20T01:50:00.090+02:00",
83
+ saving: null,
84
+ },
85
+ {
86
+ price: 1.5,
87
+ onOff: false,
88
+ start: "2021-06-20T01:50:00.100+02:00",
89
+ saving: 0.7,
90
+ },
91
+ {
92
+ price: 1.4,
93
+ onOff: false,
94
+ start: "2021-06-20T01:50:00.110+02:00",
95
+ saving: 0.6,
96
+ },
97
+ {
98
+ price: 0.8,
99
+ onOff: true,
100
+ start: "2021-06-20T01:50:00.120+02:00",
101
+ saving: null,
102
+ },
103
+ {
104
+ price: 0.9,
105
+ onOff: false,
106
+ start: "2021-06-20T01:50:00.130+02:00",
107
+ saving: 0.7,
108
+ },
109
+ {
110
+ price: 0.7,
111
+ onOff: false,
112
+ start: "2021-06-20T01:50:00.140+02:00",
113
+ saving: 0.5,
114
+ },
115
+ {
116
+ price: 0.6,
117
+ onOff: false,
118
+ start: "2021-06-20T01:50:00.150+02:00",
119
+ saving: 0.4,
120
+ },
121
+ {
122
+ price: 0.5,
123
+ onOff: false,
124
+ start: "2021-06-20T01:50:00.160+02:00",
125
+ saving: 0.3,
126
+ },
127
+ {
128
+ price: 0.75,
129
+ onOff: false,
130
+ start: "2021-06-20T01:50:00.170+02:00",
131
+ saving: 0.55,
132
+ },
133
+ {
134
+ price: 0.2,
135
+ onOff: true,
136
+ start: "2021-06-20T01:50:00.180+02:00",
137
+ saving: null,
138
+ },
139
+ {
140
+ price: 0.85,
141
+ onOff: true,
142
+ start: "2021-06-20T01:50:00.190+02:00",
143
+ saving: null,
144
+ },
145
+ ],
146
+ source: "Other",
147
+ config: {
148
+ maxHoursToSaveInSequence: 5,
149
+ minHoursOnAfterMaxSequenceSaved: 2,
150
+ minSaving: 0.25,
151
+ outputIfNoSchedule: false,
152
+ scheduleOnlyFromCurrentTime: true,
153
+ },
154
+ };