Hi All
I am new to Node Red so any help you can provide would be great.
I am currently running ESS without issues, however I would like to be able to manually control the grid setpoint to allow me to manually make use of variable grid feed-in and feed-out tariffs.
I have managed to set a basic inject node to set the grid set-point, but I would like to trigger this using the relay 2 switch status or any other method that you may recommend.
Any suggestions would be greatly appreciated.
Thanks all 
So I ended up figuring it out by reading multiple posts and using GROK 
My relays are currently unused. I am using the relays to virtually trigger actions.
Relay 1 - Charge battery from grid
When off - set minimum state of charge to 15%
When on - set minimum state of charge to 99%
Relay 2 - Send power to grid
When off - set minimum state of charge to 15%, set grid set point to -* (what ever figure you like)
When on - set minimum state of charge to 99%, set grid set point to -* (what ever figure you like)
To ensure I have enough battery to get me through peak tariff times, when the battery is discharge to 50% (or whatever figure you like), turn the relay off.
Hope this help future readers. I have attached my JSON for reference too.
JSON.zip (2.0 KB)