node-red-contrib-power-saver 3.4.1 → 3.4.4

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 (172) hide show
  1. package/README.md +1 -1
  2. package/docs/.vuepress/components/BestSaveVerificator.vue +17 -7
  3. package/docs/.vuepress/components/DonateButtons.vue +0 -1
  4. package/docs/.vuepress/config.js +16 -23
  5. package/docs/.vuepress/dist/404.html +6 -6
  6. package/docs/.vuepress/dist/Ukraine-heart-shape-flag.png +0 -0
  7. package/docs/.vuepress/dist/assets/404.32f46df8.js +1 -0
  8. package/docs/.vuepress/dist/assets/404.html.bee13de6.js +1 -0
  9. package/docs/.vuepress/dist/assets/404.html.f166316b.js +1 -0
  10. package/docs/.vuepress/dist/assets/BestSaveVerificator.574001b7.js +1 -0
  11. package/docs/.vuepress/dist/assets/DonateButtons.ab660315.js +1 -0
  12. package/docs/.vuepress/dist/assets/Layout.1b8eeaf1.js +1 -0
  13. package/docs/.vuepress/dist/assets/{img/add-tariff-flow.eb700d4f.png → add-tariff-flow.9e258f5b.png} +0 -0
  14. package/docs/.vuepress/dist/assets/app.b3d8926b.js +8 -0
  15. package/docs/.vuepress/dist/assets/{img/back-to-top.8b37f773.svg → back-to-top.8efcbe56.svg} +0 -0
  16. package/docs/.vuepress/dist/assets/{img/best-save-config.79a2f39a.png → best-save-config.70d29386.png} +0 -0
  17. package/docs/.vuepress/dist/assets/best-save-viewer.html.bb64949a.js +1 -0
  18. package/docs/.vuepress/dist/assets/best-save-viewer.html.e897b3ac.js +1 -0
  19. package/docs/.vuepress/dist/assets/{img/copy-payload-best-save.b9192985.png → copy-payload-best-save.8b51cdf4.png} +0 -0
  20. package/docs/.vuepress/dist/assets/{img/elvia-config-no-config.b4bb972c.png → elvia-config-no-config.7ea35c3b.png} +0 -0
  21. package/docs/.vuepress/dist/assets/{img/elvia-config-no-tariff.3f89aba8.png → elvia-config-no-tariff.a208a0f3.png} +0 -0
  22. package/docs/.vuepress/dist/assets/{img/elvia-config-select-tariff.0f73fd56.png → elvia-config-select-tariff.48562d43.png} +0 -0
  23. package/docs/.vuepress/dist/assets/{img/elvia-config-subscription-key.8be8ab8a.png → elvia-config-subscription-key.3368b931.png} +0 -0
  24. package/docs/.vuepress/dist/assets/{img/elvia-flow.bae2a4d5.png → elvia-flow.a8b126d6.png} +0 -0
  25. package/docs/.vuepress/dist/assets/example-cascade-temperature-control.html.3632cc6c.js +272 -0
  26. package/docs/.vuepress/dist/assets/example-cascade-temperature-control.html.5a363ecf.js +1 -0
  27. package/docs/.vuepress/dist/assets/{img/example-flow-1.3ff3e23f.png → example-flow-1.971bbb87.png} +0 -0
  28. package/docs/.vuepress/dist/assets/{img/example-flow-2.b653b58d.png → example-flow-2.a0c62ed7.png} +0 -0
  29. package/docs/.vuepress/dist/assets/example-heat-capacitor.html.89cdea26.js +1 -0
  30. package/docs/.vuepress/dist/assets/example-heat-capacitor.html.b87ab267.js +215 -0
  31. package/docs/.vuepress/dist/assets/example-next-schedule-entity.html.dd06a4d6.js +11 -0
  32. package/docs/.vuepress/dist/assets/example-next-schedule-entity.html.fc8e9124.js +1 -0
  33. package/docs/.vuepress/dist/assets/example-nordpool-current-state.html.278abccb.js +1 -0
  34. package/docs/.vuepress/dist/assets/example-nordpool-current-state.html.8eca9b26.js +174 -0
  35. package/docs/.vuepress/dist/assets/example-nordpool-events-state.html.05c3331c.js +159 -0
  36. package/docs/.vuepress/dist/assets/example-nordpool-events-state.html.47dbda83.js +1 -0
  37. package/docs/.vuepress/dist/assets/example-tibber-mqtt.html.bed6459b.js +1 -0
  38. package/docs/.vuepress/dist/assets/example-tibber-mqtt.html.ce7f09e2.js +167 -0
  39. package/docs/.vuepress/dist/assets/{img/heat-capacitor-temperatureVsPrice.6e74905b.png → heat-capacitor-temperatureVsPrice.19bc8932.png} +0 -0
  40. package/docs/.vuepress/dist/assets/index.html.21bfa52e.js +1 -0
  41. package/docs/.vuepress/dist/assets/index.html.350682d1.js +38 -0
  42. package/docs/.vuepress/dist/assets/index.html.3bbc4fe4.js +1 -0
  43. package/docs/.vuepress/dist/assets/index.html.485a4abc.js +1 -0
  44. package/docs/.vuepress/dist/assets/index.html.49024575.js +1 -0
  45. package/docs/.vuepress/dist/assets/index.html.4c0ec52b.js +1 -0
  46. package/docs/.vuepress/dist/assets/index.html.54f6072c.js +1 -0
  47. package/docs/.vuepress/dist/assets/index.html.75c4e015.js +1 -0
  48. package/docs/.vuepress/dist/assets/index.html.7857db23.js +1 -0
  49. package/docs/.vuepress/dist/assets/index.html.797b027e.js +1 -0
  50. package/docs/.vuepress/dist/assets/index.html.88f59477.js +1 -0
  51. package/docs/.vuepress/dist/assets/index.html.c4e8bf36.js +1 -0
  52. package/docs/.vuepress/dist/assets/index.html.c98d742c.js +1 -0
  53. package/docs/.vuepress/dist/assets/index.html.edb1389f.js +1 -0
  54. package/docs/.vuepress/dist/assets/{img/lowest-price-config.6d66a8c2.png → lowest-price-config.d7043621.png} +0 -0
  55. package/docs/.vuepress/dist/assets/migrate-best-save.dcc20d06.js +1 -0
  56. package/docs/.vuepress/dist/assets/{img/migrate-best-save.f73420f6.png → migrate-best-save.ec036b00.png} +0 -0
  57. package/docs/.vuepress/dist/assets/{img/migrate-power-saver.aae13f9d.png → migrate-power-saver.98ee9f2e.png} +0 -0
  58. package/docs/.vuepress/dist/assets/mysterious-plan.687d8b75.png +0 -0
  59. package/docs/.vuepress/dist/assets/{img/next-schedule-entity.4406856a.png → next-schedule-entity.418ab6ec.png} +0 -0
  60. package/docs/.vuepress/dist/assets/{img/next-schedule-flow.413ad62b.png → next-schedule-flow.862dea60.png} +0 -0
  61. package/docs/.vuepress/dist/assets/{img/next-schedule-sensor.eb896bdd.png → next-schedule-sensor.87198baf.png} +0 -0
  62. package/docs/.vuepress/dist/assets/node-power-saver.3a115c24.js +1 -0
  63. package/docs/.vuepress/dist/assets/{img/node-power-saver.51ff2e5d.png → node-power-saver.feb2d4fb.png} +0 -0
  64. package/docs/.vuepress/dist/assets/{img/node-ps-elvia-add-tariff.94ea2b09.png → node-ps-elvia-add-tariff.0bff05a9.png} +0 -0
  65. package/docs/.vuepress/dist/assets/node-ps-elvia-add-tariff.57baddc7.js +1 -0
  66. package/docs/.vuepress/dist/assets/node-ps-general-add-tariff.17755af1.js +1 -0
  67. package/docs/.vuepress/dist/assets/{img/node-ps-general-add-tariff.a3cf6f06.png → node-ps-general-add-tariff.5a5c98c6.png} +0 -0
  68. package/docs/.vuepress/dist/assets/{img/node-ps-receive-price.76eaa418.png → node-ps-receive-price.3587e62e.png} +0 -0
  69. package/docs/.vuepress/dist/assets/node-ps-receive-price.dbc5e137.js +1 -0
  70. package/docs/.vuepress/dist/assets/{img/node-ps-strategy-best-save.392292d5.png → node-ps-strategy-best-save.13861759.png} +0 -0
  71. package/docs/.vuepress/dist/assets/node-ps-strategy-best-save.516d9e66.js +1 -0
  72. package/docs/.vuepress/dist/assets/{img/node-ps-strategy-heat-capacitor-cascade-control.2e75ed9e.png → node-ps-strategy-heat-capacitor-cascade-control.f35cce75.png} +0 -0
  73. package/docs/.vuepress/dist/assets/node-ps-strategy-heat-capacitor-simple-flow-example.099aa155.js +1 -0
  74. package/docs/.vuepress/dist/assets/{img/node-ps-strategy-heat-capacitor-simple-flow-example.29d9bf59.png → node-ps-strategy-heat-capacitor-simple-flow-example.5b712b3b.png} +0 -0
  75. package/docs/.vuepress/dist/assets/node-ps-strategy-heat-capacitor.e7736c9e.js +1 -0
  76. package/docs/.vuepress/dist/assets/{img/node-ps-strategy-lowest-price.3a4ad347.png → node-ps-strategy-lowest-price.4e5c38ee.png} +0 -0
  77. package/docs/.vuepress/dist/assets/node-ps-strategy-lowest-price.83209fac.js +1 -0
  78. package/docs/.vuepress/dist/assets/old-power-saver-doc.html.c7324541.js +1 -0
  79. package/docs/.vuepress/dist/assets/old-power-saver-doc.html.f428e475.js +83 -0
  80. package/docs/.vuepress/dist/assets/{img/oven-setpoint-calculation.5bda0eec.png → oven-setpoint-calculation.47b65429.png} +0 -0
  81. package/docs/.vuepress/dist/assets/{img/overshoot-time.b3b5d70e.png → overshoot-time.2c4e3929.png} +0 -0
  82. package/docs/.vuepress/dist/assets/plugin-vue_export-helper.21dcd24c.js +1 -0
  83. package/docs/.vuepress/dist/assets/{img/power-saver-nordpool-current-state.bf14afde.png → power-saver-nordpool-current-state.cbe8e48a.png} +0 -0
  84. package/docs/.vuepress/dist/assets/{img/power-saver-nordpool-events-state.8c392507.png → power-saver-nordpool-events-state.a764b813.png} +0 -0
  85. package/docs/.vuepress/dist/assets/{img/power-saver-tibber-mqtt.16891dd2.png → power-saver-tibber-mqtt.c04fb150.png} +0 -0
  86. package/docs/.vuepress/dist/assets/power-saver.html.4baca6ba.js +1 -0
  87. package/docs/.vuepress/dist/assets/power-saver.html.875a1f0e.js +1 -0
  88. package/docs/.vuepress/dist/assets/ps-elvia-add-tariff.html.05d3ab1b.js +1 -0
  89. package/docs/.vuepress/dist/assets/ps-elvia-add-tariff.html.dce36de0.js +1 -0
  90. package/docs/.vuepress/dist/assets/ps-general-add-tariff.html.3056f433.js +1 -0
  91. package/docs/.vuepress/dist/assets/ps-general-add-tariff.html.3cce3e4d.js +1 -0
  92. package/docs/.vuepress/dist/assets/ps-receive-price.html.0d762910.js +66 -0
  93. package/docs/.vuepress/dist/assets/ps-receive-price.html.53dde398.js +1 -0
  94. package/docs/.vuepress/dist/assets/ps-strategy-best-save.html.503ecfbe.js +1 -0
  95. package/docs/.vuepress/dist/assets/ps-strategy-best-save.html.9b0747bf.js +72 -0
  96. package/docs/.vuepress/dist/assets/ps-strategy-heat-capacitor.html.53b3383d.js +228 -0
  97. package/docs/.vuepress/dist/assets/ps-strategy-heat-capacitor.html.b7849bf7.js +1 -0
  98. package/docs/.vuepress/dist/assets/ps-strategy-lowest-price.html.1e419f56.js +92 -0
  99. package/docs/.vuepress/dist/assets/ps-strategy-lowest-price.html.f006d811.js +1 -0
  100. package/docs/.vuepress/dist/assets/strategy-input.html.6d452f16.js +26 -0
  101. package/docs/.vuepress/dist/assets/strategy-input.html.8a16d321.js +1 -0
  102. package/docs/.vuepress/dist/assets/style.a8aae67b.css +1 -0
  103. package/docs/.vuepress/dist/assets/temperature-manipulation-config.a0e0439b.png +0 -0
  104. package/docs/.vuepress/dist/changelog/index.html +6 -6
  105. package/docs/.vuepress/dist/contribute/index.html +6 -6
  106. package/docs/.vuepress/dist/examples/example-cascade-temperature-control.html +6 -6
  107. package/docs/.vuepress/dist/examples/example-heat-capacitor.html +6 -6
  108. package/docs/.vuepress/dist/examples/example-next-schedule-entity.html +7 -7
  109. package/docs/.vuepress/dist/examples/example-nordpool-current-state.html +6 -6
  110. package/docs/.vuepress/dist/examples/example-nordpool-events-state.html +6 -6
  111. package/docs/.vuepress/dist/examples/example-tibber-mqtt.html +6 -6
  112. package/docs/.vuepress/dist/examples/index.html +6 -6
  113. package/docs/.vuepress/dist/faq/best-save-viewer.html +6 -6
  114. package/docs/.vuepress/dist/faq/index.html +6 -6
  115. package/docs/.vuepress/dist/guide/index.html +8 -8
  116. package/docs/.vuepress/dist/index.html +6 -6
  117. package/docs/.vuepress/dist/nodes/index.html +6 -6
  118. package/docs/.vuepress/dist/nodes/old-power-saver-doc.html +10 -10
  119. package/docs/.vuepress/dist/nodes/power-saver.html +6 -6
  120. package/docs/.vuepress/dist/nodes/ps-elvia-add-tariff.html +6 -6
  121. package/docs/.vuepress/dist/nodes/ps-general-add-tariff.html +6 -6
  122. package/docs/.vuepress/dist/nodes/ps-receive-price.html +11 -11
  123. package/docs/.vuepress/dist/nodes/ps-strategy-best-save.html +12 -12
  124. package/docs/.vuepress/dist/nodes/ps-strategy-heat-capacitor.html +11 -11
  125. package/docs/.vuepress/dist/nodes/ps-strategy-lowest-price.html +11 -11
  126. package/docs/.vuepress/dist/nodes/strategy-input.html +7 -7
  127. package/docs/.vuepress/public/Ukraine-heart-shape-flag.png +0 -0
  128. package/docs/changelog/README.md +12 -0
  129. package/docs/faq/best-save-viewer.md +1 -0
  130. package/package.json +10 -12
  131. package/src/elvia/elvia-add-tariff.html +7 -1
  132. package/src/elvia/elvia-config.js +7 -0
  133. package/src/elvia/elvia-tariff-types.js +0 -6
  134. package/src/handle-input.js +7 -4
  135. package/.firebase/hosting.ZG9jcy8udnVlcHJlc3MvZGlzdA.cache +0 -221
  136. package/docs/.vuepress/dist/assets/css/835.styles.c5afb22b.css +0 -1
  137. package/docs/.vuepress/dist/assets/css/896.styles.21a80cb6.css +0 -1
  138. package/docs/.vuepress/dist/assets/css/styles.1c48cbd0.css +0 -10
  139. package/docs/.vuepress/dist/assets/js/229.5c5378fa.js +0 -1
  140. package/docs/.vuepress/dist/assets/js/331.872104cd.js +0 -1
  141. package/docs/.vuepress/dist/assets/js/405.f4edd94d.js +0 -2
  142. package/docs/.vuepress/dist/assets/js/405.f4edd94d.js.LICENSE.txt +0 -8
  143. package/docs/.vuepress/dist/assets/js/490.1e639e05.js +0 -1
  144. package/docs/.vuepress/dist/assets/js/491.bd938119.js +0 -1
  145. package/docs/.vuepress/dist/assets/js/555.d8963d84.js +0 -1
  146. package/docs/.vuepress/dist/assets/js/811.5f659592.js +0 -1
  147. package/docs/.vuepress/dist/assets/js/app.999deae8.js +0 -1
  148. package/docs/.vuepress/dist/assets/js/runtime~app.1774b667.js +0 -1
  149. package/docs/.vuepress/dist/assets/js/v-0607240a.1304cbb6.js +0 -1
  150. package/docs/.vuepress/dist/assets/js/v-08683c60.52e94cb6.js +0 -1
  151. package/docs/.vuepress/dist/assets/js/v-0aca7ba6.cac5d4b9.js +0 -1
  152. package/docs/.vuepress/dist/assets/js/v-0b5e3c8c.18561f6e.js +0 -1
  153. package/docs/.vuepress/dist/assets/js/v-1ad821fa.6697a349.js +0 -1
  154. package/docs/.vuepress/dist/assets/js/v-1b3a0ab8.c6c4e19b.js +0 -1
  155. package/docs/.vuepress/dist/assets/js/v-1e2b191e.07b8ab21.js +0 -1
  156. package/docs/.vuepress/dist/assets/js/v-29504124.00be7399.js +0 -1
  157. package/docs/.vuepress/dist/assets/js/v-30acb564.28af12af.js +0 -1
  158. package/docs/.vuepress/dist/assets/js/v-3706649a.c76d575b.js +0 -1
  159. package/docs/.vuepress/dist/assets/js/v-4637f9e4.d334c29a.js +0 -1
  160. package/docs/.vuepress/dist/assets/js/v-4c28314d.8cbb0f9d.js +0 -1
  161. package/docs/.vuepress/dist/assets/js/v-510ed0d4.14f08cf3.js +0 -1
  162. package/docs/.vuepress/dist/assets/js/v-5954bcb2.dff3fc67.js +0 -1
  163. package/docs/.vuepress/dist/assets/js/v-5db8da3a.e5e6d7a6.js +0 -1
  164. package/docs/.vuepress/dist/assets/js/v-61f728ca.81968036.js +0 -1
  165. package/docs/.vuepress/dist/assets/js/v-677dfaed.c159b0f4.js +0 -1
  166. package/docs/.vuepress/dist/assets/js/v-7446a652.88afb5e4.js +0 -1
  167. package/docs/.vuepress/dist/assets/js/v-7c87f26e.8ed52391.js +0 -1
  168. package/docs/.vuepress/dist/assets/js/v-84304104.ad4da2d5.js +0 -1
  169. package/docs/.vuepress/dist/assets/js/v-8daa1a0e.ed84ca09.js +0 -1
  170. package/docs/.vuepress/dist/assets/js/v-b4a42144.9a2a0c9f.js +0 -1
  171. package/docs/.vuepress/dist/assets/js/v-e8c55052.b7d52fc6.js +0 -1
  172. package/docs/.vuepress/dist/assets/js/v-fffb8e28.d09ab959.js +0 -1
