Hi all,
this is my first post here. I’m using HA for about a year now. Coming from Domoticz but I find HA more versatile.
I was struggling to get my EV Charger working with HA so I decided to make my own integration for it. I like to share it with you. Please try and report your findings!
Unofficial Home Assistant integration for the Growatt THOR EV charger
This integration allows you to connect a Growatt THOR EV charger directly to Home Assistant using OCPP 1.6 over WebSocket, providing local control without relying on the Growatt cloud.
Tested on:
THOR 22AS with FW version 2.2.16-20240902 (but it should be working on all THOR 11/22AS-S/P/SE/PE versions.)
Features
Real-time Monitoring
- Charger status: Idle, Preparing, Charging, Finishing, Faulted, Unavailable
- Power monitoring: Total power and per-phase (L1, L2, L3) in Watts
- Current monitoring: Current draw per phase in Amperes
- Voltage monitoring: Voltage per phase
- Energy tracking: Session energy in kWh with automatic reset per session
- Temperature: Internal charger temperature in °C
- Transaction tracking: Active transaction ID and charging session details (saved in sensor.growatt_thor_ev_charger_last_sessions)
- Energy Dashboard compatible charging sensors
Grid & Load Balancing
- External meter monitoring: Real-time grid power, voltage, and current per phase
- Dynamic load balancing: Set maximum grid import limit (kW) to prevent overload
- Smart polling: Configurable polling interval (5-3600 sec. recommended setting 30 seconds)
Note: Polling interval only affects the frequency of grid data display updates in Home Assistant. Load balancing functionality itself operates independently and responds in real-time regardless of the polling setting.
- Wiring detection: Automatic 1-phase or 3-phase detection
Configuration & Control
- Max current control: Set maximum charging current (6-32A)
- Charging schedule: Configure automatic start/stop times
- Charger modes: Switch between Plug & Charge, RFID only, HomeAssistant(HA)/RFID mode
- Manual charging control: Start and stop charging sessions via buttons
- Load balancing toggle: Enable/disable dynamic load balancing
- Auto update THOR time: Auto sync time with server time at every heartbeat and with reboot (ocpp protocol)
- AP Mode Activation: Added ability to enable AP (Access Point) mode directly from Home Assistant via integration configuration menu
- Accessible through Settings → Devices & Services → Growatt THOR → Configure
- Includes safety confirmation dialog to prevent accidental activation
- Uses OCPP DataTransfer with messageId=“appconfigmode” (discovered via PCAP analysis)
- THOR broadcasts WiFi network (typically serialno based SSID) for direct configuration when activated
Session History
- Last 5 sessions: Energy (kWh), cost, charge mode, work mode, timestamps
- Current session tracking: Real-time updates during active charging