Change Log

List the most significant changes.


  • Fix bug that saved some data in wrong context storage.


  • Fix so configured values for output are sent, not only true/false.
  • Catch error from Elvia API so NR does not crash.


  • Update dependencies


  • Fix bug with override function. It did not override longer than until next scheduled change. Now it overrides until set to auto again.
  • Show override on node status.
  • Fix name filter on schedule merger node.


This is a major rewrite of some of the central code, in order to lay ground for further development and maintenance. There are a couple of new nodes that open for many interesting use cases. A rewrite like this may lead to changes in behavior, intended or not. There are some breaking changes, but most users should not be affected by them.

New features

  • New node ps-schedule-merger or Schedule Merger, used to merge schedules from multiple Best Save and/or Lowest Price nodes, as well as the new Fixed Schedule node.
  • New strategy node ps-strategy-fixed-schedule or Fixed Schedule, to set a fixed daily or weekly schedule. The main purpose of this node is to function as a mask for other strategies when merged using the Schedule Merger, but it can also be used alone.
  • For Best Save and Lowest Price you now can configure the output value, sent on output 1 and 2 to turn on or off. Default is true/false as before, but you can configure to send for example 1 and 0, or "on" and "off", or any other number or string values.
  • The config output on Best Save and Lowest Price (as well as the new Schedule Merger) has a new attribute: hasChanged. It is set to true if the config just was changed by a config input message.
  • You can now donate using Vipps 😃

Breaking changes

  • The old Power Saver node has been removed, as it has been deprecated for a long time.
  • The sentOnCommand output has been removed.
  • Some bug-fixes may be regarded as breaking.
  • There may be some changes to what data that is stored in the context.

Bug fixes

  • Fix so the If no schedule, send config works as one should expect for the end of the schedule. If the last scheduled switch is different from this setting, a switch to the value set by this setting will be scheduled on the first hour after the whole schedule, normally at midnight. The countHours value for this schedule will be null, as it is impossible to say how many hours it will last for.

  • Fixed also so If no schedule, send works if the schedule only exists for the future. Then this value is used until the time for the first scheduled value is reached.

  • Fixed Best Save and Lowest Price so when rescheduling, for example if prices are received, and Send when rescheduling is not checked, output to output 1 or output 2 is only sent if it has not been sent before, or if it is changed by the new schedule. This is to avoid sending output when not necessary, that is if there is no change. Of course, if the Send when rescheduling is checked, output is sent anyway.

    NB! If for some reason a switch did not catch the last output, this may lead to it not being switched until the next scheduled switch. If you get trouble with that, you can always enforce switch output by sending the sendOutput command.

  • Fix price receiver so it works when price is 0.

  • Fixed bug in Lowest Price and Best Save for 0 prices.

  • Improved error handling for Elvia Add Tariff.


  • Fix bug in Elvia API causing Node-RED to crash when the API key was wrong. Not it shows status Unauthorized and survive.


  • Fix bug in Best Save node, so a better saving is not overwritten by a not as good saving in an overlapping period. This bug could occur in rare cases when a shorter savings period gave better results than a longer.


  • New feature Max price for Lowest Price node. Can be set to only turn on if prices is below or equal to the max price.
  • New value in output 3 from the Lowest Price and Best Save nodes, countHours, telling the number of hours that the value will stay.


  • Add day-filter to general-add-tariff node so it can add one tariff for some days, and another tariff for other days.
  • Fix the elvia-add-tariff node so time is correct. The Elvia API does not handle time zone on the request, so this must be corrected for.
  • Fix link to node-documentation in node edit dialogs.


  • Update Elvia nodes so they use the new digin API. NB! There is no guarantee this is working right.


  • Fix config storage for Best Save node


  • Fix bug in context selection
  • Add example for visualization in Lovelace


  • Fix a couple of bugs in how context is used.


  • Re-introduce the search bar, after Vuepress upgrade.


  • Update github actions to deploy automatically to the npm library.


  • Select what context storage to store data in the node configuration.
  • New dynamic command: replan, that can be sent after a restart in order to create a schedule based on the last received prices, provided file is used as context storage (alternatively another permanent storage).
  • Some improvements to node status.


  • Fix bug in Best Save Viewer in the documentation (under FAQ)


  • Fix Elvia config so it can be used independently on any node.


  • Fix bug in reset command. It did not reset daily data properly.


  • Update examples
  • Update dependencies
  • Move doc to


  • Added new strategy node Heat Capacitor


  • Add command sendOutput.



  • Remove the config option to schedule from the current hour. The feature did not work, and it was not clear how it should work.
  • Added a dynamic command feature to make it possible to dynamically
    1. Tell the node to send the schedule to output 3.
    2. Reset saved data making the next schedule to start without historical data.
  • Fix node status so it says "No price data" when there is no price data available.
  • Added an FAQ section to the doc.


  • Remove unused imports
  • Fix doc deployment issue


  • New attempt to solve the problem with multiple outputs at the same time.


  • Fix that may solve the problem with multiple outputs at the same time.


  • Config can be sent on input to strategy nodes together with price data, in the same message.
  • The ps-receive-price and ps-xxx-add-tariff nodes pass config through from input to output.
  • Status on strategy nodes shows the time for the next change.


  • Add time, version and current value to output from strategy nodes.


  • Fix schedule for Lowest Price node so it uses data from previous day correctly. It sometimes failed when the selected period went over midnight.
  • Fix so old data in the Lowest Price node context is deleted.


  • New node ps-general-add-tariff to add values that varies af fixed times during the day.


  • Fix bug in ps-elvia-add-tariff so it connects to API.


  • Fix Nord Pool input for current state node, to read data when payload is set to entity.


  • Fix bug in Lowest Price node when period goes over midnight.
  • Fix documentation - lots of pages were failing.


  • Fix Nord Pool current state node input.


  • Remove non-existent node from package.json.


  • Move dependencies to correct section (node_fetch and lodash.cloneDeep).


  • Remove null-values from Nord Pool data for tomorrow.


  • Fix bug in lowest price strategy, when period ends at midnight.
  • Fix labels for hours on, so they do not have leading zero.
  • Fix so source should be visible in output 3.


  • Bugfix in Lowest Price node (not successful)


  • Fix so elvia subscription key is stored as credential
  • Fix bug on config for strategy nodes. Config was not saved properly.
  • Remove double output bug, and better handling when hoursOn > period


  • Deprecating old Power Saver node, adding multiple new nodes.
  • New node ps-strategy-best-save is replacing old node Power Saver together with the new ps-receive-price node.
  • Add new strategy node: ps-strategy-lowest-price.
  • Add new node: ps-receive-price.
  • Add grid tariff for Elvia customers, using the ps-elvia-add-tariff node.
  • New documentation.
  • Change node category to Power Saver.


  • Accept config as input, making it possible to dynamically change config
  • Fix dropdown for config value for selecting output when there is no schedule
  • Improve config screen and documentation


  • Update links to examples


  • Update doc and add examples


  • Bugfix


  • Fix so Nord Pool data can be read directly from the current state node


  • Fix bug that caused no schedule
  • Add config to output


  • New and better algorithm to calculate savings, resulting in a better schedule.
  • Removed possibility to configure maximum hours to save per day, as this does not really make much sense.
  • Round savings to 4 decimals.
  • Set last savings hour to null when 0.


  • Fix bug in saving last hour of the day.
Last Updated: