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

Fills the debug log in seconds. #91

Closed Mheel80 closed 1 year ago

Mheel80 commented 1 year ago

Hello. The lowest price node fills the debug log in a few seconds making it inpossible to use the debug logg. received_1004267500970814

ottopaulsen commented 1 year ago

Check how often you send data in to the node. I believe this output cones only once for each time it receives data.

Mheel80 commented 1 year ago

I inject it every second. That because if i change any values i want it to apply instantly.

marhoy commented 1 year ago

@Mheel80 Trigger on events from HA instead. No need to re-send the input if nothing changed.

Mheel80 commented 1 year ago

@marhoy I have changed so It doesnt inject every second and It works if I have a schedule but when It says no schedule It keeps sending no schedule every second in the logg.

ottopaulsen commented 1 year ago

Please verify that the node does not also get input every second. I cannot imagine anything in there sending the message every second unless it gets input.

Mheel80 commented 1 year ago

@ottopaulsen Yes that is the problem and if i change them to state nodes the flow will not work until all have changed value. I will try to figure out a solution.

marhoy commented 1 year ago

@Mheel80 If you explain what you want to achieve, maybe we can suggest a useful flow?

Mheel80 commented 1 year ago

@marhoy Sure. I have set up the following so it can be changed from the dashboard in HA. image If i use state node and I modify the flow and do a modifyed deployment it will not send the values to the next node in node red untill it changes value. This results to that the lowest price node cant plan a schedule because it doesnt have the correct values. I will have the same problem if i restart HA or my server restarts. Here I have restarted HA and used state nodes. image This is how it looks when i have changed all values after restart. image

marhoy commented 1 year ago

@Mheel80 What is it that you are trying to do? You have a spa bath, and you want to control what property of it in what way?

Mheel80 commented 1 year ago

@marhoy I change the temperture setpoints depending on the price. All that works.

Mheel80 commented 1 year ago

@marhoy I trying the following and it looks like it is working. image

ottopaulsen commented 1 year ago

Is this still an issue? If not, please close.