node-red-contrib-power-saver 3.4.3 → 3.5.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 (132) hide show
  1. package/.github/workflows/{firebase-hosting-merge.yml → publish-doc-on-merge.yml} +6 -6
  2. package/.github/workflows/publish-to-npm.yml +23 -0
  3. package/.github/workflows/test-on-pull-request.yaml +13 -0
  4. package/docs/.vuepress/components/BestSaveVerificator.vue +18 -7
  5. package/docs/.vuepress/components/DonateButtons.vue +0 -1
  6. package/docs/.vuepress/config.js +9 -58
  7. package/docs/.vuepress/navbar.js +43 -0
  8. package/docs/changelog/README.md +18 -0
  9. package/docs/examples/example-cascade-temperature-control.md +0 -13
  10. package/docs/examples/example-heat-capacitor.md +9 -20
  11. package/docs/examples/example-nordpool-current-state.md +0 -13
  12. package/docs/examples/example-nordpool-events-state.md +0 -13
  13. package/docs/examples/example-tibber-mqtt.md +0 -13
  14. package/docs/faq/best-save-viewer.md +1 -0
  15. package/docs/guide/README.md +20 -12
  16. package/docs/images/best-save-config.png +0 -0
  17. package/docs/images/lowest-price-config.png +0 -0
  18. package/docs/nodes/ps-strategy-best-save.md +67 -11
  19. package/docs/nodes/ps-strategy-lowest-price.md +69 -0
  20. package/package.json +9 -10
  21. package/src/elvia/elvia-add-tariff.html +1 -1
  22. package/src/handle-input.js +30 -10
  23. package/src/receive-price-functions.js +2 -0
  24. package/src/strategy-best-save.html +14 -0
  25. package/src/strategy-best-save.js +6 -2
  26. package/src/strategy-lowest-price.html +15 -2
  27. package/src/strategy-lowest-price.js +3 -1
  28. package/src/utils.js +3 -3
  29. package/test/data/lowest-price-result-cont.json +1 -0
  30. package/test/data/lowest-price-result-missing-end.json +1 -0
  31. package/test/data/lowest-price-result-split-allday.json +1 -0
  32. package/test/data/lowest-price-result-split-allday10.json +1 -0
  33. package/test/data/lowest-price-result-split.json +1 -0
  34. package/test/data/tibber-result-end-0-24h.json +1 -0
  35. package/test/data/tibber-result-end-0.json +1 -0
  36. package/.github/workflows/firebase-hosting-pull-request.yml +0 -17
  37. package/docs/.vuepress/dist/.nojekyll +0 -0
  38. package/docs/.vuepress/dist/404.html +0 -33
  39. package/docs/.vuepress/dist/Ukraine-heart-shape-flag.png +0 -0
  40. package/docs/.vuepress/dist/assets/css/835.styles.c5afb22b.css +0 -1
  41. package/docs/.vuepress/dist/assets/css/896.styles.21a80cb6.css +0 -1
  42. package/docs/.vuepress/dist/assets/css/styles.1c48cbd0.css +0 -10
  43. package/docs/.vuepress/dist/assets/img/add-tariff-flow.eb700d4f.png +0 -0
  44. package/docs/.vuepress/dist/assets/img/back-to-top.8b37f773.svg +0 -1
  45. package/docs/.vuepress/dist/assets/img/best-save-config.79a2f39a.png +0 -0
  46. package/docs/.vuepress/dist/assets/img/copy-payload-best-save.b9192985.png +0 -0
  47. package/docs/.vuepress/dist/assets/img/elvia-config-no-config.b4bb972c.png +0 -0
  48. package/docs/.vuepress/dist/assets/img/elvia-config-no-tariff.3f89aba8.png +0 -0
  49. package/docs/.vuepress/dist/assets/img/elvia-config-select-tariff.0f73fd56.png +0 -0
  50. package/docs/.vuepress/dist/assets/img/elvia-config-subscription-key.8be8ab8a.png +0 -0
  51. package/docs/.vuepress/dist/assets/img/elvia-flow.bae2a4d5.png +0 -0
  52. package/docs/.vuepress/dist/assets/img/example-flow-1.3ff3e23f.png +0 -0
  53. package/docs/.vuepress/dist/assets/img/example-flow-2.b653b58d.png +0 -0
  54. package/docs/.vuepress/dist/assets/img/heat-capacitor-temperatureVsPrice.6e74905b.png +0 -0
  55. package/docs/.vuepress/dist/assets/img/lowest-price-config.6d66a8c2.png +0 -0
  56. package/docs/.vuepress/dist/assets/img/migrate-best-save.f73420f6.png +0 -0
  57. package/docs/.vuepress/dist/assets/img/migrate-power-saver.aae13f9d.png +0 -0
  58. package/docs/.vuepress/dist/assets/img/next-schedule-entity.4406856a.png +0 -0
  59. package/docs/.vuepress/dist/assets/img/next-schedule-flow.413ad62b.png +0 -0
  60. package/docs/.vuepress/dist/assets/img/next-schedule-sensor.eb896bdd.png +0 -0
  61. package/docs/.vuepress/dist/assets/img/node-power-saver.51ff2e5d.png +0 -0
  62. package/docs/.vuepress/dist/assets/img/node-ps-elvia-add-tariff.94ea2b09.png +0 -0
  63. package/docs/.vuepress/dist/assets/img/node-ps-general-add-tariff.a3cf6f06.png +0 -0
  64. package/docs/.vuepress/dist/assets/img/node-ps-receive-price.76eaa418.png +0 -0
  65. package/docs/.vuepress/dist/assets/img/node-ps-strategy-best-save.392292d5.png +0 -0
  66. package/docs/.vuepress/dist/assets/img/node-ps-strategy-heat-capacitor-cascade-control.2e75ed9e.png +0 -0
  67. package/docs/.vuepress/dist/assets/img/node-ps-strategy-heat-capacitor-simple-flow-example.29d9bf59.png +0 -0
  68. package/docs/.vuepress/dist/assets/img/node-ps-strategy-lowest-price.3a4ad347.png +0 -0
  69. package/docs/.vuepress/dist/assets/img/oven-setpoint-calculation.5bda0eec.png +0 -0
  70. package/docs/.vuepress/dist/assets/img/overshoot-time.b3b5d70e.png +0 -0
  71. package/docs/.vuepress/dist/assets/img/power-saver-nordpool-current-state.bf14afde.png +0 -0
  72. package/docs/.vuepress/dist/assets/img/power-saver-nordpool-events-state.8c392507.png +0 -0
  73. package/docs/.vuepress/dist/assets/img/power-saver-tibber-mqtt.16891dd2.png +0 -0
  74. package/docs/.vuepress/dist/assets/js/229.5c5378fa.js +0 -1
  75. package/docs/.vuepress/dist/assets/js/331.872104cd.js +0 -1
  76. package/docs/.vuepress/dist/assets/js/405.f4edd94d.js +0 -2
  77. package/docs/.vuepress/dist/assets/js/405.f4edd94d.js.LICENSE.txt +0 -8
  78. package/docs/.vuepress/dist/assets/js/490.1e639e05.js +0 -1
  79. package/docs/.vuepress/dist/assets/js/491.bd938119.js +0 -1
  80. package/docs/.vuepress/dist/assets/js/555.d8963d84.js +0 -1
  81. package/docs/.vuepress/dist/assets/js/811.5f659592.js +0 -1
  82. package/docs/.vuepress/dist/assets/js/app.6c6c1409.js +0 -1
  83. package/docs/.vuepress/dist/assets/js/runtime~app.f6ac32d7.js +0 -1
  84. package/docs/.vuepress/dist/assets/js/v-0607240a.0193a377.js +0 -1
  85. package/docs/.vuepress/dist/assets/js/v-08683c60.52e94cb6.js +0 -1
  86. package/docs/.vuepress/dist/assets/js/v-0aca7ba6.cac5d4b9.js +0 -1
  87. package/docs/.vuepress/dist/assets/js/v-0b5e3c8c.18561f6e.js +0 -1
  88. package/docs/.vuepress/dist/assets/js/v-1ad821fa.6697a349.js +0 -1
  89. package/docs/.vuepress/dist/assets/js/v-1b3a0ab8.c6c4e19b.js +0 -1
  90. package/docs/.vuepress/dist/assets/js/v-1e2b191e.07b8ab21.js +0 -1
  91. package/docs/.vuepress/dist/assets/js/v-29504124.00be7399.js +0 -1
  92. package/docs/.vuepress/dist/assets/js/v-30acb564.28af12af.js +0 -1
  93. package/docs/.vuepress/dist/assets/js/v-3706649a.c76d575b.js +0 -1
  94. package/docs/.vuepress/dist/assets/js/v-4637f9e4.d334c29a.js +0 -1
  95. package/docs/.vuepress/dist/assets/js/v-4c28314d.8cbb0f9d.js +0 -1
  96. package/docs/.vuepress/dist/assets/js/v-510ed0d4.c04bc2e4.js +0 -1
  97. package/docs/.vuepress/dist/assets/js/v-5954bcb2.dff3fc67.js +0 -1
  98. package/docs/.vuepress/dist/assets/js/v-5db8da3a.e5e6d7a6.js +0 -1
  99. package/docs/.vuepress/dist/assets/js/v-61f728ca.81968036.js +0 -1
  100. package/docs/.vuepress/dist/assets/js/v-677dfaed.c159b0f4.js +0 -1
  101. package/docs/.vuepress/dist/assets/js/v-7446a652.8fc2c591.js +0 -1
  102. package/docs/.vuepress/dist/assets/js/v-7c87f26e.8ed52391.js +0 -1
  103. package/docs/.vuepress/dist/assets/js/v-84304104.f3f07ed3.js +0 -1
  104. package/docs/.vuepress/dist/assets/js/v-8daa1a0e.ed84ca09.js +0 -1
  105. package/docs/.vuepress/dist/assets/js/v-b4a42144.9a2a0c9f.js +0 -1
  106. package/docs/.vuepress/dist/assets/js/v-e8c55052.b7d52fc6.js +0 -1
  107. package/docs/.vuepress/dist/assets/js/v-fffb8e28.d09ab959.js +0 -1
  108. package/docs/.vuepress/dist/changelog/index.html +0 -33
  109. package/docs/.vuepress/dist/contribute/index.html +0 -33
  110. package/docs/.vuepress/dist/euro.png +0 -0
  111. package/docs/.vuepress/dist/examples/example-cascade-temperature-control.html +0 -304
  112. package/docs/.vuepress/dist/examples/example-heat-capacitor.html +0 -247
  113. package/docs/.vuepress/dist/examples/example-next-schedule-entity.html +0 -43
  114. package/docs/.vuepress/dist/examples/example-nordpool-current-state.html +0 -206
  115. package/docs/.vuepress/dist/examples/example-nordpool-events-state.html +0 -191
  116. package/docs/.vuepress/dist/examples/example-tibber-mqtt.html +0 -199
  117. package/docs/.vuepress/dist/examples/index.html +0 -33
  118. package/docs/.vuepress/dist/faq/best-save-viewer.html +0 -33
  119. package/docs/.vuepress/dist/faq/index.html +0 -33
  120. package/docs/.vuepress/dist/guide/index.html +0 -70
  121. package/docs/.vuepress/dist/index.html +0 -33
  122. package/docs/.vuepress/dist/logo.png +0 -0
  123. package/docs/.vuepress/dist/nodes/index.html +0 -33
  124. package/docs/.vuepress/dist/nodes/old-power-saver-doc.html +0 -115
  125. package/docs/.vuepress/dist/nodes/power-saver.html +0 -33
  126. package/docs/.vuepress/dist/nodes/ps-elvia-add-tariff.html +0 -33
  127. package/docs/.vuepress/dist/nodes/ps-general-add-tariff.html +0 -33
  128. package/docs/.vuepress/dist/nodes/ps-receive-price.html +0 -98
  129. package/docs/.vuepress/dist/nodes/ps-strategy-best-save.html +0 -104
  130. package/docs/.vuepress/dist/nodes/ps-strategy-heat-capacitor.html +0 -260
  131. package/docs/.vuepress/dist/nodes/ps-strategy-lowest-price.html +0 -124
  132. package/docs/.vuepress/dist/nodes/strategy-input.html +0 -58
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunknode_red_contrib_power_saver=self.webpackChunknode_red_contrib_power_saver||[]).push([[254],{8800:(s,n,a)=>{a.r(n),a.d(n,{data:()=>t});const t={key:"v-84304104",path:"/examples/example-cascade-temperature-control.html",title:"Cascade temperature control",lang:"en-US",frontmatter:{},excerpt:"",headers:[{level:2,title:"Description",slug:"description",children:[{level:3,title:"An example",slug:"an-example",children:[]}]},{level:2,title:"Requirements",slug:"requirements",children:[]},{level:2,title:"Instructions",slug:"instructions",children:[]},{level:2,title:"Flow",slug:"flow",children:[]}],git:{updatedTime:1644664796e3},filePathRelative:"examples/example-cascade-temperature-control.md"}},7994:(s,n,a)=>{a.r(n),a.d(n,{default:()=>r});var t=a(6252),p=a(6953),o=a(3450),e=a(3007);const u=(0,t.uE)('<h1 id="cascade-temperature-control" tabindex="-1"><a class="header-anchor" href="#cascade-temperature-control" aria-hidden="true">#</a> Cascade temperature control</h1><h2 id="description" tabindex="-1"><a class="header-anchor" href="#description" aria-hidden="true">#</a> Description</h2><p>The controller changes the setpoint of climate entities to regulate the temperature of room with increased responsiveness, accuracy, and stability.</p><h3 id="an-example" tabindex="-1"><a class="header-anchor" href="#an-example" aria-hidden="true">#</a> An example</h3><p>A room has a temperature sensor and en electric heater. Given a setpoint temperature, the controller can make the sensor match the given value by adjusting the temperature settings of the electric heater. This type of control usually reacts faster and is more accurate then the alternative of simply changing the temperature settings of the heater. The flow requires that node-red, home assistant, and the connection to the climate entity are stable.</p><p><img src="'+p+'" alt="cascade_flow"></p><p><img src="https://deltamotion.com/support/webhelp/rmctools/Controller_Features/Control_Modes/Advanced_Control/CascadeLoop.png" alt="cascade_example"></p><p>The example utilizes a PID controller to provide a number between 0 and 1 to indicate a load on the heater</p><p>A cascade temperature controller is a controller which utilizes the input/setpoints of other controllers/climate entities to regulate to its own setpoint</p><hr><h2 id="requirements" tabindex="-1"><a class="header-anchor" href="#requirements" aria-hidden="true">#</a> Requirements</h2><ul><li><p>Home assistant integrated with Node-RED</p></li><li><p>The PID node installed - https://flows.nodered.org/node/node-red-contrib-pid</p></li><li><p>A climate entity</p></li></ul><h2 id="instructions" tabindex="-1"><a class="header-anchor" href="#instructions" aria-hidden="true">#</a> Instructions</h2><ul><li><p>Create an <code>input_number</code> entity in Home Assistant and name it &quot;cascade_setpoint&quot;</p></li><li><p>Create an <code>input_boolean</code> entity in Home Assistant and name it <code>cascade_enabled</code></p></li></ul><ul><li>When set to false, this will disengage the controller</li></ul><ul><li><p>Import the flow into Node-RED</p></li><li><p>Enter the correct sensor tempertaure entity in the <code>Temp sensor</code> node</p></li><li><p>Change the climate entity name in three places</p></li></ul><ul><li>Current climate settings - node</li><li>Set Temperature node - two places <ul><li><code>Entity ID</code></li><li><code>Data</code></li></ul></li></ul><ul><li>(optional) Change the oven setpoint range - see figure below.</li></ul><ul><li>This regulates what values the controller sends to the oven. As a default, the value sent is oven_setpoint = setpoint +- 5 degrees. That is, for a setoint of 10C, the controller will be sending setpoints between 5 and 15 C to the oven. This is further limited to whole numbers, a minimum value of 5, and a maximum value of 30.</li></ul><ul><li>(reccomended) Tune the PID controller - Detailed instructions can be found here: http://blog.clanlaw.org.uk/pid-loop-tuning.html</li></ul><ul><li>Measure the system and find the overshoot time <ul><li>Set the proportional band to <strong>zero</strong> and place the setpoint a bit above the current measured value (se figure).</li><li>Wait for the system to overshoot the target temperature and measure the time it takes for the system to return to the setpoint.</li></ul></li><li>Set the proportional band. This is the value indicates how much the measured temperature is allowed to deviate from the setpoint before max load is applied.</li><li>Spesify the integral time. A good value is two times the overshoot time.</li><li>Insert the derivative time. A good value here is half of the overshoot time.</li></ul><p><img src="'+o+'" alt="oven_setoint"><img src="'+e+'" alt="overshoot_time"></p><hr><h2 id="flow" tabindex="-1"><a class="header-anchor" href="#flow" aria-hidden="true">#</a> Flow</h2><hr><details class="custom-container details"><summary>Flow code</summary><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;29fde6c61057362b&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;tab&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;label&quot;</span><span class="token operator">:</span> <span class="token string">&quot;PID Controller - cascade&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;disabled&quot;</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>\n <span class="token property">&quot;info&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;env&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;61ae0bee1a382102&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-state-changed&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;29fde6c61057362b&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;Setpoint&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;e2dd69fb.8f70a8&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;exposeToHomeAssistant&quot;</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>\n <span class="token property">&quot;haConfig&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>\n <span class="token punctuation">{</span> <span class="token property">&quot;property&quot;</span><span class="token operator">:</span> <span class="token string">&quot;name&quot;</span><span class="token punctuation">,</span> <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><span class="token punctuation">,</span>\n <span class="token punctuation">{</span> <span class="token property">&quot;property&quot;</span><span class="token operator">:</span> <span class="token string">&quot;icon&quot;</span><span class="token punctuation">,</span> <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 punctuation">]</span><span class="token punctuation">,</span>\n <span class="token property">&quot;entityidfilter&quot;</span><span class="token operator">:</span> <span class="token string">&quot;input_number.cascade_setpoint&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;entityidfiltertype&quot;</span><span class="token operator">:</span> <span class="token string">&quot;exact&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;outputinitially&quot;</span><span class="token operator">:</span> <span class="token boolean">true</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;num&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;haltifstate&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;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;output_only_on_state_change&quot;</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>\n <span class="token property">&quot;for&quot;</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span>\n <span class="token property">&quot;forType&quot;</span><span class="token operator">:</span> <span class="token string">&quot;num&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;forUnits&quot;</span><span class="token operator">:</span> <span class="token string">&quot;minutes&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;ignorePrevStateNull&quot;</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>\n <span class="token property">&quot;ignorePrevStateUnknown&quot;</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>\n <span class="token property">&quot;ignorePrevStateUnavailable&quot;</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>\n <span class="token property">&quot;ignoreCurrentStateUnknown&quot;</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>\n <span class="token property">&quot;ignoreCurrentStateUnavailable&quot;</span><span class="token operator">:</span> <span class="token boolean">true</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> <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> <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> <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> <span class="token property">&quot;valueType&quot;</span><span class="token operator">:</span> <span class="token string">&quot;entityState&quot;</span> <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span> <span class="token property">&quot;property&quot;</span><span class="token operator">:</span> <span class="token string">&quot;data&quot;</span><span class="token punctuation">,</span> <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> <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> <span class="token property">&quot;valueType&quot;</span><span class="token operator">:</span> <span class="token string">&quot;eventData&quot;</span> <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span> <span class="token property">&quot;property&quot;</span><span class="token operator">:</span> <span class="token string">&quot;topic&quot;</span><span class="token punctuation">,</span> <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> <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> <span class="token property">&quot;valueType&quot;</span><span class="token operator">:</span> <span class="token string">&quot;triggerId&quot;</span> <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">120</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;f8958d382348c254&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;ef1c6050d6de41c7&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-state-changed&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;29fde6c61057362b&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;Temp. sensor&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;e2dd69fb.8f70a8&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;exposeToHomeAssistant&quot;</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>\n <span class="token property">&quot;haConfig&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>\n <span class="token punctuation">{</span> <span class="token property">&quot;property&quot;</span><span class="token operator">:</span> <span class="token string">&quot;name&quot;</span><span class="token punctuation">,</span> <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><span class="token punctuation">,</span>\n <span class="token punctuation">{</span> <span class="token property">&quot;property&quot;</span><span class="token operator">:</span> <span class="token string">&quot;icon&quot;</span><span class="token punctuation">,</span> <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 punctuation">]</span><span class="token punctuation">,</span>\n <span class="token property">&quot;entityidfilter&quot;</span><span class="token operator">:</span> <span class="token string">&quot;sensor.kjokken_temp&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;entityidfiltertype&quot;</span><span class="token operator">:</span> <span class="token string">&quot;exact&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;outputinitially&quot;</span><span class="token operator">:</span> <span class="token boolean">true</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;num&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;haltifstate&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;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;output_only_on_state_change&quot;</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>\n <span class="token property">&quot;for&quot;</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span>\n <span class="token property">&quot;forType&quot;</span><span class="token operator">:</span> <span class="token string">&quot;num&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;forUnits&quot;</span><span class="token operator">:</span> <span class="token string">&quot;seconds&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;ignorePrevStateNull&quot;</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>\n <span class="token property">&quot;ignorePrevStateUnknown&quot;</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>\n <span class="token property">&quot;ignorePrevStateUnavailable&quot;</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>\n <span class="token property">&quot;ignoreCurrentStateUnknown&quot;</span><span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>\n <span class="token property">&quot;ignoreCurrentStateUnavailable&quot;</span><span class="token operator">:</span> <span class="token boolean">true</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> <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> <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> <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> <span class="token property">&quot;valueType&quot;</span><span class="token operator">:</span> <span class="token string">&quot;entityState&quot;</span> <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span> <span class="token property">&quot;property&quot;</span><span class="token operator">:</span> <span class="token string">&quot;data&quot;</span><span class="token punctuation">,</span> <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> <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> <span class="token property">&quot;valueType&quot;</span><span class="token operator">:</span> <span class="token string">&quot;eventData&quot;</span> <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span> <span class="token property">&quot;property&quot;</span><span class="token operator">:</span> <span class="token string">&quot;topic&quot;</span><span class="token punctuation">,</span> <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> <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> <span class="token property">&quot;valueType&quot;</span><span class="token operator">:</span> <span class="token string">&quot;triggerId&quot;</span> <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">130</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;ee1904546f36bdcb&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;f8958d382348c254&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;function&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;29fde6c61057362b&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;Specify topic&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;func&quot;</span><span class="token operator">:</span> <span class="token string">&quot;msg.topic = \\&quot;setpoint\\&quot;\\nflow.set(&#39;setpoint&#39;,msg.payload)\\nreturn msg&quot;</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;noerr&quot;</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span>\n <span class="token property">&quot;initialize&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;finalize&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;libs&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;x&quot;</span><span class="token operator">:</span> <span class="token number">270</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;6f77dd60c21180e1&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;6f77dd60c21180e1&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;PID&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;29fde6c61057362b&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;setpoint&quot;</span><span class="token operator">:</span> <span class="token string">&quot;7&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;pb&quot;</span><span class="token operator">:</span> <span class="token string">&quot;0.6&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;ti&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;td&quot;</span><span class="token operator">:</span> <span class="token string">&quot;900&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;integral_default&quot;</span><span class="token operator">:</span> <span class="token number">0.5</span><span class="token punctuation">,</span>\n <span class="token property">&quot;smooth_factor&quot;</span><span class="token operator">:</span> <span class="token string">&quot;2&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;max_interval&quot;</span><span class="token operator">:</span> <span class="token string">&quot;600&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;enable&quot;</span><span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span>\n <span class="token property">&quot;disabled_op&quot;</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span>\n <span class="token property">&quot;x&quot;</span><span class="token operator">:</span> <span class="token number">430</span><span class="token punctuation">,</span>\n <span class="token property">&quot;y&quot;</span><span class="token operator">:</span> <span class="token number">140</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;ea6adedb7e2fc14e&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;ea6adedb7e2fc14e&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;function&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;29fde6c61057362b&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;Calc oven setpoint&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;func&quot;</span><span class="token operator">:</span> <span class="token string">&quot;msg.load = msg.payload\\n//Max adjustment is +-5 degrees\\ntemp = flow.get(&#39;setpoint&#39;)+ 5 * 2 * (msg.load-0.5)\\n//Some ovens have max and min temperature settings\\nif(temp&lt;5) {temp=5.0;}\\nif(temp&gt;30) {temp=30.0;}\\n//Many ovens cannot deal with decimals.\\ntemp = Math.round(temp)\\nmsg.heater_setpoint=temp\\nreturn msg&quot;</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;noerr&quot;</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span>\n <span class="token property">&quot;initialize&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;finalize&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;libs&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;x&quot;</span><span class="token operator">:</span> <span class="token number">590</span><span class="token punctuation">,</span>\n <span class="token property">&quot;y&quot;</span><span class="token operator">:</span> <span class="token number">140</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;45925567a1177d5b&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;5fa07ec0c1842823&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;29fde6c61057362b&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;Current climate settings&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;e2dd69fb.8f70a8&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;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;climate.my_climate&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> <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> <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> <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> <span class="token property">&quot;valueType&quot;</span><span class="token operator">:</span> <span class="token string">&quot;entityState&quot;</span> <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span> <span class="token property">&quot;property&quot;</span><span class="token operator">:</span> <span class="token string">&quot;data&quot;</span><span class="token punctuation">,</span> <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> <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> <span class="token property">&quot;valueType&quot;</span><span class="token operator">:</span> <span class="token string">&quot;entity&quot;</span> <span class="token punctuation">}</span>\n <span class="token punctuation">]</span><span class="token punctuation">,</span>\n <span class="token property">&quot;for&quot;</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span>\n <span class="token property">&quot;forType&quot;</span><span class="token operator">:</span> <span class="token string">&quot;num&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;forUnits&quot;</span><span class="token operator">:</span> <span class="token string">&quot;minutes&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">950</span><span class="token punctuation">,</span>\n <span class="token property">&quot;y&quot;</span><span class="token operator">:</span> <span class="token number">140</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;ba7e48582e04c14c&quot;</span><span class="token punctuation">,</span> <span class="token string">&quot;0a7c09c92a01178e&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;ba7e48582e04c14c&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;switch&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;29fde6c61057362b&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;Not same?&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;property&quot;</span><span class="token operator">:</span> <span class="token string">&quot;data.attributes.temperature&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;rules&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">{</span> <span class="token property">&quot;t&quot;</span><span class="token operator">:</span> <span class="token string">&quot;neq&quot;</span><span class="token punctuation">,</span> <span class="token property">&quot;v&quot;</span><span class="token operator">:</span> <span class="token string">&quot;heater_setpoint&quot;</span><span class="token punctuation">,</span> <span class="token property">&quot;vt&quot;</span><span class="token operator">:</span> <span class="token string">&quot;msg&quot;</span> <span class="token punctuation">}</span><span class="token punctuation">]</span><span class="token punctuation">,</span>\n <span class="token property">&quot;checkall&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;repair&quot;</span><span class="token operator">:</span> <span class="token boolean">false</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;x&quot;</span><span class="token operator">:</span> <span class="token number">1150</span><span class="token punctuation">,</span>\n <span class="token property">&quot;y&quot;</span><span class="token operator">:</span> <span class="token number">140</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;1114bb7e63d16e98&quot;</span><span class="token punctuation">,</span> <span class="token string">&quot;0a7c09c92a01178e&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;1114bb7e63d16e98&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;29fde6c61057362b&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;Sett temperatur&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;e2dd69fb.8f70a8&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;climate&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;set_temperature&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;climate.my_climate&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;entity_id\\&quot;:\\&quot;climate.my_climate\\&quot;,\\&quot;temperature\\&quot;:\\&quot;{{heater_setpoint}}\\&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">1320</span><span class="token punctuation">,</span>\n <span class="token property">&quot;y&quot;</span><span class="token operator">:</span> <span class="token number">140</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;45925567a1177d5b&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;29fde6c61057362b&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;Enabled?&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;e2dd69fb.8f70a8&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;outputs&quot;</span><span class="token operator">:</span> <span class="token number">2</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;true&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;bool&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;input_boolean.cascade_enabled&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;habool&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> <span class="token property">&quot;property&quot;</span><span class="token operator">:</span> <span class="token string">&quot;enabled&quot;</span><span class="token punctuation">,</span> <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> <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> <span class="token property">&quot;valueType&quot;</span><span class="token operator">:</span> <span class="token string">&quot;entityState&quot;</span> <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span> <span class="token property">&quot;property&quot;</span><span class="token operator">:</span> <span class="token string">&quot;data&quot;</span><span class="token punctuation">,</span> <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> <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> <span class="token property">&quot;valueType&quot;</span><span class="token operator">:</span> <span class="token string">&quot;entity&quot;</span> <span class="token punctuation">}</span>\n <span class="token punctuation">]</span><span class="token punctuation">,</span>\n <span class="token property">&quot;for&quot;</span><span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span>\n <span class="token property">&quot;forType&quot;</span><span class="token operator">:</span> <span class="token string">&quot;num&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;forUnits&quot;</span><span class="token operator">:</span> <span class="token string">&quot;minutes&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">760</span><span class="token punctuation">,</span>\n <span class="token property">&quot;y&quot;</span><span class="token operator">:</span> <span class="token number">140</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;5fa07ec0c1842823&quot;</span><span class="token punctuation">]</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;0a7c09c92a01178e&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;29fde6c61057362b&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;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">1330</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;ee1904546f36bdcb&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;delay&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;29fde6c61057362b&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;pauseType&quot;</span><span class="token operator">:</span> <span class="token string">&quot;delay&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;timeout&quot;</span><span class="token operator">:</span> <span class="token string">&quot;100&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;timeoutUnits&quot;</span><span class="token operator">:</span> <span class="token string">&quot;milliseconds&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;rate&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;nbRateUnits&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;rateUnits&quot;</span><span class="token operator">:</span> <span class="token string">&quot;second&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;randomFirst&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;randomLast&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;randomUnits&quot;</span><span class="token operator">:</span> <span class="token string">&quot;seconds&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;drop&quot;</span><span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>\n <span class="token property">&quot;allowrate&quot;</span><span class="token operator">:</span> <span class="token boolean">false</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;x&quot;</span><span class="token operator">:</span> <span class="token number">290</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;6f77dd60c21180e1&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;e2dd69fb.8f70a8&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">false</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">true</span><span class="token punctuation">,</span>\n <span class="token property">&quot;heartbeatInterval&quot;</span><span class="token operator">:</span> <span class="token string">&quot;30&quot;</span>\n <span class="token punctuation">}</span>\n<span class="token punctuation">]</span>\n</code></pre></div></details>',26),c={},r=(0,a(3744).Z)(c,[["render",function(s,n){return u}]])},3744:(s,n)=>{n.Z=(s,n)=>{const a=s.__vccOpts||s;for(const[s,t]of n)a[s]=t;return a}},6953:(s,n,a)=>{s.exports=a.p+"assets/img/node-ps-strategy-heat-capacitor-cascade-control.2e75ed9e.png"},3450:(s,n,a)=>{s.exports=a.p+"assets/img/oven-setpoint-calculation.5bda0eec.png"},3007:(s,n,a)=>{s.exports=a.p+"assets/img/overshoot-time.b3b5d70e.png"}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunknode_red_contrib_power_saver=self.webpackChunknode_red_contrib_power_saver||[]).push([[509],{6464:(e,t,o)=>{o.r(t),o.d(t,{data:()=>r});const r={key:"v-8daa1a0e",path:"/",title:"",lang:"en-US",frontmatter:{home:!0,heroImage:"/logo.png",heroAlt:"Power Saver",heroText:"node-red-contrib-power-saver",tagline:"A collection of nodes to Node-RED that automates saving money on variable electricity prices",actions:[{text:"Guide",link:"/guide",type:"primary"},{text:"Nodes",link:"/nodes/",type:"primary"},{text:"Examples",link:"/examples/",type:"primary"}],features:[{title:"Automatic scheduling",details:"Automatically calculate best plan and send signal to turn on and off."},{title:"Best Save Strategy",details:"Postpone power consumption when there is most to save, perfect for the water heater."},{title:"Lowest Price Strategy",details:"Turn on power when the prices are the lowest, perfect for smart charging or heating."},{title:"Add variable grid tariff",details:"Automatically add values that varies on fixed hours, or use API to get grid tariff from Elvia."},{title:"Perfect with Home Assistant",details:"Use Home Assistant with Node-RED and control switches via service calls."},{title:"Tibber and Nord Pool",details:"Painlessly use prices received from Tibber or Nord Pool."}],footer:"Created by Otto Paulsen and contributors",footerHtml:!0},excerpt:"",headers:[],git:{updatedTime:164452306e4},filePathRelative:"README.md"}},425:(e,t,o)=>{o.r(t),o.d(t,{default:()=>d});var r=o(6252);const a=(0,r.Uk)("This is a collection of nodes for the popular "),i={href:"https://nodered.org/",target:"_blank",rel:"noopener noreferrer"},n=(0,r.Uk)("Node-RED"),s=(0,r.Uk)(" that you can use to save money on variable electricity prices. Node-RED is a widely used low-code programming tool that can be used together with many smart home solutions to create automations."),l={},d=(0,o(3744).Z)(l,[["render",function(e,t){const o=(0,r.up)("ExternalLinkIcon"),l=(0,r.up)("DonateButtons");return(0,r.wg)(),(0,r.iD)(r.HY,null,[(0,r._)("p",null,[a,(0,r._)("a",i,[n,(0,r.Wm)(o)]),s]),(0,r.Wm)(l)],64)}]])},3744:(e,t)=>{t.Z=(e,t)=>{const o=e.__vccOpts||e;for(const[e,r]of t)o[e]=r;return o}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunknode_red_contrib_power_saver=self.webpackChunknode_red_contrib_power_saver||[]).push([[407],{7952:(n,e,s)=>{s.r(e),s.d(e,{data:()=>a});const a={key:"v-b4a42144",path:"/nodes/old-power-saver-doc.html",title:"node-red-contrib-power-saver v2 (deprecated)",lang:"en-US",frontmatter:{},excerpt:"",headers:[{level:2,title:"Installation",slug:"installation",children:[]},{level:2,title:"Input",slug:"input",children:[{level:3,title:"Tibber input",slug:"tibber-input",children:[]},{level:3,title:"Nordpool input",slug:"nordpool-input",children:[]},{level:3,title:"Other input",slug:"other-input",children:[]}]},{level:2,title:"Output",slug:"output",children:[{level:3,title:"Output 1",slug:"output-1",children:[]},{level:3,title:"Output 2",slug:"output-2",children:[]},{level:3,title:"Output 3",slug:"output-3",children:[]}]},{level:2,title:"Configuration",slug:"configuration",children:[{level:3,title:"Dynamic config",slug:"dynamic-config",children:[]}]},{level:2,title:"Algorithm",slug:"algorithm",children:[]},{level:2,title:"Integration with MagicMirror",slug:"integration-with-magicmirror",children:[]},{level:2,title:"Change Log",slug:"change-log",children:[]},{level:2,title:"Contribute",slug:"contribute",children:[]}],git:{updatedTime:1640034618e3},filePathRelative:"nodes/old-power-saver-doc.md"}},1206:(n,e,s)=>{s.r(e),s.d(e,{default:()=>tn});var a=s(6252);const t=(0,a.uE)('<h1 id="node-red-contrib-power-saver-v2-deprecated" tabindex="-1"><a class="header-anchor" href="#node-red-contrib-power-saver-v2-deprecated" aria-hidden="true">#</a> node-red-contrib-power-saver v2 (deprecated)</h1><p>A Node-RED node to save money when power prices are changing. Saving is done by postponing power consumption until the price is lower.</p><p>You can configure maximum number of hours to save in a sequence, and minimum time to recover after a maximum saving period.</p><p><img src="https://github.com/ottopaulsen/node-red-contrib-power-saver/blob/main/doc/node-red-contrib-power-saver-flow.png?raw=true" alt="Normal flow"></p><p>You can use it to control for example a heater, a water heater or any other power consumer that is acceptable to turn off now and then.</p><p>The node takes power prices per hour as input, and sends output to turn a switch on or off based on the power price. It also outputs the schedule that is planned, as well as how much you save per kWh for each of the hours that are turned off, assuming that the same power is used as soon as the power is turned on.</p><p>Power prices may be received from Tibber, Nord Pool or any other source that gives price per hour for today and optionally tomorrow. It is primarily made to be used together with Home Assistant (HA), but there is no dependency to HA, so it can just as well be used by itself.</p><p>The node can also be used in combination with MagicMirror with the MMM-MQTT and MMM-Tibber modules, in order to get the savings displayed on the MM screen in the MMM-Tibber module.</p><p><strong>NB! WIP</strong></p><p>This node is currently rather new, and has been tried for a few weeks, enough to come in a version two with improved savings plan.</p>',10),o=(0,a.Uk)("Feel free to try it, and report back problems or ideas as "),r={href:"https://github.com/ottopaulsen/node-red-contrib-power-saver/issues",target:"_blank",rel:"noopener noreferrer"},p=(0,a.Uk)("Github issues"),l=(0,a.Uk)("."),i=(0,a.uE)('<h2 id="installation" tabindex="-1"><a class="header-anchor" href="#installation" aria-hidden="true">#</a> Installation</h2><p>Install in Node-RED via the Manage Palette menu.</p><p>May also be installed via npm:</p><p><code>npm install node-red-contrib-power-saver</code></p><p>Make sure that you upgrade now and then to get the latest version. See <a href="CHANGELOG">changelog</a> for changes.</p><h2 id="input" tabindex="-1"><a class="header-anchor" href="#input" aria-hidden="true">#</a> Input</h2><p>3 different types of input are accepted:</p><ul><li>Tibber</li><li>Nordpool</li><li>Other sources in a specific JSON format</li></ul><p>Choose the one that fits you best. Of course, all inputs are JSON, but the Tibber and Nord Pool alternatives are designed to connect directly to those sources with a minimum effort.</p><p>From version 2.1.0, you can also send a config object as input for dynamically changing the node config.</p><h3 id="tibber-input" tabindex="-1"><a class="header-anchor" href="#tibber-input" aria-hidden="true">#</a> Tibber input</h3>',11),u=(0,a.Uk)("If you are a Tibber customer, you can use the "),c=(0,a._)("code",null,"tibber-query",-1),h=(0,a.Uk)(" node from the "),d={href:"https://flows.nodered.org/node/node-red-contrib-tibber-api",target:"_blank",rel:"noopener noreferrer"},b=(0,a._)("code",null,"node-red-contrib-tibber-api",-1),m=(0,a.Uk)(" node"),k=(0,a.Uk)(". Set it up with the following query:"),g=(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>power-saver</code> node. Make sure it is refreshed when new prices are ready. Prices for the next day are normally ready at 13:00, but refreshing every hour can be a good idea.</p>',2),f=(0,a.Uk)("See example with Tibber, a switch and MQTT"),y=(0,a._)("h3",{id:"nordpool-input",tabindex:"-1"},[(0,a._)("a",{class:"header-anchor",href:"#nordpool-input","aria-hidden":"true"},"#"),(0,a.Uk)(" Nordpool input")],-1),w=(0,a.Uk)("This is especially designed to work for Home Assistant (HA), and the "),q={href:"https://github.com/custom-components/nordpool",target:"_blank",rel:"noopener noreferrer"},v=(0,a.Uk)("Nord Pool custom component"),_=(0,a.Uk)(". The Nord Pool component provides a "),M=(0,a._)("em",null,"sensor",-1),T=(0,a.Uk)(" that gives price per hour for today and tomorrow (after 13:00). Send the output from this sensor directly to the "),x=(0,a._)("code",null,"power-saver",-1),U=(0,a.Uk)(" node. Make sure this is done whenever the node is updated, as well as when the system starts up."),S=(0,a._)("p",null,[(0,a.Uk)("Data can be sent from both the "),(0,a._)("code",null,"current state"),(0,a.Uk)(" node or the "),(0,a._)("code",null,"events: state"),(0,a.Uk)(" node.")],-1),I=(0,a.Uk)("See example with Nord Pool and "),O=(0,a._)("code",null,"current state",-1),N=(0,a.Uk)(" node"),W=(0,a.Uk)("See example with Nord Pool and "),A=(0,a._)("code",null,"events: state",-1),C=(0,a.Uk)(" node"),j=(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><h3 id="output-1" tabindex="-1"><a class="header-anchor" href="#output-1" aria-hidden="true">#</a> Output 1</h3><p>A payload with the word <code>true</code> is sent to output 1 whenever the power / switch shall be turned on.</p><h3 id="output-2" tabindex="-1"><a class="header-anchor" href="#output-2" aria-hidden="true">#</a> Output 2</h3><p>A payload with the word <code>false</code> is sent to output 2 whenever the power / switch shall be turned off.</p><h3 id="output-3" tabindex="-1"><a class="header-anchor" href="#output-3" aria-hidden="true">#</a> Output 3</h3><p>When a valid input is received, and the schedule is recalculated, the resulting schedule, as well as some other information, is sent to output 3. You can use this to see the plan and verify that it meets your expectations. You can also use it to display the schedule in any way you like.</p><p>Example of output:</p><div class="language-json ext-json line-numbers-mode"><pre class="language-json"><code><span class="token punctuation">{</span>\n <span class="token property">&quot;schedule&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;time&quot;</span><span class="token operator">:</span> <span class="token string">&quot;2021-09-30T00:00:00.000+02:00&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;value&quot;</span><span class="token operator">:</span> <span class="token boolean">false</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;time&quot;</span><span class="token operator">:</span> <span class="token string">&quot;2021-09-30T01:00:00.000+02:00&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;value&quot;</span><span class="token operator">:</span> <span class="token boolean">true</span>\n <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;hours&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;price&quot;</span><span class="token operator">:</span> <span class="token number">1.2584</span><span class="token punctuation">,</span>\n <span class="token property">&quot;onOff&quot;</span><span class="token operator">:</span> <span class="token boolean">false</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-09-30T00:00:00.000+02:00&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;saving&quot;</span><span class="token operator">:</span> <span class="token number">0.2034</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;price&quot;</span><span class="token operator">:</span> <span class="token number">1.055</span><span class="token punctuation">,</span>\n <span class="token property">&quot;onOff&quot;</span><span class="token operator">:</span> <span class="token boolean">true</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-09-30T01:00:00.000+02:00&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;saving&quot;</span><span class="token operator">:</span> <span class="token null keyword">null</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span>\n <span class="token property">&quot;price&quot;</span><span class="token operator">:</span> <span class="token number">1.2054</span><span class="token punctuation">,</span>\n <span class="token property">&quot;onOff&quot;</span><span class="token operator">:</span> <span class="token boolean">true</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-09-30T02:00:00.000+02:00&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;saving&quot;</span><span class="token operator">:</span> <span class="token null keyword">null</span>\n <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;source&quot;</span><span class="token operator">:</span> <span class="token string">&quot;Nordpool&quot;</span><span class="token punctuation">,</span>\n <span class="token property">&quot;config&quot;</span><span class="token operator">:</span> <span class="token punctuation">{</span>\n <span class="token property">&quot;maxHoursToSaveInSequence&quot;</span><span class="token operator">:</span> <span class="token number">3</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 number">0.001</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 boolean">false</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><span class="line-number">26</span><br><span class="line-number">27</span><br><span class="line-number">28</span><br><span class="line-number">29</span><br><span class="line-number">30</span><br><span class="line-number">31</span><br><span class="line-number">32</span><br><span class="line-number">33</span><br><span class="line-number">34</span><br><span class="line-number">35</span><br><span class="line-number">36</span><br><span class="line-number">37</span><br><span class="line-number">38</span><br><span class="line-number">39</span><br><span class="line-number">40</span><br><span class="line-number">41</span><br><span class="line-number">42</span><br></div></div><p>The <code>schedule</code> array shows every time the switch is turned on or off. The <code>hours</code> array shows values per hour containing the price (received as input), whether that hour is on or off, the start time of the hour and the amount per kWh that is saved on hours that are turned off, compared to the next hour that is on.</p><h2 id="configuration" tabindex="-1"><a class="header-anchor" href="#configuration" aria-hidden="true">#</a> Configuration</h2><p>Currently there is only one strategy for saving. This is the <em>mostSaved</em> strategy. This strategy turns off the hours where the price difference is largest compared to the next hour that is on. The idea is that the power you are not using when the switch is turned off, will be used immediately when the switch is turned on. This would fit well for turning of a water heater or another thermostat controlled heater.</p><p>You can configure the following:</p><ul><li>Maximum number of hours to turn off in a sequence.</li><li>Minimum hours to turn on immediately after a period when turned off the maximum number of hours that is allowed to be turned off.</li><li>Minimum amount to save per kWh in order to bother turning it off. It is recommended to have some amount here, e.g. 2 cents / 2 øre. No point in saving 0.001, is it?</li><li>Wether to send on/off just after a reschedule is done without waiting until the next scheduled switch.</li><li>What to do if there is no valid schedule any more (turn on or off).</li></ul><h3 id="dynamic-config" tabindex="-1"><a class="header-anchor" href="#dynamic-config" aria-hidden="true">#</a> Dynamic config</h3><p>It is possible to change config dynamically by sending a config message to the node. The config messages has a payload with a config object like this example:</p><div class="language-json ext-json line-numbers-mode"><pre class="language-json"><code><span class="token property">&quot;payload&quot;</span><span class="token operator">:</span> <span class="token punctuation">{</span>\n <span class="token property">&quot;config&quot;</span><span class="token operator">:</span> <span class="token punctuation">{</span>\n <span class="token property">&quot;maxHoursToSaveInSequence&quot;</span><span class="token operator">:</span> <span class="token number">4</span><span class="token punctuation">,</span>\n <span class="token property">&quot;minHoursOnAfterMaxSequenceSaved&quot;</span><span class="token operator">:</span> <span class="token number">2</span><span class="token punctuation">,</span>\n <span class="token property">&quot;minSaving&quot;</span><span class="token operator">:</span> <span class="token number">0.02</span><span class="token punctuation">,</span>\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 boolean">true</span><span class="token punctuation">,</span>\n <span class="token property">&quot;scheduleOnlyFromCurrentTime&quot;</span><span class="token operator">:</span> <span class="token boolean">false</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></div></div><p>All the variables in the config object are optional. You can send only those you want to change.</p><p>The config sent like this will be valid until a new config is sent the same way, or until the flow is restarted. On a restart, the original config set up in the node will be used.</p><p>When a config is sent like this, the schedule will be replanned based on the last previously received price data. If no price data has been received, no scheduling is done.</p><h2 id="algorithm" tabindex="-1"><a class="header-anchor" href="#algorithm" aria-hidden="true">#</a> Algorithm</h2><p>The calculation that decides what hours to turn off works as follows:</p><ol><li>A matrix (x * y) is created where x is the number of hours we have price information for, and y is the configured maximum number of hours to turn off in a sequence.</li><li>The matrix is filled with how much you save by turning off hour x for y hours.</li><li>The matrix is processed calculating all possibilities for turning off a number of hours in a sequence and by that saving money. In this process all non-saving sequences are discarded. Also, if the average saving per hour is less than what you have configured as minimum amount to save per kWh, the sequence is discarded.</li><li>The remaining sequences are sorted by how much that is saved, in descending order.</li><li>Next, a table with one value per hour is created, with all hours in state &quot;on&quot;.</li><li>Then the saving sequences is applied one by one, turning off the hours in each sequence, discarding sequences that lead to any violation of the rules set by the config.</li><li>When all sequences are processed, the resulting table shows a pretty good savings plan, that in most cases would be the optimal plan.</li></ol><p>I say &quot;in most cases&quot;, because there is a chance that a group of two or more sequences combined can give a better plan than a single sequence preceeding those two, but where the selection of the one sequence causes the group to be discarded. If anyone encounters this situation, I would be happy to receive the price data set, and try to improve the algorithm even further.</p><h2 id="integration-with-magicmirror" tabindex="-1"><a class="header-anchor" href="#integration-with-magicmirror" aria-hidden="true">#</a> Integration with MagicMirror</h2>',28),H=(0,a.Uk)("Are you using "),P={href:"https://magicmirror.builders/",target:"_blank",rel:"noopener noreferrer"},E=(0,a.Uk)("MagicMirror"),G=(0,a.Uk)("? Are you also using "),L={href:"https://tibber.com/",target:"_blank",rel:"noopener noreferrer"},R=(0,a.Uk)("Tibber"),Y=(0,a.Uk)("? If so, there is a module for MM called "),D={href:"https://github.com/ottopaulsen/MMM-Tibber",target:"_blank",rel:"noopener noreferrer"},F=(0,a.Uk)("MMM-Tibber"),J=(0,a.Uk)(", that easily can be used to show savings from this node."),Q=(0,a._)("p",null,[(0,a._)("img",{src:"https://github.com/ottopaulsen/MMM-Tibber/blob/master/doc/MMM-Tibber-screenshot-savings-graph.png?raw=true",alt:"Show savings in MMM-Tibber"})],-1),V=(0,a._)("p",null,"The purple lines show savings per kWh.",-1),Z=(0,a.Uk)("Read more about this in the "),B={href:"https://github.com/ottopaulsen/MMM-Tibber#show-savings",target:"_blank",rel:"noopener noreferrer"},z=(0,a.Uk)("MMM-Tibber documentation"),K=(0,a.Uk)("."),X=(0,a._)("h2",{id:"change-log",tabindex:"-1"},[(0,a._)("a",{class:"header-anchor",href:"#change-log","aria-hidden":"true"},"#"),(0,a.Uk)(" Change Log")],-1),$=(0,a.Uk)("See "),nn=(0,a.Uk)("CHANGELOG.md"),en=(0,a._)("h2",{id:"contribute",tabindex:"-1"},[(0,a._)("a",{class:"header-anchor",href:"#contribute","aria-hidden":"true"},"#"),(0,a.Uk)(" Contribute")],-1),sn=(0,a._)("p",null,"Contributions are welcome. Please start by creating a Github Issue with suggested changes, and state what you would like to do.",-1),an={},tn=(0,s(3744).Z)(an,[["render",function(n,e){const s=(0,a.up)("ExternalLinkIcon"),an=(0,a.up)("RouterLink");return(0,a.wg)(),(0,a.iD)(a.HY,null,[t,(0,a._)("p",null,[o,(0,a._)("a",r,[p,(0,a.Wm)(s)]),l]),i,(0,a._)("p",null,[u,c,h,(0,a._)("a",d,[b,m,(0,a.Wm)(s)]),k]),g,(0,a._)("p",null,[(0,a.Wm)(an,{to:"/nodes/doc/example-tibber-mqtt.html"},{default:(0,a.w5)((()=>[f])),_:1})]),y,(0,a._)("p",null,[w,(0,a._)("a",q,[v,(0,a.Wm)(s)]),_,M,T,x,U]),S,(0,a._)("p",null,[(0,a.Wm)(an,{to:"/nodes/doc/example-nordpool-current-state.html"},{default:(0,a.w5)((()=>[I,O,N])),_:1})]),(0,a._)("p",null,[(0,a.Wm)(an,{to:"/nodes/doc/example-nordpool-events-state.html"},{default:(0,a.w5)((()=>[W,A,C])),_:1})]),j,(0,a._)("p",null,[H,(0,a._)("a",P,[E,(0,a.Wm)(s)]),G,(0,a._)("a",L,[R,(0,a.Wm)(s)]),Y,(0,a._)("a",D,[F,(0,a.Wm)(s)]),J]),Q,V,(0,a._)("p",null,[Z,(0,a._)("a",B,[z,(0,a.Wm)(s)]),K]),X,(0,a._)("p",null,[$,(0,a.Wm)(an,{to:"/nodes/CHANGELOG.html"},{default:(0,a.w5)((()=>[nn])),_:1})]),en,sn],64)}]])},3744:(n,e)=>{e.Z=(n,e)=>{const s=n.__vccOpts||n;for(const[n,a]of e)s[n]=a;return s}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunknode_red_contrib_power_saver=self.webpackChunknode_red_contrib_power_saver||[]).push([[651],{3029:(e,a,t)=>{t.r(a),t.d(a,{data:()=>r});const r={key:"v-e8c55052",path:"/nodes/",title:"Nodes",lang:"en-US",frontmatter:{},excerpt:"",headers:[{level:2,title:"Power Saver",slug:"power-saver",children:[]},{level:2,title:"Strategy nodes",slug:"strategy-nodes",children:[{level:3,title:"ps-strategy-best-save",slug:"ps-strategy-best-save",children:[]},{level:3,title:"ps-strategy-lowest-price",slug:"ps-strategy-lowest-price",children:[]},{level:3,title:"ps-strategy-heat-capacitor Experimental",slug:"ps-strategy-heat-capacitor-experimental",children:[]}]},{level:2,title:"Utility nodes",slug:"utility-nodes",children:[{level:3,title:"ps-receive-price",slug:"ps-receive-price",children:[]}]},{level:2,title:"Grid tariff nodes",slug:"grid-tariff-nodes",children:[{level:3,title:"ps-general-add-tariff",slug:"ps-general-add-tariff",children:[]},{level:3,title:"ps-elvia-add-tariff",slug:"ps-elvia-add-tariff",children:[]}]},{level:2,title:"Other nodes",slug:"other-nodes",children:[{level:3,title:"ps-elvia-tariff-types",slug:"ps-elvia-tariff-types",children:[]},{level:3,title:"ps-elvia-tariff",slug:"ps-elvia-tariff",children:[]}]}],git:{updatedTime:164452306e4},filePathRelative:"nodes/README.md"}},5262:(e,a,t)=>{t.r(a),t.d(a,{default:()=>C});var r=t(6252),s=t(7656),i=t(7188),d=t(6110),p=t(7652),n=t(3301),o=t(4693),l=t(5824);const h=(0,r._)("h1",{id:"nodes",tabindex:"-1"},[(0,r._)("a",{class:"header-anchor",href:"#nodes","aria-hidden":"true"},"#"),(0,r.Uk)(" Nodes")],-1),f=(0,r._)("p",null,"Here is an overview of the nodes, and links to detailed descriptions for eah of them.",-1),g={id:"power-saver",tabindex:"-1"},c=(0,r._)("a",{class:"header-anchor",href:"#power-saver","aria-hidden":"true"},"#",-1),v=(0,r.Uk)(),A=(0,r._)("a",{href:"./power-saver"},"Power Saver",-1),u=(0,r.Uk)(),y=(0,r.uE)('<p><img src="'+s+'" alt="Power Saver node"></p><p>The old node from version 2 is still working, but should be replaced.</p><h2 id="strategy-nodes" tabindex="-1"><a class="header-anchor" href="#strategy-nodes" aria-hidden="true">#</a> Strategy nodes</h2><p>These are the nodes used to calculate and control saving.</p><h3 id="ps-strategy-best-save" tabindex="-1"><a class="header-anchor" href="#ps-strategy-best-save" aria-hidden="true">#</a> <a href="./ps-strategy-best-save">ps-strategy-best-save</a></h3><p><img src="'+i+'" alt="ps-strategy-best-save"></p><p>Strategy to find the best hours to postpone power consumption to achieve the most saving.</p><h3 id="ps-strategy-lowest-price" tabindex="-1"><a class="header-anchor" href="#ps-strategy-lowest-price" aria-hidden="true">#</a> <a href="./ps-strategy-lowest-price">ps-strategy-lowest-price</a></h3><p><img src="'+d+'" alt="ps-strategy-lowest-price"></p><p>Strategy to find the x hours with lowest price in a given period each day.</p>',10),m={id:"ps-strategy-heat-capacitor-experimental",tabindex:"-1"},w=(0,r._)("a",{class:"header-anchor",href:"#ps-strategy-heat-capacitor-experimental","aria-hidden":"true"},"#",-1),E=(0,r.Uk)(),b=(0,r._)("a",{href:"./ps-strategy-heat-capacitor"},"ps-strategy-heat-capacitor",-1),k=(0,r.Uk)(),B=(0,r.Uk)("Experimental"),I=(0,r.uE)('<p><img src="'+p+'" alt="ps-strategy-heat-capacitor"></p><p>A strategy for moving consumption from expensive to cheap periods utilizing climate entities and trading principles.</p><h2 id="utility-nodes" tabindex="-1"><a class="header-anchor" href="#utility-nodes" aria-hidden="true">#</a> Utility nodes</h2><h3 id="ps-receive-price" tabindex="-1"><a class="header-anchor" href="#ps-receive-price" aria-hidden="true">#</a> <a href="./ps-receive-price">ps-receive-price</a></h3><p><img src="'+n+'" alt="ps-receive-price"></p><p>Node to convert different types of input data to the format used by the strategy nodes.</p><h2 id="grid-tariff-nodes" tabindex="-1"><a class="header-anchor" href="#grid-tariff-nodes" aria-hidden="true">#</a> Grid tariff nodes</h2><h3 id="ps-general-add-tariff" tabindex="-1"><a class="header-anchor" href="#ps-general-add-tariff" aria-hidden="true">#</a> <a href="./ps-general-add-tariff">ps-general-add-tariff</a></h3><p><img src="'+o+'" alt="ps-general-add-tariff"></p><p>Node to add a variable grid tariff (or any value) to the prices before sending them to the strategy nodes.</p><h3 id="ps-elvia-add-tariff" tabindex="-1"><a class="header-anchor" href="#ps-elvia-add-tariff" aria-hidden="true">#</a> <a href="./ps-elvia-add-tariff">ps-elvia-add-tariff</a></h3><p><img src="'+l+'" alt="ps-elvia-add-tariff"></p><p>Node to add Elvia grid tariff to the prices before sending them to the strategy nodes.</p><h2 id="other-nodes" tabindex="-1"><a class="header-anchor" href="#other-nodes" aria-hidden="true">#</a> Other nodes</h2><p>These are a couple of other nodes for using the Elvia API, but these are not important to the Power Saver, so they are not given any further documentation here.</p><h3 id="ps-elvia-tariff-types" tabindex="-1"><a class="header-anchor" href="#ps-elvia-tariff-types" aria-hidden="true">#</a> ps-elvia-tariff-types</h3><p>Use this to get a list of the tariff types available in the Elvia API.</p><h3 id="ps-elvia-tariff" tabindex="-1"><a class="header-anchor" href="#ps-elvia-tariff" aria-hidden="true">#</a> ps-elvia-tariff</h3><p>Use this to get the Elvia grid tariff for a selected tariff type.</p>',19),x={},C=(0,t(3744).Z)(x,[["render",function(e,a){const t=(0,r.up)("Badge");return(0,r.wg)(),(0,r.iD)(r.HY,null,[h,f,(0,r._)("h2",g,[c,v,A,u,(0,r.Wm)(t,{type:"warning",text:"deprecated",vertical:"middle"})]),y,(0,r._)("h3",m,[w,E,b,k,(0,r.Wm)(t,{type:"warning"},{default:(0,r.w5)((()=>[B])),_:1})]),I],64)}]])},3744:(e,a)=>{a.Z=(e,a)=>{const t=e.__vccOpts||e;for(const[e,r]of a)t[e]=r;return t}},7656:(e,a,t)=>{e.exports=t.p+"assets/img/node-power-saver.51ff2e5d.png"},5824:(e,a,t)=>{e.exports=t.p+"assets/img/node-ps-elvia-add-tariff.94ea2b09.png"},4693:(e,a,t)=>{e.exports=t.p+"assets/img/node-ps-general-add-tariff.a3cf6f06.png"},3301:(e,a,t)=>{e.exports=t.p+"assets/img/node-ps-receive-price.76eaa418.png"},7188:(e,a,t)=>{e.exports=t.p+"assets/img/node-ps-strategy-best-save.392292d5.png"},7652:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIgAAABNCAYAAAB9nyxVAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMjHxIGmVAAAGXklEQVR4Xu2dz2vcRhTH8z/tf5Cjj7mmYEyg5GRyCviUa+nFwadsE+cUwh5q7KwpFJKUsJdC6MXFCTE0JadAwaSkbZriH3mdN9JIb0ZPs9pdSZa1X8EHrBnNzFrvozdajeJcISIASlELAXCohQA41EIAHGqhxnh3RA/uf0fD4RBcYjiGHMswvmWohSGPHt6lV+Nb9OHFDfprstYK73/8iuiXr0HNnL68Se+e3aadx/dMaPV4S9RCCcvRphgOCNIsLEoVSdRCB6cizhxaAJsGgjQPZ5Jp041a6OD56iKyBwNBmoezCMc4jLtELXTwTY0WvDaAIO3AMQ7jLlELHRCk/0AQEAWCgCgQBESBIDVzvHWVBqvX6Fipm8rTa7Q+uEp7T5W6CwKC1AwEEXRSkNEKDQYrtMeBGgwsm6O8/mAjKbPMG0iD2o8dW5at0d6qGX8jLd+4XmybCXGdNgtlwbFpe+0zJGOs0IEbU/zOVtqgbVV6Kog4mXY/PeH8s5CCT/D61prfvgqRfvwMkgRLHqu1zT5rkEG0vrLPa38vFiKvc/u+EEVhZqGngsg0LU6srZv/ZGVE+okGtUAaWFUQJbBCLk8sV+eEsf0oP89BTwXxT4iXKdLgOkqDnB1TcnJL+pkqiA2Ya3eV1ksFkVOOhD+P0q/3ewu5uFyKJKjyey5XBgmOTU5QiQAzIPuZJkh45ZdPMSLI6bGSaAYx2M9h6vm4sj6q0FNBwoyRnHQ/eGmd3K9IrJ9Kgrh6l01UQYrjeG09IZJxPNmzTCUvltnpqSAr5q6eT06CvILsSU7LFzl5pf1kgeFgKdkrqzeYYB8oQnGd+8z+OEIAr86MvyWFEX0Jweaht4LIE7kUKNmQBdKm1lmAIJcUd4+R7KfZQt6T2JvcxaYXBoJcWoJvOTJ72HOwePZg+icIqBUIAqJAEBAFgoAo9Qry9jV9oU909laUNQQEaYeOCTKkk4/v6fwfw8cJfVaPSYAg7dCyIHfo3zdD+swc3lHqR3R2anrm7fQ1/Veoz4Eg7dCyIBM6Nw3t9mmi1HdckGCtZBmYS5Dt7W3bULJ9f0jPfxhDkDkoLP5dMJPdb2j7gR9fG2MTd7N5Lng7zP7+Ph0eHtLR0ZEHl42fPKHJ5KcZBNmhU77fyO45IIhW3yYsx/7e96Ux5vibLfPBk4MN0ho6uI6PqS6I2LdCXBJB7Mpp+oi7sP6RP/7238PIV2oT0uWA9LG4pQOScOaoEmOzFQXhNKM1kvAx/RbEBNJ7f8OJECztB9lGW1xzx3Ypg1SNsdlqEOS3Azo/OyFi/n5uynqSQbIpJskYVhBb5y8Sli+3J+0giP1Wk26hEH0TRE4VEpc1vPrkXdQqgngvDLUgEQRZhBkzSE4w/fR1ipn5JnWZBClIIKeRpC7MJl0UZKGbVGamr7lLJUi+n00J8huOnGJMuZ06XL3tl+su/kWnhb7mOtggTjMS9UHZmwmdueccxzumTDz3CPftcxCsxXSBhR6USbiRF7ipj9rrA4K0A8c4jLtELXTogtS/fflz5I9jgCDtUK8gv47o5I+f6+f3b/1xDBCkHeoVpEUgSDtAEBAFgoAoEAREgSAgCgQBUSBI17CP5Lvzb4shSNeQghTWftoHgnQZCDI/TQjivZxTthJryJb006u97G+y5qu0KbJPgzpelkHkynAuSdln5PL1jZVkvBpfHYAgKf47GfLdDg6UuIrlFODE8YLrjk36yIQJskHpeLL/aBv5vokTp/57FwhiCV/2KccGyRNEyBPrR5Gn/DhNkGIbKYwVJMhQdQBBLOGLP5IkMC6tr6+GgvhXrU313lWdYtrlwY6MVypIsQ0EidBaBgklkPv255IMEkwP07JBRqkgyCAz0ew9iDjhngQum0hBRNDksTa4+RWfZJNcmPh4miBhG+UeBILk1C0IkwQxJQuEk4IxwRqJoKXBrPI3WTdHxSlCHU8KIsb2RUsRQkCQgCYEmRkvmP0EgiwCBIEgUSAIBFl2IAiIAkFAlIUE4f/4/8OLG2oAmwaCNM/py5vEMQ7jLlELHePdEb0a31ID2DQQpHnePbtNHOMw7hK1UPLo4d0LySIQpFk4e+w8vmdCrMfdoRaGsCScSdoUBYI0A4vBmaOKHIxaqMGpiOcrvqkBlxeO4bRpRaIWAuBQCwFwqIUAJNCV/wHqxZ2/2166bwAAAABJRU5ErkJggg=="},6110:(e,a,t)=>{e.exports=t.p+"assets/img/node-ps-strategy-lowest-price.3a4ad347.png"}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunknode_red_contrib_power_saver=self.webpackChunknode_red_contrib_power_saver||[]).push([[807],{9570:(e,t,n)=>{n.r(t),n.d(t,{data:()=>r});const r={key:"v-fffb8e28",path:"/guide/",title:"Guide",lang:"en-US",frontmatter:{sidebar:"auto"},excerpt:"",headers:[{level:2,title:"Introduction",slug:"introduction",children:[]},{level:2,title:"Getting started",slug:"getting-started",children:[{level:3,title:"Installation",slug:"installation",children:[]},{level:3,title:"Get price data",slug:"get-price-data",children:[]},{level:3,title:"Add grid tariff",slug:"add-grid-tariff",children:[]},{level:3,title:"Calculate and run schedule",slug:"calculate-and-run-schedule",children:[]},{level:3,title:"Use schedule signals",slug:"use-schedule-signals",children:[]},{level:3,title:"Display schedule",slug:"display-schedule",children:[]},{level:3,title:"More information",slug:"more-information",children:[]}]},{level:2,title:"Migration from v2",slug:"migration-from-v2",children:[]}],git:{updatedTime:1641408133e3},filePathRelative:"guide/README.md"}},8253:(e,t,n)=>{n.r(t),n.d(t,{default:()=>ae});var r=n(6252),o=n(1321),a=n(3405),s=n(1758);const i=(0,r._)("h1",{id:"guide",tabindex:"-1"},[(0,r._)("a",{class:"header-anchor",href:"#guide","aria-hidden":"true"},"#"),(0,r.Uk)(" Guide")],-1),l=(0,r._)("h2",{id:"introduction",tabindex:"-1"},[(0,r._)("a",{class:"header-anchor",href:"#introduction","aria-hidden":"true"},"#"),(0,r.Uk)(" Introduction")],-1),d=(0,r.Uk)("This is a collection of nodes for the popular "),c={href:"https://nodered.org/",target:"_blank",rel:"noopener noreferrer"},u=(0,r.Uk)("Node-RED"),p=(0,r.Uk)(" that you can use to save money on variable electricity prices. Node-RED is a widely used low-code programming tool that can be used together with many smart home solutions to create automations."),h=(0,r.uE)('<p>The solution can be used to control switches or other entities in a smart home system, and for example turn on when the price is low, and turn off when the price is high. There are different ways to calculate what hours to turn on and off, and these are implemented as <strong>strategies nodes</strong>. Each strategy node can be configured to fit different purposes.</p><p>The strategies need price data to work. These can be received from different sources, for example Tibber, Nord Pool or custom sources.</p><div class="custom-container warning"><p class="custom-container-title">Price sources</p><p>Tibber and Nord Pool are only available in the nordics, so if you live outside the nordics, you must find another source of price data, and make your own input.</p></div><p>Grid tariff is normally not part of the electricity price, so if this varies by the hour, it must be added before sent to the strategy nodes for calculation. This can be done by putting a <code>ps-xxx-add-tariff</code> node between the price receiver and the strategy.</p><p>The strategy nodes have 3 outputs. Output 1 is used to &quot;turn on&quot;, output 2 is used to &quot;turn off&quot;, and on output 3, the calculated schedule and some other information is sent. You can use this to make graphs, or just send it to a debug node to view it.</p><p>Example:</p><p><img src="'+o+'" alt="Example flow"></p><p>Here prices are received from Tibber, converted in the <code>ps-receive-price</code> node, then grid tariff for Elvia is added before sent to the <code>ps-strategy-best-save</code> node. Output is sent to Home Assistant via two <code>call-service</code> nodes, and the schedule is sent to a debug node.</p><div class="custom-container tip"><p class="custom-container-title">Home Assistant</p><p>The node collection fits very well with Home Assistant (HA), as Node-RED is frequently used for automations, and there also is an integration with Nord Pool, but there is no direct dependency to HA, so all nodes can be used also without HA.</p></div><h2 id="getting-started" tabindex="-1"><a class="header-anchor" href="#getting-started" aria-hidden="true">#</a> Getting started</h2><h3 id="installation" tabindex="-1"><a class="header-anchor" href="#installation" aria-hidden="true">#</a> Installation</h3><p>Install in Node-RED via the Manage Palette menu.</p><p>May also be installed via npm:</p><p><code>npm install node-red-contrib-power-saver</code></p><p>Make sure that you upgrade now and then to get the latest version. See <a href="CHANGELOG">changelog</a> for changes.</p><h3 id="get-price-data" tabindex="-1"><a class="header-anchor" href="#get-price-data" aria-hidden="true">#</a> Get price data</h3><p>This solution is useless without price data. In the nordics, there are at least two very common places to get price data from:</p><ul><li>Tibber</li><li>Nord Pool</li></ul><p>The <code>ps-receive-price</code> node is designed to handle price input from both these, and convert it to the format required by the strategy nodes.</p>',19),b=(0,r.Uk)("If you are a Tibber customer, use the "),m=(0,r._)("code",null,"tibber-query",-1),f=(0,r.Uk)(" node from the "),_={href:"https://flows.nodered.org/node/node-red-contrib-tibber-api",target:"_blank",rel:"noopener noreferrer"},g=(0,r.Uk)("Tibber API"),v=(0,r.Uk)(" to receive price, with one of the following queries:"),y=(0,r._)("div",{class:"language-gql ext-gql line-numbers-mode"},[(0,r._)("pre",{class:"language-gql"},[(0,r._)("code",null,"{\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")]),(0,r._)("div",{class:"line-numbers"},[(0,r._)("span",{class:"line-number"},"1"),(0,r._)("br"),(0,r._)("span",{class:"line-number"},"2"),(0,r._)("br"),(0,r._)("span",{class:"line-number"},"3"),(0,r._)("br"),(0,r._)("span",{class:"line-number"},"4"),(0,r._)("br"),(0,r._)("span",{class:"line-number"},"5"),(0,r._)("br"),(0,r._)("span",{class:"line-number"},"6"),(0,r._)("br"),(0,r._)("span",{class:"line-number"},"7"),(0,r._)("br"),(0,r._)("span",{class:"line-number"},"8"),(0,r._)("br"),(0,r._)("span",{class:"line-number"},"9"),(0,r._)("br"),(0,r._)("span",{class:"line-number"},"10"),(0,r._)("br"),(0,r._)("span",{class:"line-number"},"11"),(0,r._)("br"),(0,r._)("span",{class:"line-number"},"12"),(0,r._)("br"),(0,r._)("span",{class:"line-number"},"13"),(0,r._)("br"),(0,r._)("span",{class:"line-number"},"14"),(0,r._)("br"),(0,r._)("span",{class:"line-number"},"15"),(0,r._)("br")])],-1),w=(0,r._)("div",{class:"language-gql ext-gql line-numbers-mode"},[(0,r._)("pre",{class:"language-gql"},[(0,r._)("code",null,'{\n viewer {\n home(id: "142c1670-ab43-2ab3-ba6d-723703a551e2") {\n currentSubscription{\n priceInfo{\n today {\n total\n energy\n tax\n startsAt\n }\n tomorrow {\n total\n energy\n tax\n startsAt\n }\n }\n }\n }\n }\n}\n')]),(0,r._)("div",{class:"highlight-lines"},[(0,r._)("br"),(0,r._)("br"),(0,r._)("div",{class:"highlight-line"}," "),(0,r._)("br"),(0,r._)("br"),(0,r._)("br"),(0,r._)("br"),(0,r._)("br"),(0,r._)("br"),(0,r._)("br"),(0,r._)("br"),(0,r._)("br"),(0,r._)("br"),(0,r._)("br"),(0,r._)("br"),(0,r._)("br"),(0,r._)("br"),(0,r._)("br"),(0,r._)("br"),(0,r._)("br"),(0,r._)("br"),(0,r._)("br")]),(0,r._)("div",{class:"line-numbers"},[(0,r._)("span",{class:"line-number"},"1"),(0,r._)("br"),(0,r._)("span",{class:"line-number"},"2"),(0,r._)("br"),(0,r._)("span",{class:"line-number"},"3"),(0,r._)("br"),(0,r._)("span",{class:"line-number"},"4"),(0,r._)("br"),(0,r._)("span",{class:"line-number"},"5"),(0,r._)("br"),(0,r._)("span",{class:"line-number"},"6"),(0,r._)("br"),(0,r._)("span",{class:"line-number"},"7"),(0,r._)("br"),(0,r._)("span",{class:"line-number"},"8"),(0,r._)("br"),(0,r._)("span",{class:"line-number"},"9"),(0,r._)("br"),(0,r._)("span",{class:"line-number"},"10"),(0,r._)("br"),(0,r._)("span",{class:"line-number"},"11"),(0,r._)("br"),(0,r._)("span",{class:"line-number"},"12"),(0,r._)("br"),(0,r._)("span",{class:"line-number"},"13"),(0,r._)("br"),(0,r._)("span",{class:"line-number"},"14"),(0,r._)("br"),(0,r._)("span",{class:"line-number"},"15"),(0,r._)("br"),(0,r._)("span",{class:"line-number"},"16"),(0,r._)("br"),(0,r._)("span",{class:"line-number"},"17"),(0,r._)("br"),(0,r._)("span",{class:"line-number"},"18"),(0,r._)("br"),(0,r._)("span",{class:"line-number"},"19"),(0,r._)("br"),(0,r._)("span",{class:"line-number"},"20"),(0,r._)("br"),(0,r._)("span",{class:"line-number"},"21"),(0,r._)("br"),(0,r._)("span",{class:"line-number"},"22"),(0,r._)("br")])],-1),k=(0,r._)("p",null,[(0,r.Uk)("See more details in the "),(0,r._)("a",{href:"../nodes/ps-receive-price#tibber-input"},"documentation"),(0,r.Uk)(" for the "),(0,r._)("code",null,"ps-receive-price"),(0,r.Uk)(" node.")],-1),x=(0,r.Uk)("Se documentation for "),U={href:"https://flows.nodered.org/node/node-red-contrib-tibber-api",target:"_blank",rel:"noopener noreferrer"},T=(0,r.Uk)("node-red-contrib-tibber-api"),q=(0,r.Uk)(" for details about the Tibber query."),A=(0,r._)("div",{class:"custom-container tip"},[(0,r._)("p",{class:"custom-container-title"},"Tibber query"),(0,r._)("p",null,[(0,r.Uk)("You can use an "),(0,r._)("code",null,"inject"),(0,r.Uk)(" node (standard Node-RED) to send the Tibber query as a text string int to the "),(0,r._)("code",null,"tibber-query"),(0,r.Uk)(" node. This can be set to repeat the query for example every hour.")])],-1),S=(0,r.Uk)("See example of Tibber flow and mqtt"),E=(0,r.Uk)("If you use Home Assistant (HA), you can install the "),N={href:"https://github.com/custom-components/nordpool",target:"_blank",rel:"noopener noreferrer"},I=(0,r.Uk)("Nord Pool custom component"),P=(0,r.Uk)(", that provides a "),W=(0,r._)("em",null,"sensor",-1),H=(0,r.Uk)(" that gives price per hour for today and tomorrow. Data can be sent from both the "),M=(0,r._)("code",null,"current state",-1),G=(0,r.Uk)(" node or the "),C=(0,r._)("code",null,"events: state",-1),D=(0,r.Uk)(" node."),R=(0,r.Uk)("See example with Nord Pool and "),O=(0,r._)("code",null,"current state",-1),Y=(0,r.Uk)(" node"),L=(0,r.Uk)("See example with Nord Pool and "),j=(0,r._)("code",null,"events: state",-1),B=(0,r.Uk)(" node"),Z=(0,r.uE)('<h3 id="add-grid-tariff" tabindex="-1"><a class="header-anchor" href="#add-grid-tariff" aria-hidden="true">#</a> Add grid tariff</h3><p>When also the grid tariff changes per hour, it must be added to the electricity price in order to get the calculations right.</p><p>After the the <code>ps-receive-price</code> node, add a <code>ps-xxx-add-tariff</code> node to add grid tariff. What node to choose depends on what grid you get electricity through. The following grids are supported:</p><table><thead><tr><th>Grid supplier</th><th>Node</th></tr></thead><tbody><tr><td>General (any)</td><td><code>ps-general-add-tariff</code></td></tr><tr><td>Elvia</td><td><code>ps-elvia-add-tariff</code></td></tr></tbody></table><p>If your grid is not supported, you may code this yourself.</p><div class="custom-container tip"><p class="custom-container-title">Skip this step</p><p>If the grid tariff is the same the whole day, you can skip this step i the flow.</p></div><h3 id="calculate-and-run-schedule" tabindex="-1"><a class="header-anchor" href="#calculate-and-run-schedule" aria-hidden="true">#</a> Calculate and run schedule</h3><p>This is the step where the value is produced. Based on the prices received, the optimal schedule for you is calculated automatically, based on your configuration. You can choose between the following strategies:</p><table><thead><tr><th>Strategy</th><th>Node</th><th>Description</th></tr></thead><tbody><tr><td>Best save</td><td><code>ps-strategy-best-save</code></td><td>Postpone power consumption when there is most to save.</td></tr><tr><td>Lowest price</td><td><code>ps--strategy-lowest-price</code></td><td>Turn on power when the prices are the lowest in a given period.</td></tr></tbody></table><p>These nodes must be configured for your purpose. See configuration description and other details in the documentation for each node.</p><p>Send the result from the <code>ps-xxx-add-tariff</code> node (or the <code>ps-receive-price</code> node) as input to the strategy node you choose.</p><div class="custom-container tip"><p class="custom-container-title">Choose strategy</p><p>Choose the best save strategy if you can postpone power consumption, and expect the consumption to occur during the first hour after power is turned on again.</p><p>Choose the lowest price strategy if you need the power to be on for x hours, but it is not important when that is. Note that you can select to have all hours on in one consecutive period, or spread around on the cheapest hours.</p></div><h3 id="use-schedule-signals" tabindex="-1"><a class="header-anchor" href="#use-schedule-signals" aria-hidden="true">#</a> Use schedule signals</h3><p>Use the outputs to control switches, thermostats or other entities to control your power consumers.</p><p><strong>Output 1</strong> is used to turn on. A payload with value <code>true</code> is sent every time turning on is scheduled.</p><p><strong>Output 2</strong> is used to turn off. A payload with value <code>false</code> is sent every time turning off is scheduled.</p><p>Example using Home Assistant:</p><p><img src="'+a+'" alt="Example flow"></p><div class="custom-container tip"><p class="custom-container-title">Use output</p><p>There are many ways you can use the output:</p><ul><li>Turn on/off a switch</li><li>Set a thermostat up, down or to specific values</li><li>Change setting of a dimmer</li><li>Send a notification</li></ul></div><h3 id="display-schedule" tabindex="-1"><a class="header-anchor" href="#display-schedule" aria-hidden="true">#</a> Display schedule</h3><p><strong>Output 3</strong> can be used to print or display the calculated schedule. If you just want to see it, send it to a debug node. You can also use it to display the result as graphs in HA.</p><p>For users of Magic Mirror and Tibber, the <code>ps-best-save</code> node can send its schedule to the MMM-Tibber module. See more details in the <code>ps-best-save</code> node documentation.</p><h3 id="more-information" tabindex="-1"><a class="header-anchor" href="#more-information" aria-hidden="true">#</a> More information</h3>',23),F=(0,r.Uk)("There are more details and more information in the documentation for each "),z=(0,r.Uk)("node"),J=(0,r.Uk)(" and in the "),K=(0,r.Uk)("examples"),Q=(0,r.Uk)("."),V=(0,r._)("h2",{id:"migration-from-v2",tabindex:"-1"},[(0,r._)("a",{class:"header-anchor",href:"#migration-from-v2","aria-hidden":"true"},"#"),(0,r.Uk)(" Migration from v2")],-1),X=(0,r._)("p",null,[(0,r.Uk)("The "),(0,r._)("code",null,"Power Saver"),(0,r.Uk)(" node from v2 is still here, and it is working exactly as before. However, it will not be further maintained, so you should replace it. You may directly replace the "),(0,r._)("code",null,"Power Saver"),(0,r.Uk)(" node by two of the new nodes:")],-1),$=(0,r._)("p",null,[(0,r._)("img",{src:s,alt:"Migrate Power Saver"})],-1),ee=(0,r.Uk)("See more details in the "),te=(0,r.Uk)("documentation for the "),ne=(0,r._)("code",null,"ps-strategy-best-save",-1),re=(0,r.Uk)(" node."),oe={},ae=(0,n(3744).Z)(oe,[["render",function(e,t){const n=(0,r.up)("ExternalLinkIcon"),o=(0,r.up)("CodeGroupItem"),a=(0,r.up)("CodeGroup"),s=(0,r.up)("RouterLink");return(0,r.wg)(),(0,r.iD)(r.HY,null,[i,l,(0,r._)("p",null,[d,(0,r._)("a",c,[u,(0,r.Wm)(n)]),p]),h,(0,r._)("p",null,[b,m,f,(0,r._)("a",_,[g,(0,r.Wm)(n)]),v]),(0,r.Wm)(a,null,{default:(0,r.w5)((()=>[(0,r.Wm)(o,{title:"All homes"},{default:(0,r.w5)((()=>[y])),_:1}),(0,r.Wm)(o,{title:"Single home",active:""},{default:(0,r.w5)((()=>[w])),_:1})])),_:1}),k,(0,r._)("p",null,[x,(0,r._)("a",U,[T,(0,r.Wm)(n)]),q]),A,(0,r._)("p",null,[(0,r.Wm)(s,{to:"/examples/example-tibber-mqtt.html"},{default:(0,r.w5)((()=>[S])),_:1})]),(0,r._)("p",null,[E,(0,r._)("a",N,[I,(0,r.Wm)(n)]),P,W,H,M,G,C,D]),(0,r._)("p",null,[(0,r.Wm)(s,{to:"/examples/example-nordpool-current-state.html"},{default:(0,r.w5)((()=>[R,O,Y])),_:1})]),(0,r._)("p",null,[(0,r.Wm)(s,{to:"/examples/example-nordpool-events-state.html"},{default:(0,r.w5)((()=>[L,j,B])),_:1})]),Z,(0,r._)("p",null,[F,(0,r.Wm)(s,{to:"/nodes/"},{default:(0,r.w5)((()=>[z])),_:1}),J,(0,r.Wm)(s,{to:"/examples/"},{default:(0,r.w5)((()=>[K])),_:1}),Q]),V,X,$,(0,r._)("p",null,[ee,(0,r.Wm)(s,{to:"/nodes/ps-strategy-best-save.html"},{default:(0,r.w5)((()=>[te,ne])),_:1}),re])],64)}]])},3744:(e,t)=>{t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n}},1321:(e,t,n)=>{e.exports=n.p+"assets/img/example-flow-1.3ff3e23f.png"},3405:(e,t,n)=>{e.exports=n.p+"assets/img/example-flow-2.b653b58d.png"},1758:(e,t,n)=>{e.exports=n.p+"assets/img/migrate-best-save.f73420f6.png"}}]);
@@ -1,33 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en-US">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <meta name="generator" content="VuePress 2.0.0-beta.35">
7
- <style>
8
- :root {
9
- --c-bg: #fff;
10
- }
11
- html.dark {
12
- --c-bg: #22272e;
13
- }
14
- html, body {
15
- background-color: var(--c-bg);
16
- }
17
- </style>
18
- <script>
19
- const userMode = localStorage.getItem('vuepress-color-scheme');
20
- const systemDarkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
21
- if (userMode === 'dark' || (userMode !== 'light' && systemDarkMode)) {
22
- document.documentElement.classList.toggle('dark', true);
23
- }
24
- </script>
25
- <link rel="shortcut icon" type="image/x-icon" href="euro.png"><script async src="https://www.googletagmanager.com/gtag/js?id=G-Z2QNNCDQZG"></script><script src="window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-Z2QNNCDQZG');"></script><title>Change Log | Power Saver</title><meta name="description" content="A Node-RED note to save money on hourly changing power prices">
26
- <link rel="preload" href="/assets/js/runtime~app.f6ac32d7.js" as="script"><link rel="preload" href="/assets/css/styles.1c48cbd0.css" as="style"><link rel="preload" href="/assets/js/405.f4edd94d.js" as="script"><link rel="preload" href="/assets/js/app.6c6c1409.js" as="script">
27
- <link rel="stylesheet" href="/assets/css/styles.1c48cbd0.css">
28
- </head>
29
- <body>
30
- <div id="app"><!--[--><div class="theme-container"><!--[--><header ref_key="navbar" class="navbar"><div class="toggle-sidebar-button" title="toggle sidebar" aria-expanded="false" role="button" tabindex="0"><div class="icon" aria-hidden="true"><span></span><span></span><span></span></div></div><span><a href="/" class=""><img class="logo" src="/Ukraine-heart-shape-flag.png" alt="Power Saver"><span class="site-name can-hide">Power Saver</span></a></span><div class="navbar-items-wrapper" style=""><!--[--><!--]--><nav class="navbar-items can-hide"><!--[--><div class="navbar-item"><a href="/guide/" class="" aria-label="Guide"><!--[--><!--]--> Guide <!--[--><!--]--></a></div><div class="navbar-item"><a href="/nodes/" class="" aria-label="Nodes"><!--[--><!--]--> Nodes <!--[--><!--]--></a></div><div class="navbar-item"><a href="/examples/" class="" aria-label="Examples"><!--[--><!--]--> Examples <!--[--><!--]--></a></div><div class="navbar-item"><a href="/faq/" class="" aria-label="FAQ"><!--[--><!--]--> FAQ <!--[--><!--]--></a></div><div class="navbar-item"><a href="/contribute/" class="" aria-label="Contribute"><!--[--><!--]--> Contribute <!--[--><!--]--></a></div><div class="navbar-item"><a aria-current="page" href="/changelog/" class="router-link-active router-link-exact-active router-link-active" aria-label="Changes"><!--[--><!--]--> Changes <!--[--><!--]--></a></div><div class="navbar-item"><a class="external-link" href="https://github.com/ottopaulsen/node-red-contrib-power-saver" rel="noopener noreferrer" target="_blank" aria-label="GitHub"><!--[--><!--]--> GitHub <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span><!--[--><!--]--></a></div><!--]--></nav><!--[--><!--]--><button class="toggle-dark-button" title="toggle dark mode"><svg style="" class="icon" focusable="false" viewBox="0 0 32 32"><path d="M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6z" fill="currentColor"></path><path d="M5.394 6.813l1.414-1.415l3.506 3.506L8.9 10.318z" fill="currentColor"></path><path d="M2 15.005h5v2H2z" fill="currentColor"></path><path d="M5.394 25.197L8.9 21.691l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 25.005h2v5h-2z" fill="currentColor"></path><path d="M21.687 23.106l1.414-1.415l3.506 3.506l-1.414 1.414z" fill="currentColor"></path><path d="M25 15.005h5v2h-5z" fill="currentColor"></path><path d="M21.687 8.904l3.506-3.506l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 2.005h2v5h-2z" fill="currentColor"></path></svg><svg style="display:none;" class="icon" focusable="false" viewBox="0 0 32 32"><path d="M13.502 5.414a15.075 15.075 0 0 0 11.594 18.194a11.113 11.113 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1.002 1.002 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.072 13.072 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3z" fill="currentColor"></path></svg></button><!----></div></header><!--]--><div class="sidebar-mask"></div><!--[--><aside class="sidebar"><nav class="navbar-items"><!--[--><div class="navbar-item"><a href="/guide/" class="" aria-label="Guide"><!--[--><!--]--> Guide <!--[--><!--]--></a></div><div class="navbar-item"><a href="/nodes/" class="" aria-label="Nodes"><!--[--><!--]--> Nodes <!--[--><!--]--></a></div><div class="navbar-item"><a href="/examples/" class="" aria-label="Examples"><!--[--><!--]--> Examples <!--[--><!--]--></a></div><div class="navbar-item"><a href="/faq/" class="" aria-label="FAQ"><!--[--><!--]--> FAQ <!--[--><!--]--></a></div><div class="navbar-item"><a href="/contribute/" class="" aria-label="Contribute"><!--[--><!--]--> Contribute <!--[--><!--]--></a></div><div class="navbar-item"><a aria-current="page" href="/changelog/" class="router-link-active router-link-exact-active router-link-active" aria-label="Changes"><!--[--><!--]--> Changes <!--[--><!--]--></a></div><div class="navbar-item"><a class="external-link" href="https://github.com/ottopaulsen/node-red-contrib-power-saver" rel="noopener noreferrer" target="_blank" aria-label="GitHub"><!--[--><!--]--> GitHub <span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span><!--[--><!--]--></a></div><!--]--></nav><!--[--><!--]--><ul class="sidebar-items"><!--[--><li><p tabindex="0" class="sidebar-item sidebar-heading">Change Log <!----></p><!--[--><ul style="" class="sidebar-item-children"><!--[--><li><a aria-current="page" href="/changelog/#_3-4-2" class="router-link-active router-link-exact-active sidebar-item" aria-label="3.4.2"><!--[--><!--]--> 3.4.2 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/changelog/#_3-4-1" class="router-link-active router-link-exact-active sidebar-item" aria-label="3.4.1"><!--[--><!--]--> 3.4.1 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/changelog/#_3-4-0" class="router-link-active router-link-exact-active sidebar-item" aria-label="3.4.0"><!--[--><!--]--> 3.4.0 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/changelog/#_3-3-2" class="router-link-active router-link-exact-active sidebar-item" aria-label="3.3.2"><!--[--><!--]--> 3.3.2 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/changelog/#_3-3-1" class="router-link-active router-link-exact-active sidebar-item" aria-label="3.3.1"><!--[--><!--]--> 3.3.1 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/changelog/#_3-3-0" class="router-link-active router-link-exact-active sidebar-item" aria-label="3.3.0"><!--[--><!--]--> 3.3.0 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/changelog/#_3-2-3" class="router-link-active router-link-exact-active sidebar-item" aria-label="3.2.3"><!--[--><!--]--> 3.2.3 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/changelog/#_3-2-2" class="router-link-active router-link-exact-active sidebar-item" aria-label="3.2.2"><!--[--><!--]--> 3.2.2 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/changelog/#_3-2-1" class="router-link-active router-link-exact-active sidebar-item" aria-label="3.2.1"><!--[--><!--]--> 3.2.1 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/changelog/#_3-2-0" class="router-link-active router-link-exact-active sidebar-item" aria-label="3.2.0"><!--[--><!--]--> 3.2.0 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/changelog/#_3-1-2" class="router-link-active router-link-exact-active sidebar-item" aria-label="3.1.2"><!--[--><!--]--> 3.1.2 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/changelog/#_3-1-1" class="router-link-active router-link-exact-active sidebar-item" aria-label="3.1.1"><!--[--><!--]--> 3.1.1 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/changelog/#_3-1-0" class="router-link-active router-link-exact-active sidebar-item" aria-label="3.1.0"><!--[--><!--]--> 3.1.0 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/changelog/#_3-0-10" class="router-link-active router-link-exact-active sidebar-item" aria-label="3.0.10"><!--[--><!--]--> 3.0.10 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/changelog/#_3-0-9" class="router-link-active router-link-exact-active sidebar-item" aria-label="3.0.9"><!--[--><!--]--> 3.0.9 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/changelog/#_3-0-8" class="router-link-active router-link-exact-active sidebar-item" aria-label="3.0.8"><!--[--><!--]--> 3.0.8 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/changelog/#_3-0-7" class="router-link-active router-link-exact-active sidebar-item" aria-label="3.0.7"><!--[--><!--]--> 3.0.7 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/changelog/#_3-0-6" class="router-link-active router-link-exact-active sidebar-item" aria-label="3.0.6"><!--[--><!--]--> 3.0.6 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/changelog/#_3-0-5" class="router-link-active router-link-exact-active sidebar-item" aria-label="3.0.5"><!--[--><!--]--> 3.0.5 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/changelog/#_3-0-4" class="router-link-active router-link-exact-active sidebar-item" aria-label="3.0.4"><!--[--><!--]--> 3.0.4 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/changelog/#_3-0-3" class="router-link-active router-link-exact-active sidebar-item" aria-label="3.0.3"><!--[--><!--]--> 3.0.3 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/changelog/#_3-0-2" class="router-link-active router-link-exact-active sidebar-item" aria-label="3.0.2"><!--[--><!--]--> 3.0.2 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/changelog/#_3-0-1" class="router-link-active router-link-exact-active sidebar-item" aria-label="3.0.1"><!--[--><!--]--> 3.0.1 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/changelog/#_3-0-0" class="router-link-active router-link-exact-active sidebar-item" aria-label="3.0.0"><!--[--><!--]--> 3.0.0 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/changelog/#_2-1-0" class="router-link-active router-link-exact-active sidebar-item" aria-label="2.1.0"><!--[--><!--]--> 2.1.0 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/changelog/#_2-0-5" class="router-link-active router-link-exact-active sidebar-item" aria-label="2.0.5"><!--[--><!--]--> 2.0.5 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/changelog/#_2-0-4" class="router-link-active router-link-exact-active sidebar-item" aria-label="2.0.4"><!--[--><!--]--> 2.0.4 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/changelog/#_2-0-3" class="router-link-active router-link-exact-active sidebar-item" aria-label="2.0.3"><!--[--><!--]--> 2.0.3 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/changelog/#_2-0-2" class="router-link-active router-link-exact-active sidebar-item" aria-label="2.0.2"><!--[--><!--]--> 2.0.2 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/changelog/#_2-0-1" class="router-link-active router-link-exact-active sidebar-item" aria-label="2.0.1"><!--[--><!--]--> 2.0.1 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/changelog/#_2-0-0" class="router-link-active router-link-exact-active sidebar-item" aria-label="2.0.0"><!--[--><!--]--> 2.0.0 <!--[--><!--]--></a><!----></li><li><a aria-current="page" href="/changelog/#_1-0-9" class="router-link-active router-link-exact-active sidebar-item" aria-label="1.0.9"><!--[--><!--]--> 1.0.9 <!--[--><!--]--></a><!----></li><!--]--></ul><!--]--></li><!--]--></ul><!--[--><!--]--></aside><!--]--><!--[--><main class="page"><!--[--><!--]--><div class="theme-default-content"><!--[--><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><ul><li>Move doc to <a href="power-saver.smoky.no">power-saver.smoky.no</a></li><li>Make tool to test the result of the best save node: <a href="/changelog/power-saver.smoky.no/faq/best-save-viewer.html" class="">Best Save Viewer</a></li></ul><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><!--]--></div><footer class="page-meta"><!----><div class="meta-item last-updated"><span class="meta-item-label">Last Updated: </span><!----></div><!----></footer><!----><!--[--><!--]--></main><!--]--></div><!----><!--]--></div>
31
- <script src="/assets/js/runtime~app.f6ac32d7.js" defer></script><script src="/assets/js/405.f4edd94d.js" defer></script><script src="/assets/js/app.6c6c1409.js" defer></script>
32
- </body>
33
- </html>