Automation library · Alerts and monitoring

Optimize EV charging load control and alerts with HTTP API

Started by a clock, and works across Email and Slack. 19 steps, 1 branch, 2 loops or waits: a working afternoon to understand properly.

Medium

19 stepsMedium: a working afternoon
1Branch: places the flow splits
2Loops or waits
2Services it connects to

The flow

Starts it 1Logic 9Service 9

The steps in the order they run, from what starts it.

  1. 1Schedule Trigger - Poll Charging NetworkSchedule triggerStarts it
  2. 2Config - Thresholds & Site SettingsSetLogic
  3. 3Fetch Live Station Demand & Grid DataHttp RequestService
  4. 4JS - Parse & Normalize Station DataCodeLogic
  5. 5Send Fetch Failure Alert EmailEmail SendService
  6. 6JS - Calculate Grid Load & Detect AnomaliesCodeLogic
  7. 7JS - Forecast Near-Term DemandCodeLogic
  8. 8JS - Generate Weighted Charging ScheduleCodeLogic
  9. 9IF - Grid Overload Risk Detected?IfLogic
  10. 10Wait Before Broadcasting Adjusted ScheduleWaitLogic
  11. 11Apply Control Commands (Normal Path)Http RequestService
  12. 12JS - Build Overload Mitigation & Cost PayloadCodeLogic
  13. 13Send Standard Charging Schedule NotificationEmail SendService
  14. 14Apply Control Commands (Overload Path)Http RequestService
  15. 15Wait for ResultWaitLogic
  16. 16Send Overload Warning & Mitigation Plan EmailEmail SendService
  17. 17Send Overload Slack AlertSlackService
  18. 18Log Normal Cycle MetricsHttp RequestService
  19. 19Log Overload Cycle MetricsHttp RequestService

How it's built

Starts on
A clock
Steps
19, with 1 branch, 2 loops or waits
Size
Medium: a working afternoon
Connects to
Email, Slack
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own Email and Slack accounts. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Plan an afternoon. 19 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 19 steps before you point it at anything that matters.