Attached are two flows required to integrate ESP into node red for those that want to get load shedding forecasts and then use this data to automate behaviour in response to outages.
I have not got far enough to create a flow for auto-charging/topup yet, but will get there.
You will need to sign up for an API key at: https://eskomsepush.gumroad.com/l/api?layout=profile.
This is put into the "set header to token value" node.
You will also, using postman and the instructions available at ESP or online, find your region code URL and put that into the "check forecast status node".
Thanks to Phil Gavin for the ESP flow which I have modified.
The Load shedding flow will put the following on a dashboard.
You can then use the various outputs to develop whichever behaviour you require in order to automate for load shedding.
I will post mine once available.
I am sure there are more efficient ways of doing this for those more experienced, but it works.