I’m not a coder and new to Node-Red so finding it tricky to create a flow, and now find the problem is how to implement ‘and’ for the parameters I’d like to trigger the relay. I’m not really sure what to input in the function json, and I couldn’t get a Boolean palette node to work.
Yeah I’d like to be able to control the GX relay (to trigger the Quattro ACout2) based on:
Load ( From Quattro: Is the load low enough to turn on the immersion - with hysteresis to stop flapping)
SOC (From Shunt: Is the battery charged enough - on and then off percentages)
Charge mode (From BatteryAggregator Dbus: Check for instance; the batteries are in “Float” mode so they have done their balancing)
Manual 0verride - Would be handy but not critical, it was initially in my flow for testing the relay)
So far I got each individual section working but it’s trying to make them work together in parallel with some kind of ‘and/or’ function I’m not sure with my current format?
I have spent the last few days looking around the old forum, YT and tutorials but haven’t found any other relatively simple Node-Red excess solar diversion flows so maybe this would be useful too for others, that need better control than Assistants while there’s still no dedicated Victron method for relay 2.
Thanks all, I think I have a working flow, I ended up prompting ChatGPT for a few hours and it looks like it helped me make a flow to work how I want after quite a bit of trial and error with GPT. My first time for both a working Node-Red flow and programming with AI. *I’ll test it properly tomorrow. - Now Tested, just need to clean up some unused UI Dashboard contexts, but it all works as expected.