AutomationFlowsWeb Scraping › Battery AI – Safety Monitor

Battery AI – Safety Monitor

Battery AI – Safety Monitor. Uses httpRequest. Scheduled trigger; 9 nodes.

Cron / scheduled trigger★★★★☆ complexity9 nodesHTTP Request
Web Scraping Trigger: Cron / scheduled Nodes: 9 Complexity: ★★★★☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "Battery AI \u2013 Safety Monitor",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "cronExpression",
              "expression": "*/15 * * * *"
            }
          ]
        }
      },
      "id": "a40a86c6-c921-49ba-98a5-27118b74485c",
      "name": "Trigger: alle 15 Minuten",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1104,
        112
      ],
      "typeVersion": 1.3
    },
    {
      "parameters": {
        "url": "http://192.168.1.8:7070/api/state",
        "options": {}
      },
      "id": "be5a191c-2246-4445-ae56-caf318795b23",
      "name": "evcc: SoC lesen",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -944,
        64
      ],
      "typeVersion": 4.4
    },
    {
      "parameters": {
        "url": "http://homeassistant:8123/api/states/input_boolean.ki_batteriesteuerung_aktiv",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "options": {}
      },
      "id": "127552ab-2947-4a63-8616-12aa9e58b6fc",
      "name": "HA: KI-Schalter Status",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -736,
        -32
      ],
      "typeVersion": 4.4,
      "credentials": {
        "httpHeaderAuth": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "jsCode": "const evccState = $('evcc: SoC lesen').first()?.json ?? {};\nconst haSwitch = $input.first()?.json ?? {};\n\nconst soc = evccState?.battery?.soc ?? 50;\nconst kiActive = haSwitch?.state === 'on';\n\nreturn [{\n  json: {\n    soc,\n    ki_active: kiActive,\n    overcharge: soc > 95,\n    undercharge: soc < 10,\n    needs_action: !kiActive || soc > 95 || soc < 10\n  }\n}];"
      },
      "id": "9079474d-c6ac-4f68-b4c1-b0e2e77665f4",
      "name": "Safety-Check auswerten",
      "type": "n8n-nodes-base.code",
      "position": [
        -656,
        192
      ],
      "typeVersion": 2
    },
    {
      "parameters": {
        "conditions": {
          "boolean": [
            {
              "value1": "={{ $json.needs_action }}",
              "value2": true
            }
          ]
        },
        "options": {}
      },
      "id": "7ccd09cb-2a18-4102-8f90-2542fd3da126",
      "name": "Aktion n\u00f6tig?",
      "type": "n8n-nodes-base.if",
      "position": [
        -448,
        192
      ],
      "typeVersion": 2.3
    },
    {
      "parameters": {
        "conditions": {
          "boolean": [
            {
              "value1": "={{ $json.overcharge || !$json.ki_active }}",
              "value2": true
            }
          ]
        },
        "options": {}
      },
      "id": "6a48f317-3b1f-486f-9a25-aa9b6afa6af8",
      "name": "Netzladen deaktivieren?",
      "type": "n8n-nodes-base.if",
      "position": [
        -224,
        112
      ],
      "typeVersion": 2.3
    },
    {
      "parameters": {
        "method": "DELETE",
        "url": "http://192.168.1.8:7070/api/batterygridchargelimit",
        "options": {}
      },
      "id": "1449d969-b0e6-4070-a621-805280ef6766",
      "name": "evcc: Netzladen deaktivieren",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        0,
        0
      ],
      "typeVersion": 4.4,
      "notes": "Greift bei SoC > 95% oder KI deaktiviert"
    },
    {
      "parameters": {
        "conditions": {
          "boolean": [
            {
              "value1": "={{ $json.undercharge }}",
              "value2": true
            }
          ]
        },
        "options": {}
      },
      "id": "1681b555-a84e-4f7c-9f3a-c82fc3b9c166",
      "name": "Entladen deaktivieren?",
      "type": "n8n-nodes-base.if",
      "position": [
        -224,
        272
      ],
      "typeVersion": 2.3
    },
    {
      "parameters": {
        "method": "POST",
        "url": "http://192.168.1.8:7070/api/batterydischargecontrol/false",
        "options": {}
      },
      "id": "15961600-a1c3-41e3-9962-8553d161a263",
      "name": "evcc: Entladen deaktivieren",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        0,
        272
      ],
      "typeVersion": 4.4,
      "notes": "Greift bei SoC < 10%"
    }
  ],
  "connections": {
    "Trigger: alle 15 Minuten": {
      "main": [
        [
          {
            "node": "evcc: SoC lesen",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "evcc: SoC lesen": {
      "main": [
        [
          {
            "node": "HA: KI-Schalter Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HA: KI-Schalter Status": {
      "main": [
        [
          {
            "node": "Safety-Check auswerten",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Safety-Check auswerten": {
      "main": [
        [
          {
            "node": "Aktion n\u00f6tig?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aktion n\u00f6tig?": {
      "main": [
        [
          {
            "node": "Netzladen deaktivieren?",
            "type": "main",
            "index": 0
          },
          {
            "node": "Entladen deaktivieren?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Netzladen deaktivieren?": {
      "main": [
        [
          {
            "node": "evcc: Netzladen deaktivieren",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Entladen deaktivieren?": {
      "main": [
        [
          {
            "node": "evcc: Entladen deaktivieren",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": true,
  "settings": {
    "executionOrder": "v1",
    "binaryMode": "separate",
    "timeSavedMode": "fixed",
    "callerPolicy": "workflowsFromSameOwner",
    "availableInMCP": false
  },
  "versionId": "c1385009-fe19-44b1-96ff-f247a4ca6188",
  "id": "UDpwgwWXT3BtNc1N",
  "tags": []
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Battery AI – Safety Monitor. Uses httpRequest. Scheduled trigger; 9 nodes.

Source: https://github.com/OZON08/EVCC-KI-Automation/blob/434368012e926c0ad8c93b1f2697e70c3f8a61ae/n8n-workflows/safety-monitor.json — original creator credit. Request a take-down →

More Web Scraping workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Web Scraping

Proactively alert to service endpoint changes and pod/container issues (Pending, Not Ready, Restart spikes) using Prometheus metrics, formatted and sent to Slack.

HTTP Request
Web Scraping

Tired of being let down by the Google Drive Trigger? Rather not exhaust system resources by polling every minute? Then this workflow is for you!

HTTP Request, Execute Workflow Trigger
Web Scraping

Triggers at a regular interval or via a webhook request. Solves AWS WAF challenge then makes a request to fetch the product page. Extracts product data from the retrieved HTML page. Compares the curre

N8N Nodes Capsolver, HTTP Request
Web Scraping

Automatically monitor billable Kimai projects every weekday morning and receive a formatted HTML email when a project deadline is approaching or its hour budget is running low. If nothing requires att

Email Send, HTTP Request
Web Scraping

Transform your business with intelligent deal monitoring and automated customer engagement! This AI-powered coupon aggregator continuously tracks competitor deals and creates personalized marketing ca

HTTP Request