I am a fairly new user to Nodered, and JS.
I am trying to setup a pump control. The pump motor will run run when the pressure switch closes.
There is a comparator that is comparing the pump current. If the pump current is below 70% of full load current for greater than 30 seconds it will stop the pump for 10 minutes.
Once I can get all this to work, I will have MQTT setup to send when the pump is in refill delay, and send the pump current, pump state, to the IO platform.
I have tried to have a 3 input and gate with the pressure switch, the current compare, and the refill timer are all inputs. The pressure switch and current compare have there own inject. The refill is in series with the compare which it seems like I can never get that one to trigger. Will it not trigger as it is on the same inject which would be the same message.payload ?
I can knock this out in ladder logic with no issue. This is kicking my butt.
I did try the buffer stack relays and could not quite figure out how to get them to work properly.
Thank you!
flows (1).json (12.5 KB)