@@ -0,0 +1 @@
1
+ import{m as d,o,d as r,f as e,q as l,s as n,F as h,x as i,l as a}from"./app.b3d8926b.js";import{_ as s}from"./plugin-vue_export-helper.21dcd24c.js";const c={},u=i('<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-4-3" tabindex="-1"><a class="header-anchor" href="#_3-4-3" aria-hidden="true">#</a> 3.4.3</h2><ul><li>Fix Elvia config so it can be used independently on any node.</li></ul><h2 id="_3-4-2" tabindex="-1"><a class="header-anchor" href="#_3-4-2" aria-hidden="true">#</a> 3.4.2</h2><ul><li>Fix bug in reset command. It did not reset daily data properly.</li></ul><h2 id="_3-4-1" tabindex="-1"><a class="header-anchor" href="#_3-4-1" aria-hidden="true">#</a> 3.4.1</h2><ul><li>Update examples</li><li>Update dependencies</li><li>Move doc to powersaver.no</li></ul><h2 id="_3-4-0" tabindex="-1"><a class="header-anchor" href="#_3-4-0" aria-hidden="true">#</a> 3.4.0</h2><ul><li>Added new strategy node Heat Capacitor</li></ul><h2 id="_3-3-2" tabindex="-1"><a class="header-anchor" href="#_3-3-2" aria-hidden="true">#</a> 3.3.2</h2><ul><li>Add command sendOutput.</li></ul><h2 id="_3-3-1" tabindex="-1"><a class="header-anchor" href="#_3-3-1" aria-hidden="true">#</a> 3.3.1</h2>',13),f=e("li",null,[a("Move doc to "),e("a",{href:"power-saver.smoky.no"},"power-saver.smoky.no")],-1),_=a("Make tool to test the result of the best save node: "),p=a("Best Save Viewer"),m=i('<h2 id="_3-3-0" tabindex="-1"><a class="header-anchor" href="#_3-3-0" aria-hidden="true">#</a> 3.3.0</h2><ul><li>Remove the config option to schedule from the current hour. The feature did not work, and it was not clear how it should work.</li><li>Added a dynamic command feature to make it possible to dynamically <ol><li>Tell the node to send the schedule to output 3.</li><li>Reset saved data making the next schedule to start without historical data.</li></ol></li><li>Fix node status so it says &quot;No price data&quot; when there is no price data available.</li><li>Added an FAQ section to the doc.</li></ul><h2 id="_3-2-3" tabindex="-1"><a class="header-anchor" href="#_3-2-3" aria-hidden="true">#</a> 3.2.3</h2><ul><li>Remove unused imports</li><li>Fix doc deployment issue</li></ul><h2 id="_3-2-2" tabindex="-1"><a class="header-anchor" href="#_3-2-2" aria-hidden="true">#</a> 3.2.2</h2><ul><li>New attempt to solve the problem with multiple outputs at the same time.</li></ul><h2 id="_3-2-1" tabindex="-1"><a class="header-anchor" href="#_3-2-1" aria-hidden="true">#</a> 3.2.1</h2><ul><li>Fix that may solve the problem with multiple outputs at the same time.</li></ul><h2 id="_3-2-0" tabindex="-1"><a class="header-anchor" href="#_3-2-0" aria-hidden="true">#</a> 3.2.0</h2><ul><li>Config can be sent on input to strategy nodes together with price data, in the same message.</li><li>The ps-receive-price and ps-xxx-add-tariff nodes pass config through from input to output.</li><li>Status on strategy nodes shows the time for the next change.</li></ul><h2 id="_3-1-2" tabindex="-1"><a class="header-anchor" href="#_3-1-2" aria-hidden="true">#</a> 3.1.2</h2><ul><li>Add time, version and current value to output from strategy nodes.</li></ul><h2 id="_3-1-1" tabindex="-1"><a class="header-anchor" href="#_3-1-1" aria-hidden="true">#</a> 3.1.1</h2><ul><li>Fix schedule for Lowest Price node so it uses data from previous day correctly. It sometimes failed when the selected period went over midnight.</li><li>Fix so old data in the Lowest Price node context is deleted.</li></ul><h2 id="_3-1-0" tabindex="-1"><a class="header-anchor" href="#_3-1-0" aria-hidden="true">#</a> 3.1.0</h2><ul><li>New node <code>ps-general-add-tariff</code> to add values that varies af fixed times during the day.</li></ul><h2 id="_3-0-10" tabindex="-1"><a class="header-anchor" href="#_3-0-10" aria-hidden="true">#</a> 3.0.10</h2><ul><li>Fix bug in ps-elvia-add-tariff so it connects to API.</li></ul><h2 id="_3-0-9" tabindex="-1"><a class="header-anchor" href="#_3-0-9" aria-hidden="true">#</a> 3.0.9</h2><ul><li>Fix Nord Pool input for current state node, to read data when payload is set to entity.</li></ul><h2 id="_3-0-8" tabindex="-1"><a class="header-anchor" href="#_3-0-8" aria-hidden="true">#</a> 3.0.8</h2><ul><li>Fix bug in Lowest Price node when period goes over midnight.</li><li>Fix documentation - lots of pages were failing.</li></ul><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-existent 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 Nord Pool 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 subscription 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 &gt; 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 grid 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 Nord Pool 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>',54);function g(x,b){const t=d("RouterLink");return o(),r(h,null,[u,e("ul",null,[f,e("li",null,[_,l(t,{to:"/changelog/power-saver.smoky.no/faq/best-save-viewer.html"},{default:n(()=>[p]),_:1})])]),m],64)}var y=s(c,[["render",g]]);export{y as default};
@@ -0,0 +1 @@
1
+ const e={key:"v-7446a652",path:"/faq/",title:"FAQ",lang:"en-US",frontmatter:{sidebar:["/faq/README.md","/faq/best-save-viewer.md"]},excerpt:"",headers:[{level:2,title:"How can I contribute?",slug:"how-can-i-contribute",children:[]},{level:2,title:"Why is the best save schedule like this?",slug:"why-is-the-best-save-schedule-like-this",children:[]},{level:2,title:"Why does the Best Save node not turn off the most expensive hours?",slug:"why-does-the-best-save-node-not-turn-off-the-most-expensive-hours",children:[]},{level:2,title:"Can we get Legionella bacteria when turning off the water heater?",slug:"can-we-get-legionella-bacteria-when-turning-off-the-water-heater",children:[]}],git:{updatedTime:1642535555e3},filePathRelative:"faq/README.md"};export{e as data};
@@ -0,0 +1 @@
1
+ import{m as a,o as s,d as i,q as o,f as e,F as d,l as t,x as l}from"./app.b3d8926b.js";import{_ as h}from"./plugin-vue_export-helper.21dcd24c.js";const c={},u=e("h1",{id:"contribute",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#contribute","aria-hidden":"true"},"#"),t(" Contribute")],-1),p=e("h2",{id:"donate",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#donate","aria-hidden":"true"},"#"),t(" Donate")],-1),_=e("p",null,"Developing software is time consuming. This solution has taken the better part of all my free time for about 3 quarters of a year. Getting something back would make it easier to also spend future time on this.",-1),f=e("p",null,'I am trying out Patreon and PayPals "Donate" to see if it is possible to get something back for the work I do. The software is open source, and you can use it for free, but if you feel it has value, you can support the development by donating or becoming a patron, paying a fee of your choice.',-1),b=l('<h2 id="code" tabindex="-1"><a class="header-anchor" href="#code" aria-hidden="true">#</a> Code</h2><p>It would be very nice to get more developers on board, and become a team. If you satisfy the following criteria, I would be happy to get help on developing this further:</p><ul><li>Professional or experienced developer</li><li>Know JavaScript</li><li>Write automated tests for your code</li><li>Use <code>node-red-contrib-power-saver</code></li><li>Want to collaborate on further development</li></ul><p>Please contact me, for example by making a [GitHub issue(https://github.com/ottopaulsen/node-red-contrib-power-saver/issues)] explaining what you would like to do.</p><p>The first and most important task now, is to make support for getting grid tariff from all suppliers.</p><h2 id="examples" tabindex="-1"><a class="header-anchor" href="#examples" aria-hidden="true">#</a> Examples</h2>',6),m=t("It would be very nice to get more examples into the documentation. If you have made something smart, please describe in a markdown-file and either send me, or preferably make a pull request on "),g={href:"https://github.com/ottopaulsen/node-red-contrib-power-saver/pulls",target:"_blank",rel:"noopener noreferrer"},k=t("GitHub"),v=t("."),y=e("h2",{id:"bug-reports",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#bug-reports","aria-hidden":"true"},"#"),t(" Bug reports")],-1),x=t("If you find a bug, please describe it thoroughly and make a "),w={href:"https://github.com/ottopaulsen/node-red-contrib-power-saver/issues",target:"_blank",rel:"noopener noreferrer"},I=t("GitHub issue"),B=t(". If the bug is related to the scheduling, "),P=e("strong",null,"please provide the full output from output 3",-1),T=t(" on the strategy node."),C=e("h2",{id:"ideas",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#ideas","aria-hidden":"true"},"#"),t(" Ideas")],-1),D=t("If you have ideas for new features, please make a "),E={href:"https://github.com/ottopaulsen/node-red-contrib-power-saver/issues",target:"_blank",rel:"noopener noreferrer"},G=t("GitHub issue"),H=t(" and describe it as detailed as possible."),N=e("h2",{id:"contributors",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#contributors","aria-hidden":"true"},"#"),t(" Contributors")],-1),V=t("Main developer: "),q={href:"https://github.com/ottopaulsen",target:"_blank",rel:"noopener noreferrer"},S=t("Otto Paulsen"),F=t("Heat Capacitor developer: "),K={href:"https://github.com/TomTorger",target:"_blank",rel:"noopener noreferrer"},L=t("Arne Klaveness"),W=t("Example contributors: "),A={href:"https://github.com/oakhill87/node-red-contrib-power-saver",target:"_blank",rel:"noopener noreferrer"},J=t("Stefan");function M(O,U){const n=a("DonateButtons"),r=a("ExternalLinkIcon");return s(),i(d,null,[u,p,_,f,o(n),b,e("p",null,[m,e("a",g,[k,o(r)]),v]),y,e("p",null,[x,e("a",w,[I,o(r)]),B,P,T]),C,e("p",null,[D,e("a",E,[G,o(r)]),H]),N,e("p",null,[V,e("a",q,[S,o(r)])]),e("p",null,[F,e("a",K,[L,o(r)])]),e("p",null,[W,e("a",A,[J,o(r)])])],64)}var Q=h(c,[["render",M]]);export{Q as default};
@@ -0,0 +1 @@
1
+ const e={key:"v-8daa1a0e",path:"/",title:"",lang:"en-US",frontmatter:{home:!0,heroImage:"/logo.png",heroAlt:"Power Saver",heroText:"node-red-contrib-power-saver",tagline:"A collection of nodes to Node-RED that automates saving money on variable electricity prices",actions:[{text:"Guide",link:"/guide",type:"primary"},{text:"Nodes",link:"/nodes/",type:"primary"},{text:"Examples",link:"/examples/",type:"primary"}],features:[{title:"Automatic scheduling",details:"Automatically calculate best plan and send signal to turn on and off."},{title:"Best Save Strategy",details:"Postpone power consumption when there is most to save, perfect for the water heater."},{title:"Lowest Price Strategy",details:"Turn on power when the prices are the lowest, perfect for smart charging or heating."},{title:"Add variable grid tariff",details:"Automatically add values that varies on fixed hours, or use API to get grid tariff from Elvia."},{title:"Perfect with Home Assistant",details:"Use Home Assistant with Node-RED and control switches via service calls."},{title:"Tibber and Nord Pool",details:"Painlessly use prices received from Tibber or Nord Pool."}],footer:"Created by Otto Paulsen and contributors",footerHtml:!0},excerpt:"",headers:[],git:{updatedTime:164452306e4},filePathRelative:"README.md"};export{e as data};
@@ -0,0 +1 @@
1
+ const e={key:"v-fffb8e28",path:"/guide/",title:"Guide",lang:"en-US",frontmatter:{sidebar:"auto"},excerpt:"",headers:[{level:2,title:"Introduction",slug:"introduction",children:[]},{level:2,title:"Getting started",slug:"getting-started",children:[{level:3,title:"Installation",slug:"installation",children:[]},{level:3,title:"Get price data",slug:"get-price-data",children:[]},{level:3,title:"Add grid tariff",slug:"add-grid-tariff",children:[]},{level:3,title:"Calculate and run schedule",slug:"calculate-and-run-schedule",children:[]},{level:3,title:"Use schedule signals",slug:"use-schedule-signals",children:[]},{level:3,title:"Display schedule",slug:"display-schedule",children:[]},{level:3,title:"More information",slug:"more-information",children:[]}]},{level:2,title:"Migration from v2",slug:"migration-from-v2",children:[]}],git:{updatedTime:1641408133e3},filePathRelative:"guide/README.md"};export{e as data};
@@ -0,0 +1 @@
1
+ const l={key:"v-510ed0d4",path:"/changelog/",title:"Change Log",lang:"en-US",frontmatter:{sidebar:"auto"},excerpt:"",headers:[{level:2,title:"3.4.3",slug:"_3-4-3",children:[]},{level:2,title:"3.4.2",slug:"_3-4-2",children:[]},{level:2,title:"3.4.1",slug:"_3-4-1",children:[]},{level:2,title:"3.4.0",slug:"_3-4-0",children:[]},{level:2,title:"3.3.2",slug:"_3-3-2",children:[]},{level:2,title:"3.3.1",slug:"_3-3-1",children:[]},{level:2,title:"3.3.0",slug:"_3-3-0",children:[]},{level:2,title:"3.2.3",slug:"_3-2-3",children:[]},{level:2,title:"3.2.2",slug:"_3-2-2",children:[]},{level:2,title:"3.2.1",slug:"_3-2-1",children:[]},{level:2,title:"3.2.0",slug:"_3-2-0",children:[]},{level:2,title:"3.1.2",slug:"_3-1-2",children:[]},{level:2,title:"3.1.1",slug:"_3-1-1",children:[]},{level:2,title:"3.1.0",slug:"_3-1-0",children:[]},{level:2,title:"3.0.10",slug:"_3-0-10",children:[]},{level:2,title:"3.0.9",slug:"_3-0-9",children:[]},{level:2,title:"3.0.8",slug:"_3-0-8",children:[]},{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:[]}],git:{updatedTime:1646164626e3},filePathRelative:"changelog/README.md"};export{l as data};
@@ -0,0 +1 @@
1
+ const e={key:"v-0aca7ba6",path:"/examples/",title:"Examples",lang:"en-US",frontmatter:{},excerpt:"",headers:[{level:2,title:"User provided examples",slug:"user-provided-examples",children:[]}],git:{updatedTime:164452306e4},filePathRelative:"examples/README.md"};export{e as data};
@@ -0,0 +1 @@
1
+ import{m as i,o,d,f as e,q as r,s as n,F as h,l as a,x as s}from"./app.b3d8926b.js";import{_ as p}from"./node-power-saver.3a115c24.js";import{_ as c}from"./node-ps-strategy-best-save.516d9e66.js";import{_ as f}from"./node-ps-strategy-lowest-price.83209fac.js";import{_ as l}from"./node-ps-strategy-heat-capacitor.e7736c9e.js";import{_}from"./node-ps-receive-price.dbc5e137.js";import{_ as g}from"./node-ps-general-add-tariff.17755af1.js";import{_ as m}from"./node-ps-elvia-add-tariff.57baddc7.js";import{_ as v}from"./plugin-vue_export-helper.21dcd24c.js";const y={},u=e("h1",{id:"nodes",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#nodes","aria-hidden":"true"},"#"),a(" Nodes")],-1),b=e("p",null,"Here is an overview of the nodes, and links to detailed descriptions for eah of them.",-1),x={id:"power-saver",tabindex:"-1"},w=e("a",{class:"header-anchor",href:"#power-saver","aria-hidden":"true"},"#",-1),N=a(),S=e("a",{href:"./power-saver"},"Power Saver",-1),E=a(),$=s('<p><img src="'+p+'" alt="Power Saver node"></p><p>The old node from version 2 is still working, but should be replaced.</p><h2 id="strategy-nodes" tabindex="-1"><a class="header-anchor" href="#strategy-nodes" aria-hidden="true">#</a> Strategy nodes</h2><p>These are the nodes used to calculate and control saving.</p><h3 id="ps-strategy-best-save" tabindex="-1"><a class="header-anchor" href="#ps-strategy-best-save" aria-hidden="true">#</a> <a href="./ps-strategy-best-save">ps-strategy-best-save</a></h3><p><img src="'+c+'" alt="ps-strategy-best-save"></p><p>Strategy to find the best hours to postpone power consumption to achieve the most saving.</p><h3 id="ps-strategy-lowest-price" tabindex="-1"><a class="header-anchor" href="#ps-strategy-lowest-price" aria-hidden="true">#</a> <a href="./ps-strategy-lowest-price">ps-strategy-lowest-price</a></h3><p><img src="'+f+'" alt="ps-strategy-lowest-price"></p><p>Strategy to find the x hours with lowest price in a given period each day.</p>',10),B={id:"ps-strategy-heat-capacitor-experimental",tabindex:"-1"},P=e("a",{class:"header-anchor",href:"#ps-strategy-heat-capacitor-experimental","aria-hidden":"true"},"#",-1),k=a(),T=e("a",{href:"./ps-strategy-heat-capacitor"},"ps-strategy-heat-capacitor",-1),V=a(),A=a("Experimental"),U=s('<p><img src="'+l+'" alt="ps-strategy-heat-capacitor"></p><p>A strategy for moving consumption from expensive to cheap periods utilizing climate entities and trading principles.</p><h2 id="utility-nodes" tabindex="-1"><a class="header-anchor" href="#utility-nodes" aria-hidden="true">#</a> Utility nodes</h2><h3 id="ps-receive-price" tabindex="-1"><a class="header-anchor" href="#ps-receive-price" aria-hidden="true">#</a> <a href="./ps-receive-price">ps-receive-price</a></h3><p><img src="'+_+'" alt="ps-receive-price"></p><p>Node to convert different types of input data to the format used by the strategy nodes.</p><h2 id="grid-tariff-nodes" tabindex="-1"><a class="header-anchor" href="#grid-tariff-nodes" aria-hidden="true">#</a> Grid tariff nodes</h2><h3 id="ps-general-add-tariff" tabindex="-1"><a class="header-anchor" href="#ps-general-add-tariff" aria-hidden="true">#</a> <a href="./ps-general-add-tariff">ps-general-add-tariff</a></h3><p><img src="'+g+'" alt="ps-general-add-tariff"></p><p>Node to add a variable grid tariff (or any value) to the prices before sending them to the strategy nodes.</p><h3 id="ps-elvia-add-tariff" tabindex="-1"><a class="header-anchor" href="#ps-elvia-add-tariff" aria-hidden="true">#</a> <a href="./ps-elvia-add-tariff">ps-elvia-add-tariff</a></h3><p><img src="'+m+'" alt="ps-elvia-add-tariff"></p><p>Node to add Elvia grid tariff to the prices before sending them to the strategy nodes.</p><h2 id="other-nodes" tabindex="-1"><a class="header-anchor" href="#other-nodes" aria-hidden="true">#</a> Other nodes</h2><p>These are a couple of other nodes for using the Elvia API, but these are not important to the Power Saver, so they are not given any further documentation here.</p><h3 id="ps-elvia-tariff-types" tabindex="-1"><a class="header-anchor" href="#ps-elvia-tariff-types" aria-hidden="true">#</a> ps-elvia-tariff-types</h3><p>Use this to get a list of the tariff types available in the Elvia API.</p><h3 id="ps-elvia-tariff" tabindex="-1"><a class="header-anchor" href="#ps-elvia-tariff" aria-hidden="true">#</a> ps-elvia-tariff</h3><p>Use this to get the Elvia grid tariff for a selected tariff type.</p>',19);function C(F,I){const t=i("Badge");return o(),d(h,null,[u,b,e("h2",x,[w,N,S,E,r(t,{type:"warning",text:"deprecated",vertical:"middle"})]),$,e("h3",B,[P,k,T,V,r(t,{type:"warning"},{default:n(()=>[A]),_:1})]),U],64)}var L=v(y,[["render",C]]);export{L as default};
@@ -0,0 +1 @@
1
+ import{m as t,o,d as r,f as s,q as n,s as d,F as c,x as p,l as e}from"./app.b3d8926b.js";import{_ as l}from"./plugin-vue_export-helper.21dcd24c.js";const i={},m=p('<h1 id="examples" tabindex="-1"><a class="header-anchor" href="#examples" aria-hidden="true">#</a> Examples</h1><p><a href="./example-nordpool-current-state">Nord Pool and <code>current state</code> node in HA</a></p><p><a href="./example-nordpool-events-state">Nord Pool and <code>events: state</code> node in HA</a></p><p><a href="./example-tibber-mqtt">Tibber and mqtt</a></p><p><a href="./example-heat-capacitor">Heat capacitor strategy - simple flow</a></p><p><a href="./example-cascade-temperature-control">Cascade temperature control</a></p><h2 id="user-provided-examples" tabindex="-1"><a class="header-anchor" href="#user-provided-examples" aria-hidden="true">#</a> User provided examples</h2>',7),h=e("Output schedule to a sensor entity"),x=e(" (by Stefan)");function u(_,f){const a=t("RouterLink");return o(),r(c,null,[m,s("p",null,[n(a,{to:"/examples/example-next-schedule-entity.html"},{default:d(()=>[h]),_:1}),x])],64)}var N=l(i,[["render",u]]);export{N as default};
@@ -0,0 +1 @@
1
+ import{m as n,o as i,d,q as o,f as e,s,F as u,l as t,x as l}from"./app.b3d8926b.js";import{_ as c}from"./plugin-vue_export-helper.21dcd24c.js";var f="/assets/mysterious-plan.687d8b75.png";const p={},m=e("h1",{id:"faq",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#faq","aria-hidden":"true"},"#"),t(" FAQ")],-1),w=e("h2",{id:"how-can-i-contribute",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#how-can-i-contribute","aria-hidden":"true"},"#"),t(" How can I contribute?")],-1),v=e("p",null,"You can donate:",-1),_=t("or take a look at the "),g=t("contribute page"),b=e("h2",{id:"why-is-the-best-save-schedule-like-this",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#why-is-the-best-save-schedule-like-this","aria-hidden":"true"},"#"),t(" Why is the best save schedule like this?")],-1),y=e("p",null,"There may be many reasons for the best save node planning like it does. Here are some considerations:",-1),x=e("ul",null,[e("li",null,[t("It is turning off only if it can save the "),e("code",null,"Min saving"),t(" amount in average per kWh per hour for the hours turned off, compared to the next hour that is on.")]),e("li",null,[t("It will not turn off more than "),e("code",null,"Max per sequence"),t(" hours, so it may have to stay on through the most expensive hours, if there are more than the configured number of hours until the price is low enough.")])],-1),k=t("In order to understand how the node works, try out the "),I=t("Best Save Viewer"),B=l('<h2 id="why-does-the-best-save-node-not-turn-off-the-most-expensive-hours" tabindex="-1"><a class="header-anchor" href="#why-does-the-best-save-node-not-turn-off-the-most-expensive-hours" aria-hidden="true">#</a> Why does the Best Save node not turn off the most expensive hours?</h2><p>Here is an example:</p><p><img src="'+f+'" alt="Mysterious saving"></p><p>The purple strokes shows the savings. The Best Save node is configured to save up to 5 hours in a sequence, and only when saving is more than 0.05 NOK.</p><p>Why does it not save the most expensive period?</p><p>If you move the saving-period 4-5 hours earlier, the most expensive hours would have been saved. Why is this not better?</p><p>Remember that the power that is not used during the saving-period, will be used immediately after. At least, that is the idea, and the normal behavior if the power consumer is a water heater or another heater controlled by a thermostat. So, then the power would be used one of the blue hours in stead of the green cheaper hour.</p><p>Also remember that when saving, you do not save the full price. You only save what is the difference between the price during the saved hours and the price the hour immediately after.</p><p>So the best saving is found where this difference is the largest, and that is not always by turning off the most expensive hours. In the case above, the difference is largest when you turn off the hours marked wit a purple stroke, so this is the best saving you can get.</p><p>Of course, if you expand the saving period from 5 to 10 hours you would save even more, but that would be a different case, and you can do that if it is ok for you to turn off for that long time.</p><p>Another alternative is to reduce the minimum saving from 0.05 to 0.001. Then the 3 first red hours would be turned off, but the last red would have to be on, in order to get one hour on until the next 5-hour period off. This would however not save you for much money, since the hour that is on is almost as expensive as the hours you would turn off.</p><h2 id="can-we-get-legionella-bacteria-when-turning-off-the-water-heater" tabindex="-1"><a class="header-anchor" href="#can-we-get-legionella-bacteria-when-turning-off-the-water-heater" aria-hidden="true">#</a> Can we get Legionella bacteria when turning off the water heater?</h2>',12),q=t("Many people ask if there is a danger that legionella bacteria will grow and become dangerous when the temperature of the water heater is lowered. As long as the water is heated to at least 65 \xB0C every day, or at least every week, the risk of infection is not considered significant, according to the norwegian "),S={href:"https://www.fhi.no/nettpub/legionellaveilederen/",target:"_blank",rel:"noopener noreferrer"},T=t("FHI"),A=t(".");function L(N,V){const r=n("DonateButtons"),a=n("RouterLink"),h=n("ExternalLinkIcon");return i(),d(u,null,[m,w,v,o(r),e("p",null,[_,o(a,{to:"/contribute/"},{default:s(()=>[g]),_:1})]),b,y,x,e("p",null,[k,o(a,{to:"/faq/best-save-viewer.html"},{default:s(()=>[I]),_:1})]),B,e("p",null,[q,e("a",S,[T,o(h)]),A])],64)}var F=c(p,[["render",L]]);export{F as default};
@@ -0,0 +1 @@
1
+ const e={key:"v-e8c55052",path:"/nodes/",title:"Nodes",lang:"en-US",frontmatter:{},excerpt:"",headers:[{level:2,title:"Power Saver",slug:"power-saver",children:[]},{level:2,title:"Strategy nodes",slug:"strategy-nodes",children:[{level:3,title:"ps-strategy-best-save",slug:"ps-strategy-best-save",children:[]},{level:3,title:"ps-strategy-lowest-price",slug:"ps-strategy-lowest-price",children:[]},{level:3,title:"ps-strategy-heat-capacitor Experimental",slug:"ps-strategy-heat-capacitor-experimental",children:[]}]},{level:2,title:"Utility nodes",slug:"utility-nodes",children:[{level:3,title:"ps-receive-price",slug:"ps-receive-price",children:[]}]},{level:2,title:"Grid tariff nodes",slug:"grid-tariff-nodes",children:[{level:3,title:"ps-general-add-tariff",slug:"ps-general-add-tariff",children:[]},{level:3,title:"ps-elvia-add-tariff",slug:"ps-elvia-add-tariff",children:[]}]},{level:2,title:"Other nodes",slug:"other-nodes",children:[{level:3,title:"ps-elvia-tariff-types",slug:"ps-elvia-tariff-types",children:[]},{level:3,title:"ps-elvia-tariff",slug:"ps-elvia-tariff",children:[]}]}],git:{updatedTime:164452306e4},filePathRelative:"nodes/README.md"};export{e as data};
@@ -0,0 +1 @@
1
+ var s="/assets/migrate-best-save.ec036b00.png";export{s as _};
@@ -0,0 +1 @@
1
+ var e="/assets/node-power-saver.feb2d4fb.png";export{e as _};
@@ -0,0 +1 @@
1
+ var a="/assets/node-ps-elvia-add-tariff.0bff05a9.png";export{a as _};
@@ -0,0 +1 @@
1
+ var a="/assets/node-ps-general-add-tariff.5a5c98c6.png";export{a as _};
@@ -0,0 +1 @@
1
+ var e="/assets/node-ps-receive-price.3587e62e.png";export{e as _};
@@ -0,0 +1 @@
1
+ var s="/assets/node-ps-strategy-best-save.13861759.png";export{s as _};
@@ -0,0 +1 @@
1
+ var a="/assets/heat-capacitor-temperatureVsPrice.19bc8932.png",e="/assets/node-ps-strategy-heat-capacitor-simple-flow-example.5b712b3b.png";export{a as _,e as a};
@@ -0,0 +1 @@
1
+ var A="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIgAAABNCAYAAAB9nyxVAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMjHxIGmVAAAGXklEQVR4Xu2dz2vcRhTH8z/tf5Cjj7mmYEyg5GRyCviUa+nFwadsE+cUwh5q7KwpFJKUsJdC6MXFCTE0JadAwaSkbZriH3mdN9JIb0ZPs9pdSZa1X8EHrBnNzFrvozdajeJcISIASlELAXCohQA41EIAHGqhxnh3RA/uf0fD4RBcYjiGHMswvmWohSGPHt6lV+Nb9OHFDfprstYK73/8iuiXr0HNnL68Se+e3aadx/dMaPV4S9RCCcvRphgOCNIsLEoVSdRCB6cizhxaAJsGgjQPZ5Jp041a6OD56iKyBwNBmoezCMc4jLtELXTwTY0WvDaAIO3AMQ7jLlELHRCk/0AQEAWCgCgQBESBIDVzvHWVBqvX6Fipm8rTa7Q+uEp7T5W6CwKC1AwEEXRSkNEKDQYrtMeBGgwsm6O8/mAjKbPMG0iD2o8dW5at0d6qGX8jLd+4XmybCXGdNgtlwbFpe+0zJGOs0IEbU/zOVtqgbVV6Kog4mXY/PeH8s5CCT/D61prfvgqRfvwMkgRLHqu1zT5rkEG0vrLPa38vFiKvc/u+EEVhZqGngsg0LU6srZv/ZGVE+okGtUAaWFUQJbBCLk8sV+eEsf0oP89BTwXxT4iXKdLgOkqDnB1TcnJL+pkqiA2Ya3eV1ksFkVOOhD+P0q/3ewu5uFyKJKjyey5XBgmOTU5QiQAzIPuZJkh45ZdPMSLI6bGSaAYx2M9h6vm4sj6q0FNBwoyRnHQ/eGmd3K9IrJ9Kgrh6l01UQYrjeG09IZJxPNmzTCUvltnpqSAr5q6eT06CvILsSU7LFzl5pf1kgeFgKdkrqzeYYB8oQnGd+8z+OEIAr86MvyWFEX0Jweaht4LIE7kUKNmQBdKm1lmAIJcUd4+R7KfZQt6T2JvcxaYXBoJcWoJvOTJ72HOwePZg+icIqBUIAqJAEBAFgoAo9Qry9jV9oU909laUNQQEaYeOCTKkk4/v6fwfw8cJfVaPSYAg7dCyIHfo3zdD+swc3lHqR3R2anrm7fQ1/Veoz4Eg7dCyIBM6Nw3t9mmi1HdckGCtZBmYS5Dt7W3bULJ9f0jPfxhDkDkoLP5dMJPdb2j7gR9fG2MTd7N5Lng7zP7+Ph0eHtLR0ZEHl42fPKHJ5KcZBNmhU77fyO45IIhW3yYsx/7e96Ux5vibLfPBk4MN0ho6uI6PqS6I2LdCXBJB7Mpp+oi7sP6RP/7238PIV2oT0uWA9LG4pQOScOaoEmOzFQXhNKM1kvAx/RbEBNJ7f8OJECztB9lGW1xzx3Ypg1SNsdlqEOS3Azo/OyFi/n5uynqSQbIpJskYVhBb5y8Sli+3J+0giP1Wk26hEH0TRE4VEpc1vPrkXdQqgngvDLUgEQRZhBkzSE4w/fR1ipn5JnWZBClIIKeRpC7MJl0UZKGbVGamr7lLJUi+n00J8huOnGJMuZ06XL3tl+su/kWnhb7mOtggTjMS9UHZmwmdueccxzumTDz3CPftcxCsxXSBhR6USbiRF7ipj9rrA4K0A8c4jLtELXTogtS/fflz5I9jgCDtUK8gv47o5I+f6+f3b/1xDBCkHeoVpEUgSDtAEBAFgoAoEAREgSAgCgQBUSBI17CP5Lvzb4shSNeQghTWftoHgnQZCDI/TQjivZxTthJryJb006u97G+y5qu0KbJPgzpelkHkynAuSdln5PL1jZVkvBpfHYAgKf47GfLdDg6UuIrlFODE8YLrjk36yIQJskHpeLL/aBv5vokTp/57FwhiCV/2KccGyRNEyBPrR5Gn/DhNkGIbKYwVJMhQdQBBLOGLP5IkMC6tr6+GgvhXrU313lWdYtrlwY6MVypIsQ0EidBaBgklkPv255IMEkwP07JBRqkgyCAz0ew9iDjhngQum0hBRNDksTa4+RWfZJNcmPh4miBhG+UeBILk1C0IkwQxJQuEk4IxwRqJoKXBrPI3WTdHxSlCHU8KIsb2RUsRQkCQgCYEmRkvmP0EgiwCBIEgUSAIBFl2IAiIAkFAlIUE4f/4/8OLG2oAmwaCNM/py5vEMQ7jLlELHePdEb0a31ID2DQQpHnePbtNHOMw7hK1UPLo4d0LySIQpFk4e+w8vmdCrMfdoRaGsCScSdoUBYI0A4vBmaOKHIxaqMGpiOcrvqkBlxeO4bRpRaIWAuBQCwFwqIUAJNCV/wHqxZ2/2166bwAAAABJRU5ErkJggg==";export{A as _};
@@ -0,0 +1 @@
1
+ var e="/assets/node-ps-strategy-lowest-price.4e5c38ee.png";export{e as _};
@@ -0,0 +1 @@
1
+ const e={key:"v-b4a42144",path:"/nodes/old-power-saver-doc.html",title:"node-red-contrib-power-saver v2 (deprecated)",lang:"en-US",frontmatter:{},excerpt:"",headers:[{level:2,title:"Installation",slug:"installation",children:[]},{level:2,title:"Input",slug:"input",children:[{level:3,title:"Tibber input",slug:"tibber-input",children:[]},{level:3,title:"Nordpool input",slug:"nordpool-input",children:[]},{level:3,title:"Other input",slug:"other-input",children:[]}]},{level:2,title:"Output",slug:"output",children:[{level:3,title:"Output 1",slug:"output-1",children:[]},{level:3,title:"Output 2",slug:"output-2",children:[]},{level:3,title:"Output 3",slug:"output-3",children:[]}]},{level:2,title:"Configuration",slug:"configuration",children:[{level:3,title:"Dynamic config",slug:"dynamic-config",children:[]}]},{level:2,title:"Algorithm",slug:"algorithm",children:[]},{level:2,title:"Integration with MagicMirror",slug:"integration-with-magicmirror",children:[]},{level:2,title:"Change Log",slug:"change-log",children:[]},{level:2,title:"Contribute",slug:"contribute",children:[]}],git:{updatedTime:1640034618e3},filePathRelative:"nodes/old-power-saver-doc.md"};export{e as data};
@@ -0,0 +1,83 @@
1
+ import{m as p,o as i,d as l,f as n,q as e,s as o,F as u,x as r,l as s}from"./app.b3d8926b.js";import{_ as c}from"./plugin-vue_export-helper.21dcd24c.js";const h={},d=r('<h1 id="node-red-contrib-power-saver-v2-deprecated" tabindex="-1"><a class="header-anchor" href="#node-red-contrib-power-saver-v2-deprecated" aria-hidden="true">#</a> node-red-contrib-power-saver v2 (deprecated)</h1><p>A Node-RED node to save money when power prices are changing. Saving is done by postponing power consumption until the price is lower.</p><p>You can configure maximum number of hours to save in a sequence, and minimum time to recover after a maximum saving period.</p><p><img src="https://github.com/ottopaulsen/node-red-contrib-power-saver/blob/main/doc/node-red-contrib-power-saver-flow.png?raw=true" alt="Normal flow"></p><p>You can use it to control for example a heater, a water heater or any other power consumer that is acceptable to turn off now and then.</p><p>The node takes power prices per hour as input, and sends output to turn a switch on or off based on the power price. It also outputs the schedule that is planned, as well as how much you save per kWh for each of the hours that are turned off, assuming that the same power is used as soon as the power is turned on.</p><p>Power prices may be received from Tibber, Nord Pool or any other source that gives price per hour for today and optionally tomorrow. It is primarily made to be used together with Home Assistant (HA), but there is no dependency to HA, so it can just as well be used by itself.</p><p>The node can also be used in combination with MagicMirror with the MMM-MQTT and MMM-Tibber modules, in order to get the savings displayed on the MM screen in the MMM-Tibber module.</p><p><strong>NB! WIP</strong></p><p>This node is currently rather new, and has been tried for a few weeks, enough to come in a version two with improved savings plan.</p>',10),b=s("Feel free to try it, and report back problems or ideas as "),m={href:"https://github.com/ottopaulsen/node-red-contrib-power-saver/issues",target:"_blank",rel:"noopener noreferrer"},k=s("Github issues"),f=s("."),g=r('<h2 id="installation" tabindex="-1"><a class="header-anchor" href="#installation" aria-hidden="true">#</a> Installation</h2><p>Install in Node-RED via the Manage Palette menu.</p><p>May also be installed via npm:</p><p><code>npm install node-red-contrib-power-saver</code></p><p>Make sure that you upgrade now and then to get the latest version. See <a href="CHANGELOG">changelog</a> for changes.</p><h2 id="input" tabindex="-1"><a class="header-anchor" href="#input" aria-hidden="true">#</a> Input</h2><p>3 different types of input are accepted:</p><ul><li>Tibber</li><li>Nordpool</li><li>Other sources in a specific JSON format</li></ul><p>Choose the one that fits you best. Of course, all inputs are JSON, but the Tibber and Nord Pool alternatives are designed to connect directly to those sources with a minimum effort.</p><p>From version 2.1.0, you can also send a config object as input for dynamically changing the node config.</p><h3 id="tibber-input" tabindex="-1"><a class="header-anchor" href="#tibber-input" aria-hidden="true">#</a> Tibber input</h3>',11),y=s("If you are a Tibber customer, you can use the "),q=n("code",null,"tibber-query",-1),w=s(" node from the "),_={href:"https://flows.nodered.org/node/node-red-contrib-tibber-api",target:"_blank",rel:"noopener noreferrer"},v=n("code",null,"node-red-contrib-tibber-api",-1),x=s(" node"),T=s(". Set it up with the following query:"),M=r(`<div class="language-gql ext-gql line-numbers-mode"><pre class="language-gql"><code>{
2
+ viewer {
3
+ homes {
4
+ currentSubscription {
5
+ priceInfo {
6
+ today {
7
+ total
8
+ startsAt
9
+ }
10
+ tomorrow {
11
+ total
12
+ startsAt
13
+ }
14
+ }
15
+ }
16
+ }
17
+ }
18
+ }
19
+ </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br></div></div><p>Send the result from the <code>tibber-query</code> node with the query above directly to the <code>power-saver</code> node. Make sure it is refreshed when new prices are ready. Prices for the next day are normally ready at 13:00, but refreshing every hour can be a good idea.</p>`,2),S=s("See example with Tibber, a switch and MQTT"),N=n("h3",{id:"nordpool-input",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#nordpool-input","aria-hidden":"true"},"#"),s(" Nordpool input")],-1),I=s("This is especially designed to work for Home Assistant (HA), and the "),A={href:"https://github.com/custom-components/nordpool",target:"_blank",rel:"noopener noreferrer"},O=s("Nord Pool custom component"),j=s(". The Nord Pool component provides a "),C=n("em",null,"sensor",-1),P=s(" that gives price per hour for today and tomorrow (after 13:00). Send the output from this sensor directly to the "),W=n("code",null,"power-saver",-1),H=s(" node. Make sure this is done whenever the node is updated, as well as when the system starts up."),E=n("p",null,[s("Data can be sent from both the "),n("code",null,"current state"),s(" node or the "),n("code",null,"events: state"),s(" node.")],-1),G=s("See example with Nord Pool and "),L=n("code",null,"current state",-1),R=s(" node"),V=s("See example with Nord Pool and "),Y=n("code",null,"events: state",-1),D=s(" node"),F=r(`<h3 id="other-input" tabindex="-1"><a class="header-anchor" href="#other-input" aria-hidden="true">#</a> Other input</h3><p>If you cannot use any of the two above (Tibber or Nord Pool), create the input to the node with the payload containing JSON like this:</p><div class="language-json ext-json line-numbers-mode"><pre class="language-json"><code><span class="token punctuation">{</span>
20
+ <span class="token property">&quot;today&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>
21
+ <span class="token punctuation">{</span> <span class="token property">&quot;value&quot;</span><span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span> <span class="token property">&quot;start&quot;</span><span class="token operator">:</span> <span class="token string">&quot;2021-06-21T00:00:00+02:00&quot;</span> <span class="token punctuation">}</span><span class="token punctuation">,</span>
22
+ <span class="token punctuation">{</span> <span class="token property">&quot;value&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token property">&quot;start&quot;</span><span class="token operator">:</span> <span class="token string">&quot;2021-06-21T01:00:00+02:00&quot;</span> <span class="token punctuation">}</span>
23
+ <span class="token comment">//...</span>
24
+ <span class="token punctuation">]</span><span class="token punctuation">,</span>
25
+ <span class="token property">&quot;tomorrow&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>
26
+ <span class="token punctuation">{</span> <span class="token property">&quot;value&quot;</span><span class="token operator">:</span> <span class="token number">3</span><span class="token punctuation">,</span> <span class="token property">&quot;start&quot;</span><span class="token operator">:</span> <span class="token string">&quot;2021-06-22T00:00:00+02:00&quot;</span> <span class="token punctuation">}</span><span class="token punctuation">,</span>
27
+ <span class="token punctuation">{</span> <span class="token property">&quot;value&quot;</span><span class="token operator">:</span> <span class="token number">4</span><span class="token punctuation">,</span> <span class="token property">&quot;start&quot;</span><span class="token operator">:</span> <span class="token string">&quot;2021-06-22T01:00:00+02:00&quot;</span> <span class="token punctuation">}</span>
28
+ <span class="token comment">//...</span>
29
+ <span class="token punctuation">]</span>
30
+ <span class="token punctuation">}</span>
31
+ </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br></div></div><h2 id="output" tabindex="-1"><a class="header-anchor" href="#output" aria-hidden="true">#</a> Output</h2><h3 id="output-1" tabindex="-1"><a class="header-anchor" href="#output-1" aria-hidden="true">#</a> Output 1</h3><p>A payload with the word <code>true</code> is sent to output 1 whenever the power / switch shall be turned on.</p><h3 id="output-2" tabindex="-1"><a class="header-anchor" href="#output-2" aria-hidden="true">#</a> Output 2</h3><p>A payload with the word <code>false</code> is sent to output 2 whenever the power / switch shall be turned off.</p><h3 id="output-3" tabindex="-1"><a class="header-anchor" href="#output-3" aria-hidden="true">#</a> Output 3</h3><p>When a valid input is received, and the schedule is recalculated, the resulting schedule, as well as some other information, is sent to output 3. You can use this to see the plan and verify that it meets your expectations. You can also use it to display the schedule in any way you like.</p><p>Example of output:</p><div class="language-json ext-json line-numbers-mode"><pre class="language-json"><code><span class="token punctuation">{</span>
32
+ <span class="token property">&quot;schedule&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>
33
+ <span class="token punctuation">{</span>
34
+ <span class="token property">&quot;time&quot;</span><span class="token operator">:</span> <span class="token string">&quot;2021-09-30T00:00:00.000+02:00&quot;</span><span class="token punctuation">,</span>
35
+ <span class="token property">&quot;value&quot;</span><span class="token operator">:</span> <span class="token boolean">false</span>
36
+ <span class="token punctuation">}</span><span class="token punctuation">,</span>
37
+ <span class="token punctuation">{</span>
38
+ <span class="token property">&quot;time&quot;</span><span class="token operator">:</span> <span class="token string">&quot;2021-09-30T01:00:00.000+02:00&quot;</span><span class="token punctuation">,</span>
39
+ <span class="token property">&quot;value&quot;</span><span class="token operator">:</span> <span class="token boolean">true</span>
40
+ <span class="token punctuation">}</span>
41
+ <span class="token comment">//...</span>
42
+ <span class="token punctuation">]</span><span class="token punctuation">,</span>
43
+ <span class="token property">&quot;hours&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>
44
+ <span class="token punctuation">{</span>
45
+ <span class="token property">&quot;price&quot;</span><span class="token operator">:</span> <span class="token number">1.2584</span><span class="token punctuation">,</span>
46
+ <span class="token property">&quot;onOff&quot;</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>
47
+ <span class="token property">&quot;start&quot;</span><span class="token operator">:</span> <span class="token string">&quot;2021-09-30T00:00:00.000+02:00&quot;</span><span class="token punctuation">,</span>
48
+ <span class="token property">&quot;saving&quot;</span><span class="token operator">:</span> <span class="token number">0.2034</span>
49
+ <span class="token punctuation">}</span><span class="token punctuation">,</span>
50
+ <span class="token punctuation">{</span>
51
+ <span class="token property">&quot;price&quot;</span><span class="token operator">:</span> <span class="token number">1.055</span><span class="token punctuation">,</span>
52
+ <span class="token property">&quot;onOff&quot;</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>
53
+ <span class="token property">&quot;start&quot;</span><span class="token operator">:</span> <span class="token string">&quot;2021-09-30T01:00:00.000+02:00&quot;</span><span class="token punctuation">,</span>
54
+ <span class="token property">&quot;saving&quot;</span><span class="token operator">:</span> <span class="token null keyword">null</span>
55
+ <span class="token punctuation">}</span><span class="token punctuation">,</span>
56
+ <span class="token punctuation">{</span>
57
+ <span class="token property">&quot;price&quot;</span><span class="token operator">:</span> <span class="token number">1.2054</span><span class="token punctuation">,</span>
58
+ <span class="token property">&quot;onOff&quot;</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>
59
+ <span class="token property">&quot;start&quot;</span><span class="token operator">:</span> <span class="token string">&quot;2021-09-30T02:00:00.000+02:00&quot;</span><span class="token punctuation">,</span>
60
+ <span class="token property">&quot;saving&quot;</span><span class="token operator">:</span> <span class="token null keyword">null</span>
61
+ <span class="token punctuation">}</span>
62
+ <span class="token comment">//...</span>
63
+ <span class="token punctuation">]</span><span class="token punctuation">,</span>
64
+ <span class="token property">&quot;source&quot;</span><span class="token operator">:</span> <span class="token string">&quot;Nordpool&quot;</span><span class="token punctuation">,</span>
65
+ <span class="token property">&quot;config&quot;</span><span class="token operator">:</span> <span class="token punctuation">{</span>
66
+ <span class="token property">&quot;maxHoursToSaveInSequence&quot;</span><span class="token operator">:</span> <span class="token number">3</span><span class="token punctuation">,</span>
67
+ <span class="token property">&quot;minHoursOnAfterMaxSequenceSaved&quot;</span><span class="token operator">:</span> <span class="token string">&quot;1&quot;</span><span class="token punctuation">,</span>
68
+ <span class="token property">&quot;minSaving&quot;</span><span class="token operator">:</span> <span class="token number">0.001</span><span class="token punctuation">,</span>
69
+ <span class="token property">&quot;sendCurrentValueWhenRescheduling&quot;</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>
70
+ <span class="token property">&quot;outputIfNoSchedule&quot;</span><span class="token operator">:</span> <span class="token boolean">false</span>
71
+ <span class="token punctuation">}</span>
72
+ <span class="token punctuation">}</span>
73
+ </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br><span class="line-number">21</span><br><span class="line-number">22</span><br><span class="line-number">23</span><br><span class="line-number">24</span><br><span class="line-number">25</span><br><span class="line-number">26</span><br><span class="line-number">27</span><br><span class="line-number">28</span><br><span class="line-number">29</span><br><span class="line-number">30</span><br><span class="line-number">31</span><br><span class="line-number">32</span><br><span class="line-number">33</span><br><span class="line-number">34</span><br><span class="line-number">35</span><br><span class="line-number">36</span><br><span class="line-number">37</span><br><span class="line-number">38</span><br><span class="line-number">39</span><br><span class="line-number">40</span><br><span class="line-number">41</span><br><span class="line-number">42</span><br></div></div><p>The <code>schedule</code> array shows every time the switch is turned on or off. The <code>hours</code> array shows values per hour containing the price (received as input), whether that hour is on or off, the start time of the hour and the amount per kWh that is saved on hours that are turned off, compared to the next hour that is on.</p><h2 id="configuration" tabindex="-1"><a class="header-anchor" href="#configuration" aria-hidden="true">#</a> Configuration</h2><p>Currently there is only one strategy for saving. This is the <em>mostSaved</em> strategy. This strategy turns off the hours where the price difference is largest compared to the next hour that is on. The idea is that the power you are not using when the switch is turned off, will be used immediately when the switch is turned on. This would fit well for turning of a water heater or another thermostat controlled heater.</p><p>You can configure the following:</p><ul><li>Maximum number of hours to turn off in a sequence.</li><li>Minimum hours to turn on immediately after a period when turned off the maximum number of hours that is allowed to be turned off.</li><li>Minimum amount to save per kWh in order to bother turning it off. It is recommended to have some amount here, e.g. 2 cents / 2 \xF8re. No point in saving 0.001, is it?</li><li>Wether to send on/off just after a reschedule is done without waiting until the next scheduled switch.</li><li>What to do if there is no valid schedule any more (turn on or off).</li></ul><h3 id="dynamic-config" tabindex="-1"><a class="header-anchor" href="#dynamic-config" aria-hidden="true">#</a> Dynamic config</h3><p>It is possible to change config dynamically by sending a config message to the node. The config messages has a payload with a config object like this example:</p><div class="language-json ext-json line-numbers-mode"><pre class="language-json"><code><span class="token property">&quot;payload&quot;</span><span class="token operator">:</span> <span class="token punctuation">{</span>
74
+ <span class="token property">&quot;config&quot;</span><span class="token operator">:</span> <span class="token punctuation">{</span>
75
+ <span class="token property">&quot;maxHoursToSaveInSequence&quot;</span><span class="token operator">:</span> <span class="token number">4</span><span class="token punctuation">,</span>
76
+ <span class="token property">&quot;minHoursOnAfterMaxSequenceSaved&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span>
77
+ <span class="token property">&quot;minSaving&quot;</span><span class="token operator">:</span> <span class="token number">0.02</span><span class="token punctuation">,</span>
78
+ <span class="token property">&quot;sendCurrentValueWhenRescheduling&quot;</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>
79
+ <span class="token property">&quot;outputIfNoSchedule&quot;</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>
80
+ <span class="token property">&quot;scheduleOnlyFromCurrentTime&quot;</span><span class="token operator">:</span> <span class="token boolean">false</span>
81
+ <span class="token punctuation">}</span>
82
+ <span class="token punctuation">}</span>
83
+ </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br></div></div><p>All the variables in the config object are optional. You can send only those you want to change.</p><p>The config sent like this will be valid until a new config is sent the same way, or until the flow is restarted. On a restart, the original config set up in the node will be used.</p><p>When a config is sent like this, the schedule will be replanned based on the last previously received price data. If no price data has been received, no scheduling is done.</p><h2 id="algorithm" tabindex="-1"><a class="header-anchor" href="#algorithm" aria-hidden="true">#</a> Algorithm</h2><p>The calculation that decides what hours to turn off works as follows:</p><ol><li>A matrix (x * y) is created where x is the number of hours we have price information for, and y is the configured maximum number of hours to turn off in a sequence.</li><li>The matrix is filled with how much you save by turning off hour x for y hours.</li><li>The matrix is processed calculating all possibilities for turning off a number of hours in a sequence and by that saving money. In this process all non-saving sequences are discarded. Also, if the average saving per hour is less than what you have configured as minimum amount to save per kWh, the sequence is discarded.</li><li>The remaining sequences are sorted by how much that is saved, in descending order.</li><li>Next, a table with one value per hour is created, with all hours in state &quot;on&quot;.</li><li>Then the saving sequences is applied one by one, turning off the hours in each sequence, discarding sequences that lead to any violation of the rules set by the config.</li><li>When all sequences are processed, the resulting table shows a pretty good savings plan, that in most cases would be the optimal plan.</li></ol><p>I say &quot;in most cases&quot;, because there is a chance that a group of two or more sequences combined can give a better plan than a single sequence preceeding those two, but where the selection of the one sequence causes the group to be discarded. If anyone encounters this situation, I would be happy to receive the price data set, and try to improve the algorithm even further.</p><h2 id="integration-with-magicmirror" tabindex="-1"><a class="header-anchor" href="#integration-with-magicmirror" aria-hidden="true">#</a> Integration with MagicMirror</h2>`,28),B=s("Are you using "),J={href:"https://magicmirror.builders/",target:"_blank",rel:"noopener noreferrer"},Q=s("MagicMirror"),z=s("? Are you also using "),K={href:"https://tibber.com/",target:"_blank",rel:"noopener noreferrer"},U=s("Tibber"),X=s("? If so, there is a module for MM called "),Z={href:"https://github.com/ottopaulsen/MMM-Tibber",target:"_blank",rel:"noopener noreferrer"},$=s("MMM-Tibber"),nn=s(", that easily can be used to show savings from this node."),sn=n("p",null,[n("img",{src:"https://github.com/ottopaulsen/MMM-Tibber/blob/master/doc/MMM-Tibber-screenshot-savings-graph.png?raw=true",alt:"Show savings in MMM-Tibber"})],-1),en=n("p",null,"The purple lines show savings per kWh.",-1),an=s("Read more about this in the "),tn={href:"https://github.com/ottopaulsen/MMM-Tibber#show-savings",target:"_blank",rel:"noopener noreferrer"},on=s("MMM-Tibber documentation"),rn=s("."),pn=n("h2",{id:"change-log",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#change-log","aria-hidden":"true"},"#"),s(" Change Log")],-1),ln=s("See "),un=s("CHANGELOG.md"),cn=n("h2",{id:"contribute",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#contribute","aria-hidden":"true"},"#"),s(" Contribute")],-1),hn=n("p",null,"Contributions are welcome. Please start by creating a Github Issue with suggested changes, and state what you would like to do.",-1);function dn(bn,mn){const a=p("ExternalLinkIcon"),t=p("RouterLink");return i(),l(u,null,[d,n("p",null,[b,n("a",m,[k,e(a)]),f]),g,n("p",null,[y,q,w,n("a",_,[v,x,e(a)]),T]),M,n("p",null,[e(t,{to:"/nodes/doc/example-tibber-mqtt.html"},{default:o(()=>[S]),_:1})]),N,n("p",null,[I,n("a",A,[O,e(a)]),j,C,P,W,H]),E,n("p",null,[e(t,{to:"/nodes/doc/example-nordpool-current-state.html"},{default:o(()=>[G,L,R]),_:1})]),n("p",null,[e(t,{to:"/nodes/doc/example-nordpool-events-state.html"},{default:o(()=>[V,Y,D]),_:1})]),F,n("p",null,[B,n("a",J,[Q,e(a)]),z,n("a",K,[U,e(a)]),X,n("a",Z,[$,e(a)]),nn]),sn,en,n("p",null,[an,n("a",tn,[on,e(a)]),rn]),pn,n("p",null,[ln,e(t,{to:"/nodes/CHANGELOG.html"},{default:o(()=>[un]),_:1})]),cn,hn],64)}var gn=c(h,[["render",dn]]);export{gn as default};
@@ -0,0 +1 @@
1
+ var a=(t,o)=>{const r=t.__vccOpts||t;for(const[e,_]of o)r[e]=_;return r};export{a as _};
@@ -0,0 +1 @@
1
+ import{m as r,o as t,d as a,f as e,q as s,F as d,l as i,x as n}from"./app.b3d8926b.js";import{_ as c}from"./node-power-saver.3a115c24.js";import{_ as p}from"./migrate-best-save.dcc20d06.js";import{_ as m}from"./plugin-vue_export-helper.21dcd24c.js";var h="/assets/migrate-power-saver.98ee9f2e.png";const _={},v={id:"power-saver",tabindex:"-1"},l=e("a",{class:"header-anchor",href:"#power-saver","aria-hidden":"true"},"#",-1),f=i(" power-saver "),w=n('<p><img src="'+c+'" alt="Power Saver node"></p><p>This is the node from version 2. It is still working, but should be replaced.</p><p>To migrate, just replace the Power Saver node by a combination of the ps-receive-price and the ps-best-save nodes:</p><p>Replace the <code>Power Saver</code> node from version 2:</p><p><img src="'+h+'" alt="Power Saver node"></p><p>with this combination of <code>ps-receive-price</code> and <code>ps-strategy-best-save</code> from version 3:</p><p><img src="'+p+'" alt="Migrate Power Saver"></p><p>The configuration is done in the <code>ps-strategy-best-save</code> node, and is the same as in the old <code>Power Saver</code> node.</p><p>Should you need it, here is the <a href="./old-power-saver-doc">old documentation</a> for the PowerSaver node from version 2.</p>',9);function g(u,S){const o=r("Badge");return t(),a(d,null,[e("h1",v,[l,f,s(o,{type:"warning",text:"deprecated",vertical:"middle"})]),w],64)}var B=m(_,[["render",g]]);export{B as default};
@@ -0,0 +1 @@
1
+ const e={key:"v-1ad821fa",path:"/nodes/power-saver.html",title:"power-saver",lang:"en-US",frontmatter:{next:"./ps-strategy-best-save.md"},excerpt:"",headers:[],git:{updatedTime:1639315027e3},filePathRelative:"nodes/power-saver.md"};export{e as data};
@@ -0,0 +1 @@
1
+ import{m as n,o as c,d,f as t,q as i,s,F as p,x as r,l as e}from"./app.b3d8926b.js";import{_ as l}from"./node-ps-elvia-add-tariff.57baddc7.js";import{_ as h}from"./plugin-vue_export-helper.21dcd24c.js";var u="/assets/elvia-flow.a8b126d6.png",f="/assets/elvia-config-no-config.7ea35c3b.png",_="/assets/elvia-config-subscription-key.3368b931.png",m="/assets/elvia-config-no-tariff.a208a0f3.png",g="/assets/elvia-config-select-tariff.48562d43.png";const v={},y=r('<h1 id="ps-elvia-add-tariff" tabindex="-1"><a class="header-anchor" href="#ps-elvia-add-tariff" aria-hidden="true">#</a> ps-elvia-add-tariff</h1><p><img src="'+l+'" alt="ps-elvia-add-tariff"></p><p>Node to add grid tariff from Elvia.</p><div class="custom-container warning"><p class="custom-container-title">Elvia API</p><p>You need an Elvia API subscription key to use this node. See <a href="#elvia-configuration">configuration</a>.</p></div><h2 id="description" tabindex="-1"><a class="header-anchor" href="#description" aria-hidden="true">#</a> Description</h2><p>When grid tariff changes from hour to hour, this should normally also be considered when finding the most favorable hours to use power. This node retrieves prices from Elvia, so if you are an elvia customer, you can put this node between the <code>ps-receive-price</code> node and the strategy nodes. When configured, it will add Elvia tariff to the power prices before doing the calculation:</p><p><img src="'+u+'" alt="Elvia flow"></p><h2 id="configuration" tabindex="-1"><a class="header-anchor" href="#configuration" aria-hidden="true">#</a> Configuration</h2>',8),b={class:"custom-container warning"},E=t("p",{class:"custom-container-title"},"Elvia API subscription key",-1),k=e("This node uses the Elvia API, and you must get your own Elvia API subscription key in order to use it. Go to the "),x={href:"https://elvia.portal.azure-api.net/",target:"_blank",rel:"noopener noreferrer"},w=e("Elvia Developer Portal"),I=e(" to sign up, and then request for a subscription to the GridTariffAPI. When your subscription is approved, you will find your subscription key in the "),T={href:"https://elvia.portal.azure-api.net/developer",target:"_blank",rel:"noopener noreferrer"},A=e("developer portal"),P=e(" under Your subscriptions."),N=r('<p>The first time you use this node, you must create a <code>ps-elvia-config</code> entry. Click on the edit button to the right of Elvia Config:</p><p><img src="'+f+'" alt="Elvia configuration"></p><p>Then enter the Elvia API subscription key:</p><p><img src="'+_+'" alt="Elvia configuration"></p><p>After entering the Elvia API subscription key the first time, it is not possible to select tariff.</p><p><img src="'+m+'" alt="Elvia configuration"></p><p>To fix that, save the config, deploy, and then open the node again. Now you should be able to select the right tariff:</p><p><img src="'+g+'" alt="Elvia configuration"></p><p>The next time you use this node, you can select the same config as you created the first time, and then you can also select tariff immediately.</p><h2 id="input" tabindex="-1"><a class="header-anchor" href="#input" aria-hidden="true">#</a> Input</h2>',10),C=e("The input is the "),L=e("common strategy input format"),V=t("h2",{id:"output",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#output","aria-hidden":"true"},"#"),e(" Output")],-1),B=e("The output is the "),W=e("common strategy input format");function q(z,D){const o=n("ExternalLinkIcon"),a=n("RouterLink");return c(),d(p,null,[y,t("div",b,[E,t("p",null,[k,t("a",x,[w,i(o)]),I,t("a",T,[A,i(o)]),P])]),N,t("p",null,[C,i(a,{to:"/nodes/strategy-input.html"},{default:s(()=>[L]),_:1})]),V,t("p",null,[B,i(a,{to:"/nodes/strategy-input.html"},{default:s(()=>[W]),_:1})])],64)}var S=h(v,[["render",q]]);export{S as default};
@@ -0,0 +1 @@
1
+ const e={key:"v-08683c60",path:"/nodes/ps-elvia-add-tariff.html",title:"ps-elvia-add-tariff",lang:"en-US",frontmatter:{},excerpt:"",headers:[{level:2,title:"Description",slug:"description",children:[]},{level:2,title:"Configuration",slug:"configuration",children:[]},{level:2,title:"Input",slug:"input",children:[]},{level:2,title:"Output",slug:"output",children:[]}],git:{updatedTime:1641408133e3},filePathRelative:"nodes/ps-elvia-add-tariff.md"};export{e as data};
@@ -0,0 +1 @@
1
+ import{m as d,o,d as s,f as e,q as i,s as r,F as n,x as h,l as t}from"./app.b3d8926b.js";import{_ as c}from"./node-ps-general-add-tariff.17755af1.js";import{_ as p}from"./plugin-vue_export-helper.21dcd24c.js";var l="/assets/add-tariff-flow.9e258f5b.png";const f={},u=h('<h1 id="ps-general-add-tariff" tabindex="-1"><a class="header-anchor" href="#ps-general-add-tariff" aria-hidden="true">#</a> ps-general-add-tariff</h1><p><img src="'+c+'" alt="ps-general-add-tariff"></p><p>Node to add a value, for example a variable grid tariff, to the price before it is used to calculate savings in the strategy nodes.</p><h2 id="description" tabindex="-1"><a class="header-anchor" href="#description" aria-hidden="true">#</a> Description</h2><p>This node is useful if there is an addition to the electricity price that varies over the day, as it might be for the grid tariff.</p><p>If there is one price for example from 22:00 to 06:00 every day, and another price from 06:00 to 22:00, this is the right node to use. It can be used for more than two periods, as long as the time it changes is the same every day.</p><p>Here is how this node is normally used:</p><p><img src="'+l+'" alt="general flow"></p><div class="custom-container tip"><p class="custom-container-title">Changes during the year</p><p>If there is one price now, and another price from a specific date, you can use two nodes after each other. Set the <code>Valid to date</code> of the node with the current prices to the last date the current prices are valid. Set the <code>Valid from date</code> of the node with the upcoming prices to the first date those prices are valid.</p></div><h2 id="configuration" tabindex="-1"><a class="header-anchor" href="#configuration" aria-hidden="true">#</a> Configuration</h2><h3 id="add-and-delete-periods" tabindex="-1"><a class="header-anchor" href="#add-and-delete-periods" aria-hidden="true">#</a> Add and delete periods</h3><p>You can have from 1 to 24 periods during the day, with different values to add for each hour. Click the <code>Add period</code> button to add more periods. Click the <code>X</code> button to delete a period.</p><h3 id="from-time-and-value" tabindex="-1"><a class="header-anchor" href="#from-time-and-value" aria-hidden="true">#</a> From time and Value</h3><p>For each period, select the time of the day the value is valid from, and enter the value.</p><h3 id="valid-from-date" tabindex="-1"><a class="header-anchor" href="#valid-from-date" aria-hidden="true">#</a> Valid from date</h3><p>Fill in the first date the config is valid.</p><p>If this is empty, the config is valid from the dawn of time.</p><h3 id="valid-to-date" tabindex="-1"><a class="header-anchor" href="#valid-to-date" aria-hidden="true">#</a> Valid to date</h3><p>Fill in the last date the config is valid.</p><p>If this is empty, the config is valid until forever.</p><h2 id="input" tabindex="-1"><a class="header-anchor" href="#input" aria-hidden="true">#</a> Input</h2>',21),m=t("The input is the "),g=t("common strategy input format"),_=e("h2",{id:"output",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#output","aria-hidden":"true"},"#"),t(" Output")],-1),v=t("The output is the "),y=t("common strategy input format"),x=e("p",null,"If there is a config property in the input payload, it is passed on to the output payload.",-1);function b(w,V){const a=d("RouterLink");return o(),s(n,null,[u,e("p",null,[m,i(a,{to:"/nodes/strategy-input.html"},{default:r(()=>[g]),_:1})]),_,e("p",null,[v,i(a,{to:"/nodes/strategy-input.html"},{default:r(()=>[y]),_:1})]),x],64)}var F=p(f,[["render",b]]);export{F as default};
@@ -0,0 +1 @@
1
+ const e={key:"v-1e2b191e",path:"/nodes/ps-general-add-tariff.html",title:"ps-general-add-tariff",lang:"en-US",frontmatter:{},excerpt:"",headers:[{level:2,title:"Description",slug:"description",children:[]},{level:2,title:"Configuration",slug:"configuration",children:[{level:3,title:"Add and delete periods",slug:"add-and-delete-periods",children:[]},{level:3,title:"From time and Value",slug:"from-time-and-value",children:[]},{level:3,title:"Valid from date",slug:"valid-from-date",children:[]},{level:3,title:"Valid to date",slug:"valid-to-date",children:[]}]},{level:2,title:"Input",slug:"input",children:[]},{level:2,title:"Output",slug:"output",children:[]}],git:{updatedTime:1641586171e3},filePathRelative:"nodes/ps-general-add-tariff.md"};export{e as data};
@@ -0,0 +1,66 @@
1
+ import{m as p,o as i,d as l,f as e,q as s,s as r,F as c,x as a,l as n}from"./app.b3d8926b.js";import{_ as u}from"./node-ps-receive-price.dbc5e137.js";import{_ as d}from"./plugin-vue_export-helper.21dcd24c.js";const b={},h=a('<h1 id="ps-receive-price" tabindex="-1"><a class="header-anchor" href="#ps-receive-price" aria-hidden="true">#</a> ps-receive-price</h1><p><img src="'+u+'" alt="ps-receive-price"></p><h2 id="description" tabindex="-1"><a class="header-anchor" href="#description" aria-hidden="true">#</a> Description</h2><p>The <code>ps-receive-price</code> node is used to convert prices from Tibber or Nord Pool to the format used by the strategy nodes. It takes its input directly from the output of the following nodes (see details below):</p><ul><li><code>tibber-query</code> node from Tibber (<code>node-red-contrib-tibber-api</code>)</li><li><code>current state</code> node in Home Assistant</li><li><code>events: state</code> node in Home Assistant</li></ul><p>Output can be sent directly to the strategy nodes (for example <code>strategy-best-save</code> or <code>strategy-lowest-price</code>), or it can be sent via another node to add grid tariff or other additional costs before the calculation is done.</p><div class="custom-container warning"><p class="custom-container-title">Note</p><p>In version 2 of <code>node-red-contrib-power-saver</code>, prices were received directly by the Power Saver node. This made it hard to add grid tariff before the calculation was done. That is why this is now a separate node.</p></div><h2 id="configuration" tabindex="-1"><a class="header-anchor" href="#configuration" aria-hidden="true">#</a> Configuration</h2><p>There is no configuration except from node name.</p><h2 id="input" tabindex="-1"><a class="header-anchor" href="#input" aria-hidden="true">#</a> Input</h2><h3 id="tibber-input" tabindex="-1"><a class="header-anchor" href="#tibber-input" aria-hidden="true">#</a> Tibber input</h3>',11),m=n("If you are a Tibber customer, you can use the "),_=e("code",null,"tibber-query",-1),f=n(" node from the "),y={href:"https://flows.nodered.org/node/node-red-contrib-tibber-api",target:"_blank",rel:"noopener noreferrer"},g=e("code",null,"node-red-contrib-tibber-api",-1),v=n(". Set it up with the following query:"),k=a(`<div class="language-gql ext-gql line-numbers-mode"><pre class="language-gql"><code>{
2
+ viewer {
3
+ homes {
4
+ currentSubscription {
5
+ priceInfo {
6
+ today {
7
+ total
8
+ startsAt
9
+ }
10
+ tomorrow {
11
+ total
12
+ startsAt
13
+ }
14
+ }
15
+ }
16
+ }
17
+ }
18
+ }
19
+ </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br></div></div><p>Send the result from the <code>tibber-query</code> node with the query above directly to the <code>ps-receive-price</code> node. Make sure it is refreshed when new prices are ready. Prices for the next day are normally ready at 13:00, but refreshing every hour can be a good idea.</p>`,2),q=n("See example with Tibber, a switch and MQTT"),w=e("div",{class:"custom-container danger"},[e("p",{class:"custom-container-title"},"Warning"),e("p",null,"The query above returns an array with all houses you have in your Tibber account. It will work only if the house you want is the first house in the array, for example if you have only one house. If that is not the case, you must use the query below.")],-1),x=e("p",null,[e("strong",null,"Tibber query for a specific house")],-1),T=e("p",null,"If the above query does not give you the house you want as the first in the result array, you can use the following method. In this method you need run one query in order to find the id of the house you want the prices for first, and then use the id in the real query.",-1),I=n("Go to the "),N={href:"https://developer.tibber.com/",target:"_blank",rel:"noopener noreferrer"},P=n("Tibber Developer pages"),S=n(", sign in, and go to the "),A={href:"https://developer.tibber.com/explorer",target:"_blank",rel:"noopener noreferrer"},L=n("API Explorer"),O=n(". Load your personal token, then run the following query:"),j=a(`<div class="language-gql ext-gql line-numbers-mode"><pre class="language-gql"><code>{
20
+ viewer {
21
+ homes {
22
+ id
23
+ address {
24
+ address1
25
+ address2
26
+ address3
27
+ postalCode
28
+ city
29
+ country
30
+ }
31
+ }
32
+ }
33
+ }
34
+ </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br></div></div><p>Then copy the <code>id</code> of the house you want to use prices for. It may look like this:</p><div class="language-text ext-text line-numbers-mode"><pre class="language-text"><code>NB! This is just an example:
35
+ 142c1670-ab43-2ab3-ba6d-723703a551e2
36
+ </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br></div></div><p>Then use the id in the following query, replacing the id with the one you found in the previous query:</p><div class="language-gql ext-gql line-numbers-mode"><pre class="language-gql"><code>{
37
+ viewer {
38
+ home(id: &quot;142c1670-ab43-2ab3-ba6d-723703a551e2&quot;) {
39
+ currentSubscription{
40
+ priceInfo{
41
+ today {
42
+ total
43
+ startsAt
44
+ }
45
+ tomorrow {
46
+ total
47
+ startsAt
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ </code></pre><div class="highlight-lines"><br><br><div class="highlight-line">\xA0</div><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br></div><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br></div></div><p>This is the query you shall put in the <code>tibber-query</code> node.</p><h3 id="nord-pool-input" tabindex="-1"><a class="header-anchor" href="#nord-pool-input" aria-hidden="true">#</a> Nord Pool input</h3>`,7),B=n("This is especially designed to work for Home Assistant (HA), and the "),C={href:"https://github.com/custom-components/nordpool",target:"_blank",rel:"noopener noreferrer"},E=n("Nord Pool custom component"),H=n(". The Nord Pool component provides a "),V=e("em",null,"sensor",-1),D=n(" that gives price per hour for today and tomorrow (after 13:00). Send the output from this sensor directly to the "),M=e("code",null,"ps-receive-price",-1),R=n(" node. Make sure this is done whenever the node is updated, as well as when the system starts up."),F=a('<p>Data can be sent from both the <code>current state</code> node or the <code>events: state</code> node.</p><div class="custom-container tip"><p class="custom-container-title">Output properties</p><p>When using the <code>current state</code> node, configure the output properties to set <code>msg.payload</code> to <code>entity</code>.</p></div>',2),W=n("See example with Nord Pool and "),G=e("code",null,"current state",-1),J=n(" node"),Q=n("See example with Nord Pool and "),z=e("code",null,"events: state",-1),K=n(" node"),U=a(`<h3 id="other-input" tabindex="-1"><a class="header-anchor" href="#other-input" aria-hidden="true">#</a> Other input</h3><p>If you cannot use any of the two above (Tibber or Nord Pool), create the input to the node with the payload containing JSON like this:</p><div class="language-json ext-json line-numbers-mode"><pre class="language-json"><code><span class="token punctuation">{</span>
55
+ <span class="token property">&quot;today&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>
56
+ <span class="token punctuation">{</span> <span class="token property">&quot;value&quot;</span><span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span> <span class="token property">&quot;start&quot;</span><span class="token operator">:</span> <span class="token string">&quot;2021-06-21T00:00:00+02:00&quot;</span> <span class="token punctuation">}</span><span class="token punctuation">,</span>
57
+ <span class="token punctuation">{</span> <span class="token property">&quot;value&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span> <span class="token property">&quot;start&quot;</span><span class="token operator">:</span> <span class="token string">&quot;2021-06-21T01:00:00+02:00&quot;</span> <span class="token punctuation">}</span>
58
+ <span class="token comment">//...</span>
59
+ <span class="token punctuation">]</span><span class="token punctuation">,</span>
60
+ <span class="token property">&quot;tomorrow&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>
61
+ <span class="token punctuation">{</span> <span class="token property">&quot;value&quot;</span><span class="token operator">:</span> <span class="token number">3</span><span class="token punctuation">,</span> <span class="token property">&quot;start&quot;</span><span class="token operator">:</span> <span class="token string">&quot;2021-06-22T00:00:00+02:00&quot;</span> <span class="token punctuation">}</span><span class="token punctuation">,</span>
62
+ <span class="token punctuation">{</span> <span class="token property">&quot;value&quot;</span><span class="token operator">:</span> <span class="token number">4</span><span class="token punctuation">,</span> <span class="token property">&quot;start&quot;</span><span class="token operator">:</span> <span class="token string">&quot;2021-06-22T01:00:00+02:00&quot;</span> <span class="token punctuation">}</span>
63
+ <span class="token comment">//...</span>
64
+ <span class="token punctuation">]</span>
65
+ <span class="token punctuation">}</span>
66
+ </code></pre><div class="line-numbers" aria-hidden="true"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br></div></div><h2 id="output" tabindex="-1"><a class="header-anchor" href="#output" aria-hidden="true">#</a> Output</h2>`,4),X=n("The output is the "),Y=n("common strategy input format"),Z=n(", so it can be sent directly to the strategy nodes, or via any "),$=e("code",null,"ps-xxx-add-tariff",-1),ee=n(" node.");function ne(se,ae){const t=p("ExternalLinkIcon"),o=p("RouterLink");return i(),l(c,null,[h,e("p",null,[m,_,f,e("a",y,[g,s(t)]),v]),k,e("p",null,[s(o,{to:"/examples/example-tibber-mqtt.html"},{default:r(()=>[q]),_:1})]),w,x,T,e("p",null,[I,e("a",N,[P,s(t)]),S,e("a",A,[L,s(t)]),O]),j,e("p",null,[B,e("a",C,[E,s(t)]),H,V,D,M,R]),F,e("p",null,[s(o,{to:"/examples/example-nordpool-current-state.html"},{default:r(()=>[W,G,J]),_:1})]),e("p",null,[s(o,{to:"/examples/example-nordpool-events-state.html"},{default:r(()=>[Q,z,K]),_:1})]),U,e("p",null,[X,s(o,{to:"/nodes/strategy-input.html"},{default:r(()=>[Y]),_:1}),Z,$,ee])],64)}var pe=d(b,[["render",ne]]);export{pe as default};
@@ -0,0 +1 @@
1
+ const e={key:"v-677dfaed",path:"/nodes/ps-receive-price.html",title:"ps-receive-price",lang:"en-US",frontmatter:{prev:"./ps-strategy-lowest-price.md"},excerpt:"",headers:[{level:2,title:"Description",slug:"description",children:[]},{level:2,title:"Configuration",slug:"configuration",children:[]},{level:2,title:"Input",slug:"input",children:[{level:3,title:"Tibber input",slug:"tibber-input",children:[]},{level:3,title:"Nord Pool input",slug:"nord-pool-input",children:[]},{level:3,title:"Other input",slug:"other-input",children:[]}]},{level:2,title:"Output",slug:"output",children:[]}],git:{updatedTime:1640034618e3},filePathRelative:"nodes/ps-receive-price.md"};export{e as data};
@@ -0,0 +1 @@
1
+ const e={key:"v-0b5e3c8c",path:"/nodes/ps-strategy-best-save.html",title:"ps-strategy-best-save",lang:"en-US",frontmatter:{},excerpt:"",headers:[{level:2,title:"Description",slug:"description",children:[]},{level:2,title:"Configuration",slug:"configuration",children:[{level:3,title:"Dynamic config",slug:"dynamic-config",children:[]},{level:3,title:"Dynamic commands",slug:"dynamic-commands",children:[]}]},{level:2,title:"Input",slug:"input",children:[]},{level:2,title:"Output",slug:"output",children:[{level:3,title:"Output 1",slug:"output-1",children:[]},{level:3,title:"Output 2",slug:"output-2",children:[]},{level:3,title:"Output 3",slug:"output-3",children:[]},{level:3,title:"Data saved in context",slug:"data-saved-in-context",children:[]}]},{level:2,title:"Algorithm",slug:"algorithm",children:[]},{level:2,title:"Data used for calculation",slug:"data-used-for-calculation",children:[]},{level:2,title:"Restarts",slug:"restarts",children:[]},{level:2,title:"Integration with MagicMirror",slug:"integration-with-magicmirror",children:[]},{level:2,title:"Viewer",slug:"viewer",children:[]}],git:{updatedTime:1643919651e3},filePathRelative:"nodes/ps-strategy-best-save.md"};export{e as data};