ottopaulsen / node-red-contrib-power-saver

A Node-RED node to saver money by turning off when the power is most expensive
Other
71 stars 17 forks source link

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

Open Swoop86 opened 1 year ago

Swoop86 commented 1 year ago

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
marhoy commented 1 year ago

@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.