node-red-contrib-power-saver 3.3.2 → 3.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/.firebase/hosting.ZG9jcy8udnVlcHJlc3MvZGlzdA.cache +94 -0
  2. package/.firebaserc +5 -0
  3. package/.github/workflows/firebase-hosting-merge.yml +20 -0
  4. package/.github/workflows/firebase-hosting-pull-request.yml +17 -0
  5. package/README.md +1 -1
  6. package/docs/.vuepress/components/BestSaveVerificator.vue +3 -3
  7. package/docs/.vuepress/config.js +15 -1
  8. package/docs/.vuepress/dist/404.html +23 -5
  9. package/docs/.vuepress/dist/assets/css/896.styles.21a80cb6.css +1 -0
  10. package/docs/.vuepress/dist/assets/css/styles.1c48cbd0.css +10 -0
  11. package/docs/.vuepress/dist/assets/img/heat-capacitor-temperatureVsPrice.6e74905b.png +0 -0
  12. package/docs/.vuepress/dist/assets/img/node-ps-strategy-heat-capacitor-cascade-control.2e75ed9e.png +0 -0
  13. package/docs/.vuepress/dist/assets/img/node-ps-strategy-heat-capacitor-simple-flow-example.29d9bf59.png +0 -0
  14. package/docs/.vuepress/dist/assets/img/oven-setpoint-calculation.5bda0eec.png +0 -0
  15. package/docs/.vuepress/dist/assets/img/overshoot-time.b3b5d70e.png +0 -0
  16. package/docs/.vuepress/dist/assets/js/229.5c5378fa.js +1 -0
  17. package/docs/.vuepress/dist/assets/js/331.872104cd.js +1 -0
  18. package/docs/.vuepress/dist/assets/js/405.f4edd94d.js +2 -0
  19. package/docs/.vuepress/dist/assets/js/{619.8ba1b1f6.js.LICENSE.txt → 405.f4edd94d.js.LICENSE.txt} +0 -0
  20. package/docs/.vuepress/dist/assets/js/490.1e639e05.js +1 -0
  21. package/docs/.vuepress/dist/assets/js/{491.17a98f38.js → 491.bd938119.js} +1 -1
  22. package/docs/.vuepress/dist/assets/js/555.d8963d84.js +1 -0
  23. package/docs/.vuepress/dist/assets/js/{811.6a3392d5.js → 811.5f659592.js} +0 -0
  24. package/docs/.vuepress/dist/assets/js/app.dfdee6f9.js +1 -0
  25. package/docs/.vuepress/dist/assets/js/runtime~app.f6ac32d7.js +1 -0
  26. package/docs/.vuepress/dist/assets/js/v-0607240a.0193a377.js +1 -0
  27. package/docs/.vuepress/dist/assets/js/v-08683c60.52e94cb6.js +1 -0
  28. package/docs/.vuepress/dist/assets/js/v-0aca7ba6.cac5d4b9.js +1 -0
  29. package/docs/.vuepress/dist/assets/js/v-0b5e3c8c.18561f6e.js +1 -0
  30. package/docs/.vuepress/dist/assets/js/v-1ad821fa.6697a349.js +1 -0
  31. package/docs/.vuepress/dist/assets/js/v-1b3a0ab8.c6c4e19b.js +1 -0
  32. package/docs/.vuepress/dist/assets/js/v-1e2b191e.07b8ab21.js +1 -0
  33. package/docs/.vuepress/dist/assets/js/v-29504124.00be7399.js +1 -0
  34. package/docs/.vuepress/dist/assets/js/v-30acb564.28af12af.js +1 -0
  35. package/docs/.vuepress/dist/assets/js/{v-3706649a.d7f73384.js → v-3706649a.c76d575b.js} +1 -1
  36. package/docs/.vuepress/dist/assets/js/v-4637f9e4.d334c29a.js +1 -0
  37. package/docs/.vuepress/dist/assets/js/v-4c28314d.8cbb0f9d.js +1 -0
  38. package/docs/.vuepress/dist/assets/js/v-510ed0d4.c04bc2e4.js +1 -0
  39. package/docs/.vuepress/dist/assets/js/{v-5954bcb2.937005d0.js → v-5954bcb2.dff3fc67.js} +1 -1
  40. package/docs/.vuepress/dist/assets/js/v-5db8da3a.e5e6d7a6.js +1 -0
  41. package/docs/.vuepress/dist/assets/js/v-61f728ca.81968036.js +1 -0
  42. package/docs/.vuepress/dist/assets/js/v-677dfaed.c159b0f4.js +1 -0
  43. package/docs/.vuepress/dist/assets/js/v-7446a652.8fc2c591.js +1 -0
  44. package/docs/.vuepress/dist/assets/js/v-7c87f26e.8ed52391.js +1 -0
  45. package/docs/.vuepress/dist/assets/js/v-84304104.f3f07ed3.js +1 -0
  46. package/docs/.vuepress/dist/assets/js/{v-8daa1a0e.c63afc2b.js → v-8daa1a0e.ed84ca09.js} +1 -1
  47. package/docs/.vuepress/dist/assets/js/{v-b4a42144.733e4e7c.js → v-b4a42144.9a2a0c9f.js} +1 -1
  48. package/docs/.vuepress/dist/assets/js/v-e8c55052.b7d52fc6.js +1 -0
  49. package/docs/.vuepress/dist/assets/js/v-fffb8e28.d09ab959.js +1 -0
  50. package/docs/.vuepress/dist/changelog/index.html +23 -5
  51. package/docs/.vuepress/dist/contribute/index.html +23 -5
  52. package/docs/.vuepress/dist/examples/example-cascade-temperature-control.html +304 -0
  53. package/docs/.vuepress/dist/examples/example-heat-capacitor.html +247 -0
  54. package/docs/.vuepress/dist/examples/example-next-schedule-entity.html +27 -9
  55. package/docs/.vuepress/dist/examples/example-nordpool-current-state.html +24 -6
  56. package/docs/.vuepress/dist/examples/example-nordpool-events-state.html +24 -6
  57. package/docs/.vuepress/dist/examples/example-tibber-mqtt.html +24 -6
  58. package/docs/.vuepress/dist/examples/index.html +23 -5
  59. package/docs/.vuepress/dist/faq/best-save-viewer.html +23 -5
  60. package/docs/.vuepress/dist/faq/index.html +23 -5
  61. package/docs/.vuepress/dist/guide/index.html +24 -6
  62. package/docs/.vuepress/dist/index.html +23 -5
  63. package/docs/.vuepress/dist/nodes/index.html +23 -5
  64. package/docs/.vuepress/dist/nodes/old-power-saver-doc.html +25 -7
  65. package/docs/.vuepress/dist/nodes/power-saver.html +23 -5
  66. package/docs/.vuepress/dist/nodes/ps-elvia-add-tariff.html +23 -5
  67. package/docs/.vuepress/dist/nodes/ps-general-add-tariff.html +23 -5
  68. package/docs/.vuepress/dist/nodes/ps-receive-price.html +26 -8
  69. package/docs/.vuepress/dist/nodes/ps-strategy-best-save.html +32 -9
  70. package/docs/.vuepress/dist/nodes/ps-strategy-heat-capacitor.html +260 -0
  71. package/docs/.vuepress/dist/nodes/ps-strategy-lowest-price.html +30 -7
  72. package/docs/.vuepress/dist/nodes/strategy-input.html +24 -6
  73. package/docs/README.md +1 -1
  74. package/docs/changelog/README.md +14 -0
  75. package/docs/contribute/README.md +8 -0
  76. package/docs/examples/README.md +8 -2
  77. package/docs/examples/example-cascade-temperature-control.md +346 -0
  78. package/docs/examples/example-heat-capacitor.md +271 -0
  79. package/docs/images/heat-capacitor-temperatureVsPrice.png +0 -0
  80. package/docs/images/node-ps-strategy-heat-capacitor-cascade-control.png +0 -0
  81. package/docs/images/node-ps-strategy-heat-capacitor-simple-flow-example.png +0 -0
  82. package/docs/images/node-ps-strategy-heat-capacitor.png +0 -0
  83. package/docs/images/oven-setpoint-calculation.png +0 -0
  84. package/docs/images/overshoot-time.png +0 -0
  85. package/docs/images/temperature-manipulation-config.png +0 -0
  86. package/docs/nodes/README.md +7 -1
  87. package/docs/nodes/ps-strategy-heat-capacitor.md +346 -0
  88. package/examples/add-general-tariff.json +103 -0
  89. package/examples/best-save-for-water-heater.json +140 -0
  90. package/examples/elvia-add-tariff.json +99 -0
  91. package/examples/elvia-get-tariff-types.json +58 -0
  92. package/examples/elvia-get-tariff.json +60 -0
  93. package/examples/heat-capacitor-for-room-heating.json +186 -0
  94. package/examples/lowest-price-for-heating-cables.json +159 -0
  95. package/firebase.json +6 -0
  96. package/package.json +17 -9
  97. package/public/404.html +33 -0
  98. package/public/index.html +89 -0
  99. package/src/elvia/elvia-tariff.js +2 -1
  100. package/src/handle-input.js +6 -3
  101. package/src/strategy-heat-capacitor-functions.js +246 -0
  102. package/src/strategy-heat-capacitor.html +85 -0
  103. package/src/strategy-heat-capacitor.js +125 -0
  104. package/test/data/converted-prices.json +1 -1
  105. package/test/data/multiple-trades.json +53 -0
  106. package/test/data/tibber-decreasing-24h.json +101 -0
  107. package/test/data/tibber-decreasing2-24h.json +101 -0
  108. package/test/strategy-heat-capacitor-node.test.js +183 -0
  109. package/test/strategy-heat-capacitor.test.js +103 -0
  110. package/test/strategy-lowest-price-functions.test.js +1 -1
  111. package/test/utils.test.js +0 -2
  112. package/docs/.vuepress/dist/.nojekyll +0 -0
  113. package/docs/.vuepress/dist/assets/css/563.styles.99f4a8aa.css +0 -1
  114. package/docs/.vuepress/dist/assets/css/styles.031dcf27.css +0 -9
  115. package/docs/.vuepress/dist/assets/js/262.cf2c57d2.js +0 -1
  116. package/docs/.vuepress/dist/assets/js/293.08ea5200.js +0 -1
  117. package/docs/.vuepress/dist/assets/js/331.15ee3c51.js +0 -1
  118. package/docs/.vuepress/dist/assets/js/619.8ba1b1f6.js +0 -2
  119. package/docs/.vuepress/dist/assets/js/app.b705176c.js +0 -1
  120. package/docs/.vuepress/dist/assets/js/runtime~app.47f4f812.js +0 -1
  121. package/docs/.vuepress/dist/assets/js/v-0607240a.a57c2199.js +0 -1
  122. package/docs/.vuepress/dist/assets/js/v-08683c60.ccafdcab.js +0 -1
  123. package/docs/.vuepress/dist/assets/js/v-0aca7ba6.25903946.js +0 -1
  124. package/docs/.vuepress/dist/assets/js/v-0b5e3c8c.a6a015b4.js +0 -1
  125. package/docs/.vuepress/dist/assets/js/v-1ad821fa.5978386f.js +0 -1
  126. package/docs/.vuepress/dist/assets/js/v-1e2b191e.88dc5555.js +0 -1
  127. package/docs/.vuepress/dist/assets/js/v-29504124.4aca27d5.js +0 -1
  128. package/docs/.vuepress/dist/assets/js/v-30acb564.529a3c16.js +0 -1
  129. package/docs/.vuepress/dist/assets/js/v-4637f9e4.703b1d96.js +0 -1
  130. package/docs/.vuepress/dist/assets/js/v-510ed0d4.7b142a81.js +0 -1
  131. package/docs/.vuepress/dist/assets/js/v-5db8da3a.3de3588d.js +0 -1
  132. package/docs/.vuepress/dist/assets/js/v-61f728ca.21d432fe.js +0 -1
  133. package/docs/.vuepress/dist/assets/js/v-677dfaed.44a653b9.js +0 -1
  134. package/docs/.vuepress/dist/assets/js/v-7446a652.74b21d0b.js +0 -1
  135. package/docs/.vuepress/dist/assets/js/v-7c87f26e.ee5be992.js +0 -1
  136. package/docs/.vuepress/dist/assets/js/v-e8c55052.ab0a79ec.js +0 -1
  137. package/docs/.vuepress/dist/assets/js/v-fffb8e28.525be02a.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunknode_red_contrib_power_saver=self.webpackChunknode_red_contrib_power_saver||[]).push([[495],{3707:(e,i,l)=>{l.r(i),l.d(i,{data:()=>a});const a={key:"v-510ed0d4",path:"/changelog/",title:"Change Log",lang:"en-US",frontmatter:{sidebar:"auto"},excerpt:"",headers:[{level:2,title:"3.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:1645806035e3},filePathRelative:"changelog/README.md"}},7203:(e,i,l)=>{l.r(i),l.d(i,{default:()=>s});var a=l(6252);const t=(0,a.uE)('<h1 id="change-log" tabindex="-1"><a class="header-anchor" href="#change-log" aria-hidden="true">#</a> Change Log</h1><p>List the most significant changes, starting in version 1.0.9.</p><h2 id="_3-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>',11),d=(0,a._)("li",null,[(0,a.Uk)("Move doc to "),(0,a._)("a",{href:"power-saver.smoky.no"},"power-saver.smoky.no")],-1),r=(0,a.Uk)("Make tool to test the result of the best save node: "),n=(0,a.Uk)("Best Save Viewer"),o=(0,a.uE)('<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),h={},s=(0,l(3744).Z)(h,[["render",function(e,i){const l=(0,a.up)("RouterLink");return(0,a.wg)(),(0,a.iD)(a.HY,null,[t,(0,a._)("ul",null,[d,(0,a._)("li",null,[r,(0,a.Wm)(l,{to:"/changelog/power-saver.smoky.no/faq/best-save-viewer.html"},{default:(0,a.w5)((()=>[n])),_:1})])]),o],64)}]])},3744:(e,i)=>{i.Z=(e,i)=>{const l=e.__vccOpts||e;for(const[e,a]of i)l[e]=a;return l}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunknode_red_contrib_power_saver=self.webpackChunknode_red_contrib_power_saver||[]).push([[317],{1535:(n,s,a)=>{a.r(s),a.d(s,{data:()=>p});const p={key:"v-5954bcb2",path:"/nodes/strategy-input.html",title:"Strategy input format",lang:"en-US",frontmatter:{},excerpt:"",headers:[],filePathRelative:"nodes/strategy-input.md",git:{updatedTime:1640034618e3}}},886:(n,s,a)=>{a.r(s),a.d(s,{default:()=>e});const p=(0,a(6252).uE)('<h1 id="strategy-input-format" tabindex="-1"><a class="header-anchor" href="#strategy-input-format" aria-hidden="true">#</a> Strategy input format</h1><p>The common input for strategy nodes is a payload with a <code>priceData</code> array containing an object for each hour. Each object has a <code>value</code> which is the price, and a <code>start</code> which is the start time for the hour.</p><p>Example:</p><div class="language-json ext-json line-numbers-mode"><pre class="language-json"><code><span class="token punctuation">{</span>\n <span class="token property">&quot;priceData&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;value&quot;</span><span class="token operator">:</span> <span class="token number">0.9544</span><span class="token punctuation">,</span>\n <span class="token property">&quot;start&quot;</span><span class="token operator">:</span> <span class="token string">&quot;2021-12-07T00:00:00.000+01:00&quot;</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;value&quot;</span><span class="token operator">:</span> <span class="token number">0.8973</span><span class="token punctuation">,</span>\n <span class="token property">&quot;start&quot;</span><span class="token operator">:</span> <span class="token string">&quot;2021-12-07T01:00:00.000+01:00&quot;</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;value&quot;</span><span class="token operator">:</span> <span class="token number">0.8668</span><span class="token punctuation">,</span>\n <span class="token property">&quot;start&quot;</span><span class="token operator">:</span> <span class="token string">&quot;2021-12-07T02:00:00.000+01:00&quot;</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;value&quot;</span><span class="token operator">:</span> <span class="token number">0.8683</span><span class="token punctuation">,</span>\n <span class="token property">&quot;start&quot;</span><span class="token operator">:</span> <span class="token string">&quot;2021-12-07T03:00:00.000+01:00&quot;</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;value&quot;</span><span class="token operator">:</span> <span class="token number">0.8942</span><span class="token punctuation">,</span>\n <span class="token property">&quot;start&quot;</span><span class="token operator">:</span> <span class="token string">&quot;2021-12-07T04:00:00.000+01:00&quot;</span>\n <span class="token punctuation">}</span>\n <span class="token comment">// ... normally 24 or 48 hours</span>\n <span class="token punctuation">]</span>\n<span class="token punctuation">}</span>\n</code></pre><div class="line-numbers"><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></div></div><p>This format is used for:</p><ul><li>Output of the <code>ps-receive-price</code> node</li><li>Input and output of the <code>ps-xxx-add-tariff</code> nodes</li><li>Input for the strategy nodes (<code>ps-strategy-xxx-xxx</code>)</li></ul>',6),t={},e=(0,a(3744).Z)(t,[["render",function(n,s){return p}]])},3744:(n,s)=>{s.Z=(n,s)=>{const a=n.__vccOpts||n;for(const[n,p]of s)a[n]=p;return a}}}]);
1
+ "use strict";(self.webpackChunknode_red_contrib_power_saver=self.webpackChunknode_red_contrib_power_saver||[]).push([[317],{1535:(n,s,a)=>{a.r(s),a.d(s,{data:()=>p});const p={key:"v-5954bcb2",path:"/nodes/strategy-input.html",title:"Strategy input format",lang:"en-US",frontmatter:{},excerpt:"",headers:[],git:{updatedTime:1640034618e3},filePathRelative:"nodes/strategy-input.md"}},886:(n,s,a)=>{a.r(s),a.d(s,{default:()=>e});const p=(0,a(6252).uE)('<h1 id="strategy-input-format" tabindex="-1"><a class="header-anchor" href="#strategy-input-format" aria-hidden="true">#</a> Strategy input format</h1><p>The common input for strategy nodes is a payload with a <code>priceData</code> array containing an object for each hour. Each object has a <code>value</code> which is the price, and a <code>start</code> which is the start time for the hour.</p><p>Example:</p><div class="language-json ext-json line-numbers-mode"><pre class="language-json"><code><span class="token punctuation">{</span>\n <span class="token property">&quot;priceData&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;value&quot;</span><span class="token operator">:</span> <span class="token number">0.9544</span><span class="token punctuation">,</span>\n <span class="token property">&quot;start&quot;</span><span class="token operator">:</span> <span class="token string">&quot;2021-12-07T00:00:00.000+01:00&quot;</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;value&quot;</span><span class="token operator">:</span> <span class="token number">0.8973</span><span class="token punctuation">,</span>\n <span class="token property">&quot;start&quot;</span><span class="token operator">:</span> <span class="token string">&quot;2021-12-07T01:00:00.000+01:00&quot;</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;value&quot;</span><span class="token operator">:</span> <span class="token number">0.8668</span><span class="token punctuation">,</span>\n <span class="token property">&quot;start&quot;</span><span class="token operator">:</span> <span class="token string">&quot;2021-12-07T02:00:00.000+01:00&quot;</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;value&quot;</span><span class="token operator">:</span> <span class="token number">0.8683</span><span class="token punctuation">,</span>\n <span class="token property">&quot;start&quot;</span><span class="token operator">:</span> <span class="token string">&quot;2021-12-07T03:00:00.000+01:00&quot;</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;value&quot;</span><span class="token operator">:</span> <span class="token number">0.8942</span><span class="token punctuation">,</span>\n <span class="token property">&quot;start&quot;</span><span class="token operator">:</span> <span class="token string">&quot;2021-12-07T04:00:00.000+01:00&quot;</span>\n <span class="token punctuation">}</span>\n <span class="token comment">// ... normally 24 or 48 hours</span>\n <span class="token punctuation">]</span>\n<span class="token punctuation">}</span>\n</code></pre><div class="line-numbers"><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></div></div><p>This format is used for:</p><ul><li>Output of the <code>ps-receive-price</code> node</li><li>Input and output of the <code>ps-xxx-add-tariff</code> nodes</li><li>Input for the strategy nodes (<code>ps-strategy-xxx-xxx</code>)</li></ul>',6),t={},e=(0,a(3744).Z)(t,[["render",function(n,s){return p}]])},3744:(n,s)=>{s.Z=(n,s)=>{const a=n.__vccOpts||n;for(const[n,p]of s)a[n]=p;return a}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunknode_red_contrib_power_saver=self.webpackChunknode_red_contrib_power_saver||[]).push([[625],{8682:(s,n,a)=>{a.r(n),a.d(n,{data:()=>t});const t={key:"v-5db8da3a",path:"/examples/example-tibber-mqtt.html",title:"Tibber, a switch and MQTT",lang:"en-US",frontmatter:{},excerpt:"",headers:[{level:2,title:"Description",slug:"description",children:[]},{level:2,title:"Flow",slug:"flow",children:[]}],git:{updatedTime:1642369461e3},filePathRelative:"examples/example-tibber-mqtt.md"}},9426:(s,n,a)=>{a.r(n),a.d(n,{default:()=>b});var t=a(6252),p=a(3837);const o=(0,t._)("h1",{id:"tibber-a-switch-and-mqtt",tabindex:"-1"},[(0,t._)("a",{class:"header-anchor",href:"#tibber-a-switch-and-mqtt","aria-hidden":"true"},"#"),(0,t.Uk)(" Tibber, a switch and MQTT")],-1),e=(0,t._)("h2",{id:"description",tabindex:"-1"},[(0,t._)("a",{class:"header-anchor",href:"#description","aria-hidden":"true"},"#"),(0,t.Uk)(" Description")],-1),u=(0,t.Uk)("In this example, data is read from Tibber and used to turn on/off a switch, scheduled by the "),c=(0,t._)("code",null,"ps-best-save",-1),r=(0,t.Uk)(" node to be off up to 5 hours in a row, but only if at least 5 cents/øre is saved per kWh. Data is also sent to MQTT, for example to be displayed on "),l={href:"https://magicmirror.builders/",target:"_blank",rel:"noopener noreferrer"},k=(0,t.Uk)("Magic Mirror"),q=(0,t.Uk)("."),i=(0,t.uE)('<p><img src="'+p+'" alt="Example with Tibber and MQTT"></p><h2 id="flow" tabindex="-1"><a class="header-anchor" href="#flow" aria-hidden="true">#</a> Flow</h2><div class="language-json ext-json"><pre class="language-json"><code><span class="token punctuation">[</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;id&quot;</span><span class="token operator">:</span> <span class="token string">&quot;467a5fe.d0bbba&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;type&quot;</span><span class="token operator">:</span> <span class="token string">&quot;mqtt out&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;z&quot;</span><span class="token operator">:</span> <span class="token string">&quot;d938c47f.3398f8&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;name&quot;</span><span class="token operator">:</span> <span class="token string">&quot;Send switch to MM&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;topic&quot;</span><span class="token operator">:</span> <span class="token string">&quot;powersaver/switch&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;qos&quot;</span><span class="token operator">:</span> <span class="token string">&quot;0&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;retain&quot;</span><span class="token operator">:</span> <span class="token string">&quot;false&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;broker&quot;</span><span class="token operator">:</span> <span class="token string">&quot;24fbcfb5.569ea&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;x&quot;</span><span class="token operator">:</span> <span class="token number">730</span><span class="token punctuation">,</span>\n <span class="token property">&quot;y&quot;</span><span class="token operator">:</span> <span class="token number">120</span><span class="token punctuation">,</span>\n <span class="token property">&quot;wires&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;id&quot;</span><span class="token operator">:</span> <span class="token string">&quot;ab2d599a.077738&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;type&quot;</span><span class="token operator">:</span> <span class="token string">&quot;tibber-query&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;z&quot;</span><span class="token operator">:</span> <span class="token string">&quot;d938c47f.3398f8&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;name&quot;</span><span class="token operator">:</span> <span class="token string">&quot;Get Tibber prices&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;active&quot;</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>\n <span class="token property">&quot;apiEndpointRef&quot;</span><span class="token operator">:</span> <span class="token string">&quot;b70ec5d0.6f8f08&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;x&quot;</span><span class="token operator">:</span> <span class="token number">470</span><span class="token punctuation">,</span>\n <span class="token property">&quot;y&quot;</span><span class="token operator">:</span> <span class="token number">100</span><span class="token punctuation">,</span>\n <span class="token property">&quot;wires&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">[</span><span class="token string">&quot;0ef929fde193cf4d&quot;</span><span class="token punctuation">]</span><span class="token punctuation">]</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;id&quot;</span><span class="token operator">:</span> <span class="token string">&quot;4f11b5ae.4cc22c&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;type&quot;</span><span class="token operator">:</span> <span class="token string">&quot;inject&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;z&quot;</span><span class="token operator">:</span> <span class="token string">&quot;d938c47f.3398f8&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;name&quot;</span><span class="token operator">:</span> <span class="token string">&quot;Refresh&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;props&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;p&quot;</span><span class="token operator">:</span> <span class="token string">&quot;payload&quot;</span>\n <span class="token punctuation">}</span>\n <span class="token punctuation">]</span><span class="token punctuation">,</span>\n <span class="token property">&quot;repeat&quot;</span><span class="token operator">:</span> <span class="token string">&quot;3600&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;crontab&quot;</span><span class="token operator">:</span> <span class="token string">&quot;&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;once&quot;</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>\n <span class="token property">&quot;onceDelay&quot;</span><span class="token operator">:</span> <span class="token string">&quot;1&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;topic&quot;</span><span class="token operator">:</span> <span class="token string">&quot;&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;payload&quot;</span><span class="token operator">:</span> <span class="token string">&quot;{ viewer { homes { currentSubscription{ priceInfo{ today { total startsAt } tomorrow { total startsAt } } } } } }&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;payloadType&quot;</span><span class="token operator">:</span> <span class="token string">&quot;str&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;x&quot;</span><span class="token operator">:</span> <span class="token number">280</span><span class="token punctuation">,</span>\n <span class="token property">&quot;y&quot;</span><span class="token operator">:</span> <span class="token number">100</span><span class="token punctuation">,</span>\n <span class="token property">&quot;wires&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">[</span><span class="token string">&quot;ab2d599a.077738&quot;</span><span class="token punctuation">]</span><span class="token punctuation">]</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;id&quot;</span><span class="token operator">:</span> <span class="token string">&quot;42d8b632.402e38&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;type&quot;</span><span class="token operator">:</span> <span class="token string">&quot;mqtt out&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;z&quot;</span><span class="token operator">:</span> <span class="token string">&quot;d938c47f.3398f8&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;name&quot;</span><span class="token operator">:</span> <span class="token string">&quot;Send schedule to MM&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;topic&quot;</span><span class="token operator">:</span> <span class="token string">&quot;powersaver/plan&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;qos&quot;</span><span class="token operator">:</span> <span class="token string">&quot;0&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;retain&quot;</span><span class="token operator">:</span> <span class="token string">&quot;true&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;broker&quot;</span><span class="token operator">:</span> <span class="token string">&quot;24fbcfb5.569ea&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;x&quot;</span><span class="token operator">:</span> <span class="token number">740</span><span class="token punctuation">,</span>\n <span class="token property">&quot;y&quot;</span><span class="token operator">:</span> <span class="token number">240</span><span class="token punctuation">,</span>\n <span class="token property">&quot;wires&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;id&quot;</span><span class="token operator">:</span> <span class="token string">&quot;5e485ff7.db156&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;type&quot;</span><span class="token operator">:</span> <span class="token string">&quot;api-call-service&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;z&quot;</span><span class="token operator">:</span> <span class="token string">&quot;d938c47f.3398f8&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;name&quot;</span><span class="token operator">:</span> <span class="token string">&quot;Turn on VVB&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;server&quot;</span><span class="token operator">:</span> <span class="token string">&quot;ec4a12a1.b2be9&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;version&quot;</span><span class="token operator">:</span> <span class="token number">3</span><span class="token punctuation">,</span>\n <span class="token property">&quot;debugenabled&quot;</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>\n <span class="token property">&quot;service_domain&quot;</span><span class="token operator">:</span> <span class="token string">&quot;switch&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;service&quot;</span><span class="token operator">:</span> <span class="token string">&quot;turn_on&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;entityId&quot;</span><span class="token operator">:</span> <span class="token string">&quot;switch.varmtvannsbereder_switch&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;data&quot;</span><span class="token operator">:</span> <span class="token string">&quot;&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;dataType&quot;</span><span class="token operator">:</span> <span class="token string">&quot;jsonata&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;mergecontext&quot;</span><span class="token operator">:</span> <span class="token string">&quot;&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;mustacheAltTags&quot;</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>\n <span class="token property">&quot;outputProperties&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span>\n <span class="token property">&quot;queue&quot;</span><span class="token operator">:</span> <span class="token string">&quot;none&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;x&quot;</span><span class="token operator">:</span> <span class="token number">710</span><span class="token punctuation">,</span>\n <span class="token property">&quot;y&quot;</span><span class="token operator">:</span> <span class="token number">60</span><span class="token punctuation">,</span>\n <span class="token property">&quot;wires&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">]</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;id&quot;</span><span class="token operator">:</span> <span class="token string">&quot;9c978d1c.ee76&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;type&quot;</span><span class="token operator">:</span> <span class="token string">&quot;api-call-service&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;z&quot;</span><span class="token operator">:</span> <span class="token string">&quot;d938c47f.3398f8&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;name&quot;</span><span class="token operator">:</span> <span class="token string">&quot;Turn off VVB&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;server&quot;</span><span class="token operator">:</span> <span class="token string">&quot;ec4a12a1.b2be9&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;version&quot;</span><span class="token operator">:</span> <span class="token number">3</span><span class="token punctuation">,</span>\n <span class="token property">&quot;debugenabled&quot;</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>\n <span class="token property">&quot;service_domain&quot;</span><span class="token operator">:</span> <span class="token string">&quot;switch&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;service&quot;</span><span class="token operator">:</span> <span class="token string">&quot;turn_off&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;entityId&quot;</span><span class="token operator">:</span> <span class="token string">&quot;switch.varmtvannsbereder_switch&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;data&quot;</span><span class="token operator">:</span> <span class="token string">&quot;&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;dataType&quot;</span><span class="token operator">:</span> <span class="token string">&quot;json&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;mergecontext&quot;</span><span class="token operator">:</span> <span class="token string">&quot;&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;mustacheAltTags&quot;</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>\n <span class="token property">&quot;outputProperties&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span>\n <span class="token property">&quot;queue&quot;</span><span class="token operator">:</span> <span class="token string">&quot;none&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;x&quot;</span><span class="token operator">:</span> <span class="token number">710</span><span class="token punctuation">,</span>\n <span class="token property">&quot;y&quot;</span><span class="token operator">:</span> <span class="token number">180</span><span class="token punctuation">,</span>\n <span class="token property">&quot;wires&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">]</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;id&quot;</span><span class="token operator">:</span> <span class="token string">&quot;5b6be1568744c6cf&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;type&quot;</span><span class="token operator">:</span> <span class="token string">&quot;ps-strategy-best-save&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;z&quot;</span><span class="token operator">:</span> <span class="token string">&quot;d938c47f.3398f8&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;name&quot;</span><span class="token operator">:</span> <span class="token string">&quot;Best Save&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;maxHoursToSaveInSequence&quot;</span><span class="token operator">:</span> <span class="token string">&quot;5&quot;</span><span class="token punctuation">,</span>\n <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>\n <span class="token property">&quot;minSaving&quot;</span><span class="token operator">:</span> <span class="token string">&quot;0.05&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;sendCurrentValueWhenRescheduling&quot;</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>\n <span class="token property">&quot;outputIfNoSchedule&quot;</span><span class="token operator">:</span> <span class="token string">&quot;true&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;x&quot;</span><span class="token operator">:</span> <span class="token number">490</span><span class="token punctuation">,</span>\n <span class="token property">&quot;y&quot;</span><span class="token operator">:</span> <span class="token number">160</span><span class="token punctuation">,</span>\n <span class="token property">&quot;wires&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">[</span><span class="token string">&quot;467a5fe.d0bbba&quot;</span><span class="token punctuation">,</span> <span class="token string">&quot;5e485ff7.db156&quot;</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token punctuation">[</span><span class="token string">&quot;9c978d1c.ee76&quot;</span><span class="token punctuation">,</span> <span class="token string">&quot;467a5fe.d0bbba&quot;</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token punctuation">[</span><span class="token string">&quot;42d8b632.402e38&quot;</span><span class="token punctuation">]</span><span class="token punctuation">]</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;id&quot;</span><span class="token operator">:</span> <span class="token string">&quot;0ef929fde193cf4d&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;type&quot;</span><span class="token operator">:</span> <span class="token string">&quot;ps-receive-price&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;z&quot;</span><span class="token operator">:</span> <span class="token string">&quot;d938c47f.3398f8&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;name&quot;</span><span class="token operator">:</span> <span class="token string">&quot;Price Receiver&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;x&quot;</span><span class="token operator">:</span> <span class="token number">280</span><span class="token punctuation">,</span>\n <span class="token property">&quot;y&quot;</span><span class="token operator">:</span> <span class="token number">160</span><span class="token punctuation">,</span>\n <span class="token property">&quot;wires&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">[</span><span class="token string">&quot;5b6be1568744c6cf&quot;</span><span class="token punctuation">]</span><span class="token punctuation">]</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;id&quot;</span><span class="token operator">:</span> <span class="token string">&quot;24fbcfb5.569ea&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;type&quot;</span><span class="token operator">:</span> <span class="token string">&quot;mqtt-broker&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;name&quot;</span><span class="token operator">:</span> <span class="token string">&quot;MQTT&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;broker&quot;</span><span class="token operator">:</span> <span class="token string">&quot;10.0.0.15&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;port&quot;</span><span class="token operator">:</span> <span class="token string">&quot;1883&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;clientid&quot;</span><span class="token operator">:</span> <span class="token string">&quot;&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;usetls&quot;</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>\n <span class="token property">&quot;compatmode&quot;</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>\n <span class="token property">&quot;keepalive&quot;</span><span class="token operator">:</span> <span class="token string">&quot;60&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;cleansession&quot;</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>\n <span class="token property">&quot;birthTopic&quot;</span><span class="token operator">:</span> <span class="token string">&quot;&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;birthQos&quot;</span><span class="token operator">:</span> <span class="token string">&quot;0&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;birthPayload&quot;</span><span class="token operator">:</span> <span class="token string">&quot;&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;closeTopic&quot;</span><span class="token operator">:</span> <span class="token string">&quot;&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;closeQos&quot;</span><span class="token operator">:</span> <span class="token string">&quot;0&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;closePayload&quot;</span><span class="token operator">:</span> <span class="token string">&quot;&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;willTopic&quot;</span><span class="token operator">:</span> <span class="token string">&quot;&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;willQos&quot;</span><span class="token operator">:</span> <span class="token string">&quot;0&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;willPayload&quot;</span><span class="token operator">:</span> <span class="token string">&quot;&quot;</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;id&quot;</span><span class="token operator">:</span> <span class="token string">&quot;b70ec5d0.6f8f08&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;type&quot;</span><span class="token operator">:</span> <span class="token string">&quot;tibber-api-endpoint&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;feedUrl&quot;</span><span class="token operator">:</span> <span class="token string">&quot;wss://api.tibber.com/v1-beta/gql/subscriptions&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;queryUrl&quot;</span><span class="token operator">:</span> <span class="token string">&quot;https://api.tibber.com/v1-beta/gql&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;name&quot;</span><span class="token operator">:</span> <span class="token string">&quot;Tibber API&quot;</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;id&quot;</span><span class="token operator">:</span> <span class="token string">&quot;ec4a12a1.b2be9&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;type&quot;</span><span class="token operator">:</span> <span class="token string">&quot;server&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;name&quot;</span><span class="token operator">:</span> <span class="token string">&quot;Home Assistant&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;version&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span>\n <span class="token property">&quot;addon&quot;</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>\n <span class="token property">&quot;rejectUnauthorizedCerts&quot;</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>\n <span class="token property">&quot;ha_boolean&quot;</span><span class="token operator">:</span> <span class="token string">&quot;y|yes|true|on|home|open&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;connectionDelay&quot;</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>\n <span class="token property">&quot;cacheJson&quot;</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>\n <span class="token property">&quot;heartbeat&quot;</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>\n <span class="token property">&quot;heartbeatInterval&quot;</span><span class="token operator">:</span> <span class="token number">30</span>\n <span class="token punctuation">}</span>\n<span class="token punctuation">]</span>\n</code></pre></div>',3),y={},b=(0,a(3744).Z)(y,[["render",function(s,n){const a=(0,t.up)("ExternalLinkIcon");return(0,t.wg)(),(0,t.iD)(t.HY,null,[o,e,(0,t._)("p",null,[u,c,r,(0,t._)("a",l,[k,(0,t.Wm)(a)]),q]),i],64)}]])},3744:(s,n)=>{n.Z=(s,n)=>{const a=s.__vccOpts||s;for(const[s,t]of n)a[s]=t;return a}},3837:(s,n,a)=>{s.exports=a.p+"assets/img/power-saver-tibber-mqtt.16891dd2.png"}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunknode_red_contrib_power_saver=self.webpackChunknode_red_contrib_power_saver||[]).push([[283],{4773:(n,s,a)=>{a.r(s),a.d(s,{data:()=>t});const t={key:"v-61f728ca",path:"/examples/example-nordpool-current-state.html",title:"Nord Pool and current state node",lang:"en-US",frontmatter:{},excerpt:"",headers:[{level:2,title:"Description",slug:"description",children:[]},{level:2,title:"Flow",slug:"flow",children:[]}],git:{updatedTime:1642369461e3},filePathRelative:"examples/example-nordpool-current-state.md"}},6546:(n,s,a)=>{a.r(s),a.d(s,{default:()=>u});var t=a(6252),p=a(3590);const o=(0,t.uE)('<h1 id="nord-pool-and-current-state-node" tabindex="-1"><a class="header-anchor" href="#nord-pool-and-current-state-node" aria-hidden="true">#</a> Nord Pool and current state node</h1><h2 id="description" tabindex="-1"><a class="header-anchor" href="#description" aria-hidden="true">#</a> Description</h2><p>In this example, data is read from the Nord Pool sensor in HA via the <code>current state</code> node. The <code>ps-best-save</code> node is used to control a water heater via a switch, controlled by <code>call service</code> nodes in Home Assistant. The schedule is printed to a debug node. An <code>inject</code> node is used to trigger the reading of the Nord Pool sensor every hour.</p><p><img src="'+p+'" alt="Example with Tibber and MQTT"></p><h2 id="flow" tabindex="-1"><a class="header-anchor" href="#flow" aria-hidden="true">#</a> Flow</h2><div class="language-json ext-json"><pre class="language-json"><code><span class="token punctuation">[</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;id&quot;</span><span class="token operator">:</span> <span class="token string">&quot;e2578f6a.210a8&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;type&quot;</span><span class="token operator">:</span> <span class="token string">&quot;debug&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;z&quot;</span><span class="token operator">:</span> <span class="token string">&quot;d938c47f.3398f8&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;name&quot;</span><span class="token operator">:</span> <span class="token string">&quot;Nord Pool result&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;active&quot;</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>\n <span class="token property">&quot;tosidebar&quot;</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>\n <span class="token property">&quot;console&quot;</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>\n <span class="token property">&quot;tostatus&quot;</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>\n <span class="token property">&quot;complete&quot;</span><span class="token operator">:</span> <span class="token string">&quot;true&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;targetType&quot;</span><span class="token operator">:</span> <span class="token string">&quot;full&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;statusVal&quot;</span><span class="token operator">:</span> <span class="token string">&quot;&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;statusType&quot;</span><span class="token operator">:</span> <span class="token string">&quot;auto&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;x&quot;</span><span class="token operator">:</span> <span class="token number">820</span><span class="token punctuation">,</span>\n <span class="token property">&quot;y&quot;</span><span class="token operator">:</span> <span class="token number">440</span><span class="token punctuation">,</span>\n <span class="token property">&quot;wires&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;id&quot;</span><span class="token operator">:</span> <span class="token string">&quot;48bcdcca.fe42a4&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;type&quot;</span><span class="token operator">:</span> <span class="token string">&quot;api-current-state&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;z&quot;</span><span class="token operator">:</span> <span class="token string">&quot;d938c47f.3398f8&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;name&quot;</span><span class="token operator">:</span> <span class="token string">&quot;Read Nord Pool&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;server&quot;</span><span class="token operator">:</span> <span class="token string">&quot;ec4a12a1.b2be9&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;version&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span>\n <span class="token property">&quot;outputs&quot;</span><span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>\n <span class="token property">&quot;halt_if&quot;</span><span class="token operator">:</span> <span class="token string">&quot;&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;halt_if_type&quot;</span><span class="token operator">:</span> <span class="token string">&quot;str&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;halt_if_compare&quot;</span><span class="token operator">:</span> <span class="token string">&quot;is&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;entity_id&quot;</span><span class="token operator">:</span> <span class="token string">&quot;sensor.nordpool_kwh_trheim_nok_3_095_025&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;state_type&quot;</span><span class="token operator">:</span> <span class="token string">&quot;str&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;blockInputOverrides&quot;</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>\n <span class="token property">&quot;outputProperties&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;property&quot;</span><span class="token operator">:</span> <span class="token string">&quot;payload&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;propertyType&quot;</span><span class="token operator">:</span> <span class="token string">&quot;msg&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;value&quot;</span><span class="token operator">:</span> <span class="token string">&quot;&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;valueType&quot;</span><span class="token operator">:</span> <span class="token string">&quot;entity&quot;</span>\n <span class="token punctuation">}</span>\n <span class="token punctuation">]</span><span class="token punctuation">,</span>\n <span class="token property">&quot;x&quot;</span><span class="token operator">:</span> <span class="token number">280</span><span class="token punctuation">,</span>\n <span class="token property">&quot;y&quot;</span><span class="token operator">:</span> <span class="token number">380</span><span class="token punctuation">,</span>\n <span class="token property">&quot;wires&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>\n <span class="token punctuation">[</span>\n <span class="token string">&quot;428d7c7ca88db95f&quot;</span>\n <span class="token punctuation">]</span>\n <span class="token punctuation">]</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;id&quot;</span><span class="token operator">:</span> <span class="token string">&quot;97cc8e58.4247a&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;type&quot;</span><span class="token operator">:</span> <span class="token string">&quot;inject&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;z&quot;</span><span class="token operator">:</span> <span class="token string">&quot;d938c47f.3398f8&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;name&quot;</span><span class="token operator">:</span> <span class="token string">&quot;&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;props&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;p&quot;</span><span class="token operator">:</span> <span class="token string">&quot;payload&quot;</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;p&quot;</span><span class="token operator">:</span> <span class="token string">&quot;topic&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;vt&quot;</span><span class="token operator">:</span> <span class="token string">&quot;str&quot;</span>\n <span class="token punctuation">}</span>\n <span class="token punctuation">]</span><span class="token punctuation">,</span>\n <span class="token property">&quot;repeat&quot;</span><span class="token operator">:</span> <span class="token string">&quot;3600&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;crontab&quot;</span><span class="token operator">:</span> <span class="token string">&quot;&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;once&quot;</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>\n <span class="token property">&quot;onceDelay&quot;</span><span class="token operator">:</span> <span class="token number">0.1</span><span class="token punctuation">,</span>\n <span class="token property">&quot;topic&quot;</span><span class="token operator">:</span> <span class="token string">&quot;&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;payloadType&quot;</span><span class="token operator">:</span> <span class="token string">&quot;date&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;x&quot;</span><span class="token operator">:</span> <span class="token number">110</span><span class="token punctuation">,</span>\n <span class="token property">&quot;y&quot;</span><span class="token operator">:</span> <span class="token number">380</span><span class="token punctuation">,</span>\n <span class="token property">&quot;wires&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>\n <span class="token punctuation">[</span>\n <span class="token string">&quot;48bcdcca.fe42a4&quot;</span>\n <span class="token punctuation">]</span>\n <span class="token punctuation">]</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;id&quot;</span><span class="token operator">:</span> <span class="token string">&quot;a6f2769b.1a62a8&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;type&quot;</span><span class="token operator">:</span> <span class="token string">&quot;api-call-service&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;z&quot;</span><span class="token operator">:</span> <span class="token string">&quot;d938c47f.3398f8&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;name&quot;</span><span class="token operator">:</span> <span class="token string">&quot;Turn on VVB&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;server&quot;</span><span class="token operator">:</span> <span class="token string">&quot;ec4a12a1.b2be9&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;version&quot;</span><span class="token operator">:</span> <span class="token number">3</span><span class="token punctuation">,</span>\n <span class="token property">&quot;debugenabled&quot;</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>\n <span class="token property">&quot;service_domain&quot;</span><span class="token operator">:</span> <span class="token string">&quot;switch&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;service&quot;</span><span class="token operator">:</span> <span class="token string">&quot;turn_on&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;entityId&quot;</span><span class="token operator">:</span> <span class="token string">&quot;switch.varmtvannsbereder_switch&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;data&quot;</span><span class="token operator">:</span> <span class="token string">&quot;&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;dataType&quot;</span><span class="token operator">:</span> <span class="token string">&quot;jsonata&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;mergecontext&quot;</span><span class="token operator">:</span> <span class="token string">&quot;&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;mustacheAltTags&quot;</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>\n <span class="token property">&quot;outputProperties&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span>\n <span class="token property">&quot;queue&quot;</span><span class="token operator">:</span> <span class="token string">&quot;none&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;x&quot;</span><span class="token operator">:</span> <span class="token number">810</span><span class="token punctuation">,</span>\n <span class="token property">&quot;y&quot;</span><span class="token operator">:</span> <span class="token number">340</span><span class="token punctuation">,</span>\n <span class="token property">&quot;wires&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>\n <span class="token punctuation">[</span><span class="token punctuation">]</span>\n <span class="token punctuation">]</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;id&quot;</span><span class="token operator">:</span> <span class="token string">&quot;9fc75126.65dd3&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;type&quot;</span><span class="token operator">:</span> <span class="token string">&quot;api-call-service&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;z&quot;</span><span class="token operator">:</span> <span class="token string">&quot;d938c47f.3398f8&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;name&quot;</span><span class="token operator">:</span> <span class="token string">&quot;Turn off VVB&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;server&quot;</span><span class="token operator">:</span> <span class="token string">&quot;ec4a12a1.b2be9&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;version&quot;</span><span class="token operator">:</span> <span class="token number">3</span><span class="token punctuation">,</span>\n <span class="token property">&quot;debugenabled&quot;</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>\n <span class="token property">&quot;service_domain&quot;</span><span class="token operator">:</span> <span class="token string">&quot;switch&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;service&quot;</span><span class="token operator">:</span> <span class="token string">&quot;turn_off&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;entityId&quot;</span><span class="token operator">:</span> <span class="token string">&quot;switch.varmtvannsbereder_switch&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;data&quot;</span><span class="token operator">:</span> <span class="token string">&quot;&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;dataType&quot;</span><span class="token operator">:</span> <span class="token string">&quot;json&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;mergecontext&quot;</span><span class="token operator">:</span> <span class="token string">&quot;&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;mustacheAltTags&quot;</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>\n <span class="token property">&quot;outputProperties&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span>\n <span class="token property">&quot;queue&quot;</span><span class="token operator">:</span> <span class="token string">&quot;none&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;x&quot;</span><span class="token operator">:</span> <span class="token number">810</span><span class="token punctuation">,</span>\n <span class="token property">&quot;y&quot;</span><span class="token operator">:</span> <span class="token number">380</span><span class="token punctuation">,</span>\n <span class="token property">&quot;wires&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>\n <span class="token punctuation">[</span><span class="token punctuation">]</span>\n <span class="token punctuation">]</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;id&quot;</span><span class="token operator">:</span> <span class="token string">&quot;428d7c7ca88db95f&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;type&quot;</span><span class="token operator">:</span> <span class="token string">&quot;ps-receive-price&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;z&quot;</span><span class="token operator">:</span> <span class="token string">&quot;d938c47f.3398f8&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;name&quot;</span><span class="token operator">:</span> <span class="token string">&quot;Price Receiver&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;x&quot;</span><span class="token operator">:</span> <span class="token number">460</span><span class="token punctuation">,</span>\n <span class="token property">&quot;y&quot;</span><span class="token operator">:</span> <span class="token number">380</span><span class="token punctuation">,</span>\n <span class="token property">&quot;wires&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>\n <span class="token punctuation">[</span>\n <span class="token string">&quot;4147bf0b99fe626f&quot;</span>\n <span class="token punctuation">]</span>\n <span class="token punctuation">]</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;id&quot;</span><span class="token operator">:</span> <span class="token string">&quot;4147bf0b99fe626f&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;type&quot;</span><span class="token operator">:</span> <span class="token string">&quot;ps-strategy-best-save&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;z&quot;</span><span class="token operator">:</span> <span class="token string">&quot;d938c47f.3398f8&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;name&quot;</span><span class="token operator">:</span> <span class="token string">&quot;Best Save&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;maxHoursToSaveInSequence&quot;</span><span class="token operator">:</span> <span class="token string">&quot;4&quot;</span><span class="token punctuation">,</span>\n <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>\n <span class="token property">&quot;minSaving&quot;</span><span class="token operator">:</span> <span class="token string">&quot;0.03&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;sendCurrentValueWhenRescheduling&quot;</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>\n <span class="token property">&quot;outputIfNoSchedule&quot;</span><span class="token operator">:</span> <span class="token string">&quot;true&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;x&quot;</span><span class="token operator">:</span> <span class="token number">630</span><span class="token punctuation">,</span>\n <span class="token property">&quot;y&quot;</span><span class="token operator">:</span> <span class="token number">380</span><span class="token punctuation">,</span>\n <span class="token property">&quot;wires&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>\n <span class="token punctuation">[</span>\n <span class="token string">&quot;a6f2769b.1a62a8&quot;</span>\n <span class="token punctuation">]</span><span class="token punctuation">,</span>\n <span class="token punctuation">[</span>\n <span class="token string">&quot;9fc75126.65dd3&quot;</span>\n <span class="token punctuation">]</span><span class="token punctuation">,</span>\n <span class="token punctuation">[</span>\n <span class="token string">&quot;e2578f6a.210a8&quot;</span>\n <span class="token punctuation">]</span>\n <span class="token punctuation">]</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;id&quot;</span><span class="token operator">:</span> <span class="token string">&quot;ec4a12a1.b2be9&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;type&quot;</span><span class="token operator">:</span> <span class="token string">&quot;server&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;name&quot;</span><span class="token operator">:</span> <span class="token string">&quot;Home Assistant&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;version&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span>\n <span class="token property">&quot;addon&quot;</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>\n <span class="token property">&quot;rejectUnauthorizedCerts&quot;</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>\n <span class="token property">&quot;ha_boolean&quot;</span><span class="token operator">:</span> <span class="token string">&quot;y|yes|true|on|home|open&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;connectionDelay&quot;</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>\n <span class="token property">&quot;cacheJson&quot;</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>\n <span class="token property">&quot;heartbeat&quot;</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>\n <span class="token property">&quot;heartbeatInterval&quot;</span><span class="token operator">:</span> <span class="token number">30</span>\n <span class="token punctuation">}</span>\n<span class="token punctuation">]</span>\n</code></pre></div>',6),e={},u=(0,a(3744).Z)(e,[["render",function(n,s){return o}]])},3744:(n,s)=>{s.Z=(n,s)=>{const a=n.__vccOpts||n;for(const[n,t]of s)a[n]=t;return a}},3590:(n,s,a)=>{n.exports=a.p+"assets/img/power-saver-nordpool-current-state.bf14afde.png"}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunknode_red_contrib_power_saver=self.webpackChunknode_red_contrib_power_saver||[]).push([[745],{192:(e,n,s)=>{s.r(n),s.d(n,{data:()=>a});const a={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"}},3645:(e,n,s)=>{s.r(n),s.d(n,{default:()=>Y});var a=s(6252),t=s(3301);const r=(0,a.uE)('<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="'+t+'" 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),o=(0,a.Uk)("If you are a Tibber customer, you can use the "),p=(0,a._)("code",null,"tibber-query",-1),l=(0,a.Uk)(" node from the "),i={href:"https://flows.nodered.org/node/node-red-contrib-tibber-api",target:"_blank",rel:"noopener noreferrer"},u=(0,a._)("code",null,"node-red-contrib-tibber-api",-1),c=(0,a.Uk)(". Set it up with the following query:"),d=(0,a.uE)('<div class="language-gql ext-gql line-numbers-mode"><pre class="language-gql"><code>{\n viewer {\n homes {\n currentSubscription {\n priceInfo {\n today {\n total\n startsAt\n }\n tomorrow {\n total\n startsAt\n }\n }\n }\n }\n }\n}\n</code></pre><div class="line-numbers"><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),b=(0,a.Uk)("See example with Tibber, a switch and MQTT"),h=(0,a._)("div",{class:"custom-container danger"},[(0,a._)("p",{class:"custom-container-title"},"Warning"),(0,a._)("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),m=(0,a._)("p",null,[(0,a._)("strong",null,"Tibber query for a specific house")],-1),g=(0,a._)("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),k=(0,a.Uk)("Go to the "),f={href:"https://developer.tibber.com/",target:"_blank",rel:"noopener noreferrer"},v=(0,a.Uk)("Tibber Developer pages"),y=(0,a.Uk)(", sign in, and go to the "),q={href:"https://developer.tibber.com/explorer",target:"_blank",rel:"noopener noreferrer"},w=(0,a.Uk)("API Explorer"),_=(0,a.Uk)(". Load your personal token, then run the following query:"),x=(0,a.uE)('<div class="language-gql ext-gql line-numbers-mode"><pre class="language-gql"><code>{\n viewer {\n homes {\n id\n address {\n address1\n address2\n address3\n postalCode\n city\n country\n }\n }\n }\n}\n</code></pre><div class="line-numbers"><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:\n142c1670-ab43-2ab3-ba6d-723703a551e2\n</code></pre><div class="line-numbers"><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>{\n viewer {\n home(id: &quot;142c1670-ab43-2ab3-ba6d-723703a551e2&quot;) {\n currentSubscription{\n priceInfo{\n today {\n total\n startsAt\n }\n tomorrow {\n total\n startsAt\n }\n }\n }\n }\n }\n}\n</code></pre><div class="highlight-lines"><br><br><div class="highlight-line"> </div><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br></div><div class="line-numbers"><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),T=(0,a.Uk)("This is especially designed to work for Home Assistant (HA), and the "),U={href:"https://github.com/custom-components/nordpool",target:"_blank",rel:"noopener noreferrer"},I=(0,a.Uk)("Nord Pool custom component"),P=(0,a.Uk)(". The Nord Pool component provides a "),N=(0,a._)("em",null,"sensor",-1),S=(0,a.Uk)(" that gives price per hour for today and tomorrow (after 13:00). Send the output from this sensor directly to the "),W=(0,a._)("code",null,"ps-receive-price",-1),A=(0,a.Uk)(" node. Make sure this is done whenever the node is updated, as well as when the system starts up."),O=(0,a.uE)('<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),E=(0,a.Uk)("See example with Nord Pool and "),C=(0,a._)("code",null,"current state",-1),D=(0,a.Uk)(" node"),H=(0,a.Uk)("See example with Nord Pool and "),j=(0,a._)("code",null,"events: state",-1),L=(0,a.Uk)(" node"),M=(0,a.uE)('<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>\n <span class="token property">&quot;today&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>\n <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>\n <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>\n <span class="token comment">//...</span>\n <span class="token punctuation">]</span><span class="token punctuation">,</span>\n <span class="token property">&quot;tomorrow&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>\n <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>\n <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>\n <span class="token comment">//...</span>\n <span class="token punctuation">]</span>\n<span class="token punctuation">}</span>\n</code></pre><div class="line-numbers"><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),R=(0,a.Uk)("The output is the "),Z=(0,a.Uk)("common strategy input format"),B=(0,a.Uk)(", so it can be sent directly to the strategy nodes, or via any "),G=(0,a._)("code",null,"ps-xxx-add-tariff",-1),J=(0,a.Uk)(" node."),Q={},Y=(0,s(3744).Z)(Q,[["render",function(e,n){const s=(0,a.up)("ExternalLinkIcon"),t=(0,a.up)("RouterLink");return(0,a.wg)(),(0,a.iD)(a.HY,null,[r,(0,a._)("p",null,[o,p,l,(0,a._)("a",i,[u,(0,a.Wm)(s)]),c]),d,(0,a._)("p",null,[(0,a.Wm)(t,{to:"/examples/example-tibber-mqtt.html"},{default:(0,a.w5)((()=>[b])),_:1})]),h,m,g,(0,a._)("p",null,[k,(0,a._)("a",f,[v,(0,a.Wm)(s)]),y,(0,a._)("a",q,[w,(0,a.Wm)(s)]),_]),x,(0,a._)("p",null,[T,(0,a._)("a",U,[I,(0,a.Wm)(s)]),P,N,S,W,A]),O,(0,a._)("p",null,[(0,a.Wm)(t,{to:"/examples/example-nordpool-current-state.html"},{default:(0,a.w5)((()=>[E,C,D])),_:1})]),(0,a._)("p",null,[(0,a.Wm)(t,{to:"/examples/example-nordpool-events-state.html"},{default:(0,a.w5)((()=>[H,j,L])),_:1})]),M,(0,a._)("p",null,[R,(0,a.Wm)(t,{to:"/nodes/strategy-input.html"},{default:(0,a.w5)((()=>[Z])),_:1}),B,G,J])],64)}]])},3744:(e,n)=>{n.Z=(e,n)=>{const s=e.__vccOpts||e;for(const[e,a]of n)s[e]=a;return s}},3301:(e,n,s)=>{e.exports=s.p+"assets/img/node-ps-receive-price.76eaa418.png"}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunknode_red_contrib_power_saver=self.webpackChunknode_red_contrib_power_saver||[]).push([[969],{4129:(e,t,A)=>{A.r(t),A.d(t,{data:()=>a});const a={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"}},1773:(e,t,A)=>{A.r(t),A.d(t,{default:()=>c});var a=A(6252),n=A(2041);const h=(0,a._)("h1",{id:"faq",tabindex:"-1"},[(0,a._)("a",{class:"header-anchor",href:"#faq","aria-hidden":"true"},"#"),(0,a.Uk)(" FAQ")],-1),s=(0,a._)("h2",{id:"how-can-i-contribute",tabindex:"-1"},[(0,a._)("a",{class:"header-anchor",href:"#how-can-i-contribute","aria-hidden":"true"},"#"),(0,a.Uk)(" How can I contribute?")],-1),o=(0,a._)("p",null,"You can donate:",-1),r=(0,a.Uk)("or take a look at the "),i=(0,a.Uk)("contribute page"),l=(0,a._)("h2",{id:"why-is-the-best-save-schedule-like-this",tabindex:"-1"},[(0,a._)("a",{class:"header-anchor",href:"#why-is-the-best-save-schedule-like-this","aria-hidden":"true"},"#"),(0,a.Uk)(" Why is the best save schedule like this?")],-1),d=(0,a._)("p",null,"There may be many reasons for the best save node planning like it does. Here are some considerations:",-1),I=(0,a._)("ul",null,[(0,a._)("li",null,[(0,a.Uk)("It is turning off only if it can save the "),(0,a._)("code",null,"Min saving"),(0,a.Uk)(" amount in average per kWh per hour for the hours turned off, compared to the next hour that is on.")]),(0,a._)("li",null,[(0,a.Uk)("It will not turn off more than "),(0,a._)("code",null,"Max per sequence"),(0,a.Uk)(" 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),u=(0,a.Uk)("In order to understand how the node works, try out the "),g=(0,a.Uk)("Best Save Viewer"),f=(0,a.uE)('<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="'+n+'" 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),C=(0,a.Uk)("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 °C every day, or at least every week, the risk of infection is not considered significant, according to the norwegian "),k={href:"https://www.fhi.no/nettpub/legionellaveilederen/",target:"_blank",rel:"noopener noreferrer"},b=(0,a.Uk)("FHI"),v=(0,a.Uk)("."),Q={},c=(0,A(3744).Z)(Q,[["render",function(e,t){const A=(0,a.up)("DonateButtons"),n=(0,a.up)("RouterLink"),Q=(0,a.up)("ExternalLinkIcon");return(0,a.wg)(),(0,a.iD)(a.HY,null,[h,s,o,(0,a.Wm)(A),(0,a._)("p",null,[r,(0,a.Wm)(n,{to:"/contribute/"},{default:(0,a.w5)((()=>[i])),_:1})]),l,d,I,(0,a._)("p",null,[u,(0,a.Wm)(n,{to:"/faq/best-save-viewer.html"},{default:(0,a.w5)((()=>[g])),_:1})]),f,(0,a._)("p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JCDEUI2WUHIBk4eIeRMQ2qELEikgZADCUKWaLQGQm4sbIWQLR6EbPHUIUIORgjZZAUhGzh5hJAzDakRsiCRBkIOJAhZotEaCLmxsBVCtngQssVThwg5GCFkkxWEbODkEULONKRGyIJEGgg5kCBkiUZrIOTGwlYI2eJByBZPHSLkYISQTVYQsoGTRwg505AaIQsSaSDkQPIvia1UR3//OpwAAAAASUVORK5CYII="}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunknode_red_contrib_power_saver=self.webpackChunknode_red_contrib_power_saver||[]).push([[889],{9459:(e,t,r)=>{r.r(t),r.d(t,{data:()=>o});const o={key:"v-7c87f26e",path:"/contribute/",title:"Contribute",lang:"en-US",frontmatter:{sidebar:"auto"},excerpt:"",headers:[{level:2,title:"Donate",slug:"donate",children:[]},{level:2,title:"Code",slug:"code",children:[]},{level:2,title:"Examples",slug:"examples",children:[]},{level:2,title:"Bug reports",slug:"bug-reports",children:[]},{level:2,title:"Ideas",slug:"ideas",children:[]},{level:2,title:"Contributors",slug:"contributors",children:[]}],git:{updatedTime:164452306e4},filePathRelative:"contribute/README.md"}},7883:(e,t,r)=>{r.r(t),r.d(t,{default:()=>q});var o=r(6252);const a=(0,o._)("h1",{id:"contribute",tabindex:"-1"},[(0,o._)("a",{class:"header-anchor",href:"#contribute","aria-hidden":"true"},"#"),(0,o.Uk)(" Contribute")],-1),n=(0,o._)("h2",{id:"donate",tabindex:"-1"},[(0,o._)("a",{class:"header-anchor",href:"#donate","aria-hidden":"true"},"#"),(0,o.Uk)(" Donate")],-1),i=(0,o._)("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),s=(0,o._)("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),l=(0,o.uE)('<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),d=(0,o.Uk)("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 "),u={href:"https://github.com/ottopaulsen/node-red-contrib-power-saver/pulls",target:"_blank",rel:"noopener noreferrer"},h=(0,o.Uk)("GitHub"),p=(0,o.Uk)("."),c=(0,o._)("h2",{id:"bug-reports",tabindex:"-1"},[(0,o._)("a",{class:"header-anchor",href:"#bug-reports","aria-hidden":"true"},"#"),(0,o.Uk)(" Bug reports")],-1),b=(0,o.Uk)("If you find a bug, please describe it thoroughly and make a "),f={href:"https://github.com/ottopaulsen/node-red-contrib-power-saver/issues",target:"_blank",rel:"noopener noreferrer"},m=(0,o.Uk)("GitHub issue"),g=(0,o.Uk)(". If the bug is related to the scheduling, "),k=(0,o._)("strong",null,"please provide the full output from output 3",-1),_=(0,o.Uk)(" on the strategy node."),v=(0,o._)("h2",{id:"ideas",tabindex:"-1"},[(0,o._)("a",{class:"header-anchor",href:"#ideas","aria-hidden":"true"},"#"),(0,o.Uk)(" Ideas")],-1),w=(0,o.Uk)("If you have ideas for new features, please make a "),y={href:"https://github.com/ottopaulsen/node-red-contrib-power-saver/issues",target:"_blank",rel:"noopener noreferrer"},U=(0,o.Uk)("GitHub issue"),x=(0,o.Uk)(" and describe it as detailed as possible."),I=(0,o._)("h2",{id:"contributors",tabindex:"-1"},[(0,o._)("a",{class:"header-anchor",href:"#contributors","aria-hidden":"true"},"#"),(0,o.Uk)(" Contributors")],-1),C=(0,o.Uk)("Main developer: "),W={href:"https://github.com/ottopaulsen",target:"_blank",rel:"noopener noreferrer"},D=(0,o.Uk)("Otto Paulsen"),E=(0,o.Uk)("Heat Capacitor developer: "),P={href:"https://github.com/TomTorger",target:"_blank",rel:"noopener noreferrer"},H=(0,o.Uk)("Arne Klaveness"),T=(0,o.Uk)("Example contributors: "),G={href:"https://github.com/oakhill87/node-red-contrib-power-saver",target:"_blank",rel:"noopener noreferrer"},B=(0,o.Uk)("Stefan"),S={},q=(0,r(3744).Z)(S,[["render",function(e,t){const r=(0,o.up)("DonateButtons"),S=(0,o.up)("ExternalLinkIcon");return(0,o.wg)(),(0,o.iD)(o.HY,null,[a,n,i,s,(0,o.Wm)(r),l,(0,o._)("p",null,[d,(0,o._)("a",u,[h,(0,o.Wm)(S)]),p]),c,(0,o._)("p",null,[b,(0,o._)("a",f,[m,(0,o.Wm)(S)]),g,k,_]),v,(0,o._)("p",null,[w,(0,o._)("a",y,[U,(0,o.Wm)(S)]),x]),I,(0,o._)("p",null,[C,(0,o._)("a",W,[D,(0,o.Wm)(S)])]),(0,o._)("p",null,[E,(0,o._)("a",P,[H,(0,o.Wm)(S)])]),(0,o._)("p",null,[T,(0,o._)("a",G,[B,(0,o.Wm)(S)])])],64)}]])},3744:(e,t)=>{t.Z=(e,t)=>{const r=e.__vccOpts||e;for(const[e,o]of t)r[e]=o;return r}}}]);