You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## User Guide: Integrating OCPP EV Chargers with EMHASS for Home Assistant
12
+
13
+
This guide explains how to connect OCPP-compatible EV chargers to EMHASS for smart charging and vehicle-to-grid (V2G) optimization. Learn to automate charging schedules, align EV usage with solar production, and reduce energy costs using EMHASS’s predictive algorithms.
14
+
15
+
---
16
+
17
+
### **1. Prerequisites**
18
+
19
+
-**Hardware**:
20
+
- OCPP 1.6J/2.0.1-compatible EV charger (e.g., Wallbox, Zappi, ABB Terra).
21
+
- EV supporting bidirectional charging (V2G) if applicable (e.g., Nissan Leaf, Ford F-150 Lightning).
22
+
-**Software**:
23
+
- Home Assistant (OS/Supervised recommended).
24
+
-[OCPP Integration](https://github.com/lbbrhzn/ocpp) via HACS.
25
+
- EMHASS add-on installed and configured for solar/battery optimization.
26
+
27
+
---
28
+
29
+
### **2. OCPP Integration Setup**
30
+
31
+
#### **A. Install and Configure OCPP**
32
+
33
+
1.**Install via HACS**:
34
+
- Add `https://github.com/lbbrhzn/ocpp` to HACS repositories.
35
+
- Install the **OCPP** integration and restart Home Assistant.
36
+
2.**Add Central System**:
37
+
- Go to **Settings > Devices \& Services > Add Integration > OCPP**.
38
+
- Set **Host** to `0.0.0.0` and **Port** to `9000`.
39
+
- Note the WebSocket URL (e.g., `ws://192.168.1.100:9000`).
40
+
3.**Connect Your Charger**:
41
+
- Configure the charger’s OCPP Central System URL to match the WebSocket URL.
42
+
- Key entities will auto-populate:
43
+
- Charger status: `sensor.charger_status`
44
+
- Charging power: `sensor.charger_power`
45
+
- Control switch: `switch.charger_charge_control`
46
+
47
+
---
48
+
49
+
### **3. EMHASS Configuration for OCPP Chargers**
50
+
51
+
#### **A. Define Charger as a Deferrable Load**
52
+
53
+
In EMHASS’s `config.json` or web UI:
54
+
55
+
```json
56
+
{
57
+
"deferrable_loads": {
58
+
"ev_charger": {
59
+
"entity_id": "switch.charger_charge_control",
60
+
"max_power": 11000, // Charger’s max power (Watts)
61
+
"soc_entity": "sensor.ev_battery_soc", // Required for V2G
By integrating OCPP with EMHASS, you unlock precise control over EV charging, turning your vehicle into a dynamic asset for solar optimization, grid cost reduction, and energy resilience.
0 commit comments