node-red-contrib-power-saver icon indicating copy to clipboard operation
node-red-contrib-power-saver copied to clipboard

Lowest price should output one message via schedule when receiving a dynamic config

Open Swoop86 opened this issue 3 years ago • 1 comments

Powersaver version: 3.6.2. Issue found with node "lowest price", cannot confirm if issue is present with the other nodes.

When dynamic config is sent to the node the expected output should be one message returned from schedule output. Per version listed above, the node sends two messages when the flow starts. Alternatively provide a checkbox with "dynamic config expected" in the node config to give a fourth output that can be used with dynamic config, this could possibly be easier to maintain and debug in future releases.

Skjermbilde 2022-09-24 kl  19 25 02 Skjermbilde 2022-09-24 kl  19 24 56

Swoop86 avatar Sep 24 '22 17:09 Swoop86

@Swoop86 I believe the node sends one output upon initialization, and another one when it receives the dynamic config. You can confirm this by e.g. setting a different setpoint on the internal node configuration than the value you send as input.

marhoy avatar Oct 04 '22 12:10 marhoy