NodeRed - Improve the logic behind turning on electrical sockets

Job ID: 35853326

Budget: $10 – $50 AUD

HI there,

I use NodeRed to control home automation.
I have a set of rules that look at how much excess solar I am generating (generation less consumption) and then turn on a number of smart switches around the house.

The problem with my current configuration, is that each switch is set to a different excess amount, based on the application connected to it. And so when the sun suddenly starts to shine bright, multiple switches turn on at once, which then causes a deficit, and so they turn off again.

What I am after, is someone who can update the configuration so that when excess solar increases, switch A is turned on first, it waits, it then evaluates if there is enough power to turn on switch B, etc

The reverse to apply when excess power drops, turn off switch C, wait, evaluate if switch B needs to be turned off.

The goal is between 0800 and 1900, export/excess to be +/- 50w

My current switch rules attached to this project
To verify that you've read these requirements, put the current month in the first line of your response.
Related categories: JavaScript Home Automation