Skip to content

Commit b721533

Browse files
committed
Templates update for nightly evcc-io/evcc@c90258b
1 parent cb058e9 commit b721533

File tree

2 files changed

+295
-0
lines changed

2 files changed

+295
-0
lines changed
Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
template: openwb-native
2+
product:
3+
identifier: openwb-embedded-software-replacement
4+
brand: openWB
5+
description: Embedded software replacement
6+
capabilities: ["1p3p", "rfid", "mA"]
7+
description: |
8+
Ersatz für die OpenWB Software, wenn evcc direkt auf der OpenWB Hardware läuft. Unterstützte Hardware ist die OpenWB Series2.
9+
mA Regelung wird automatisch benutzt wenn die EVSE-Firmware es unterstützt.
10+
11+
Achtung: Die Installation von evcc auf der OpenWB Hardware führt zum Verlust der Garantie!
12+
13+
Installation ohne Display:
14+
- Raspberry Pi OS Lite (64bit) Image installieren und konfigurieren.
15+
- Folgendes am Ende von `/boot/firmware/config.txt` hinzufügen:
16+
```ini
17+
[all]
18+
gpio=4,5,7,11,17,22,23,24,25,26,27=op,dl
19+
gpio=6,8,9,10,12,13,16,21=ip,pu
20+
```
21+
- evcc nach Anleitung installieren.
22+
- Notwendige Gruppen zum Zugriff auf die Hardware für user evcc setzen (als root): `usermod -a -G gpio,dialout,input evcc`
23+
- evcc konfigurieren. Es gibt unterschiedliche Hardware Versionen, die bezüglich der verbauten Modbus Adapter und Wallbox Zähler variieren.
24+
- Der oder die Modbus Adapter sind entweder auf `/dev/ttyUSB0`, `/dev/ttyUSB1` (manche Duo) oder `/dev/ttyACM0` zu finden.
25+
Manche Duo's haben zwei Modbus Adapter, manche nur einen.
26+
- Die EVSE für den ersten Ladepunkt hat immer die ID 1, die für den zweiten ID 2.
27+
- Die verschiedenen möglichen Zähler sind:
28+
- Bernecker Engineering MPM3PM (template: mpm3pm) mit ID 5 oder ID 6 für den zweiten Ladepunkt bei der Duo.
29+
- SDM630/SDM72 (template: eastron) mit ID 105 oder ID 106 für den zweiten Ladepunkt bei der Duo.
30+
- ABB B23 (template: abb-ab) mit ID 201
31+
32+
Zusätzlich für die Anzeige von evcc im Display (Achtung dann können auch Unbefugte laden!):
33+
- `apt install labwc wayfire seatd xdg-user-dirs firefox swayidle wlopm`
34+
- Datei `/home/pi/.config/labwc/autostart` mit folgendem Inhalt anlegen:
35+
```bash
36+
/usr/bin/firefox --kiosk http://localhost:7070/ &
37+
/usr/bin/swayidle -w timeout 600 'wlopm --off \*' resume 'wlopm --on \*' &
38+
```
39+
- Datei `/home/pi/.config/systemd/user/kiosk.service` mit folgendem Inhalt anlegen:
40+
```ini
41+
[Unit]
42+
Description=Start Kiosk mode
43+
[Service]
44+
Type=simple
45+
ExecStart=/usr/bin/labwc
46+
[Install]
47+
WantedBy=default.target
48+
```
49+
- Kiosk Modus Autostart aktivieren: `systemctl --user enable kiosk`
50+
- Als root: Starten von systemd user units ohne login des Users aktivieren: `loginctl enable-linger pi`
51+
52+
Unter https://github.com/evcc-io/images gibt es auch fertige Images für beide Varianten.
53+
54+
render:
55+
- default: |
56+
type: template
57+
template: openwb-native
58+
59+
# RS485 via adapter (Modbus RTU)
60+
modbus: rs485serial
61+
id: 1
62+
device: /dev/ttyUSB0 # USB-RS485 Adapter Adresse
63+
baudrate: 9600 # Prüfe die Geräteeinstellungen, typische Werte sind 9600, 19200, 38400, 57600, 115200
64+
comset: "8N1" # Kommunikationsparameter für den Adapter
65+
66+
# RS485 via TCP/IP (Modbus RTU)
67+
modbus: rs485tcpip
68+
id: 1
69+
host: # Hostname
70+
port: 502 # Port
71+
phases1p3p: false # Phasenumschaltung, Gerät ist mit Phasenumschaltungsoption ausgestattet (optional)
72+
rfid: 413d:2107 # RFID-Kartenleser USB VID:PID, RFID-Kartenleser USB VID:PID Wert (kann der Ausgabe von lsusb entnommen werden), leer wenn kein RFID Kartenleser vorhanden ist (optional)
73+
advanced: |
74+
type: template
75+
template: openwb-native
76+
77+
# RS485 via adapter (Modbus RTU)
78+
modbus: rs485serial
79+
id: 1
80+
device: /dev/ttyUSB0 # USB-RS485 Adapter Adresse
81+
baudrate: 9600 # Prüfe die Geräteeinstellungen, typische Werte sind 9600, 19200, 38400, 57600, 115200
82+
comset: "8N1" # Kommunikationsparameter für den Adapter
83+
84+
# RS485 via TCP/IP (Modbus RTU)
85+
modbus: rs485tcpip
86+
id: 1
87+
host: # Hostname
88+
port: 502 # Port
89+
phases1p3p: false # Phasenumschaltung, Gerät ist mit Phasenumschaltungsoption ausgestattet (optional)
90+
rfid: 413d:2107 # RFID-Kartenleser USB VID:PID, RFID-Kartenleser USB VID:PID Wert (kann der Ausgabe von lsusb entnommen werden), leer wenn kein RFID Kartenleser vorhanden ist (optional)
91+
cpwait: 10s # Dauer der CP Unterbrechnung, bei der Phasenumschaltung und Aufwecken des Autos. Mindestens 5 Sekunden. (optional)
92+
connector: 1 # Ladepunkt, 1 oder 2, normalerweise 1, ausser bei Duo (optional)
93+
params:
94+
- name: modbus
95+
example:
96+
default:
97+
choice: ['rs485']
98+
unit:
99+
description: Modbus Typ
100+
help:
101+
advanced: false
102+
optional: true
103+
- name: phases1p3p
104+
example:
105+
default: false
106+
choice: []
107+
unit:
108+
description: Phasenumschaltung
109+
help: Gerät ist mit Phasenumschaltungsoption ausgestattet
110+
advanced: false
111+
optional: true
112+
- name: rfid
113+
example: 413d:2107
114+
default:
115+
choice: []
116+
unit:
117+
description: RFID-Kartenleser USB VID:PID
118+
help: RFID-Kartenleser USB VID:PID Wert (kann der Ausgabe von lsusb entnommen werden), leer wenn kein RFID Kartenleser vorhanden ist
119+
advanced: false
120+
optional: true
121+
- name: cpwait
122+
example:
123+
default: 10s
124+
choice: []
125+
unit:
126+
description: Dauer der CP Unterbrechnung
127+
help: bei der Phasenumschaltung und Aufwecken des Autos. Mindestens 5 Sekunden.
128+
advanced: true
129+
optional: true
130+
- name: connector
131+
example:
132+
default: 1
133+
choice: []
134+
unit:
135+
description: Ladepunkt
136+
help: 1 oder 2, normalerweise 1, ausser bei Duo
137+
advanced: true
138+
optional: true
139+
modbus:
140+
baudrate: 9600
141+
comset: 8N1
142+
device: /dev/ttyUSB0
143+
host:
144+
id: 1
145+
port: 502
146+
rs485serial: true
147+
rs485tcpip: true
Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
template: openwb-native
2+
product:
3+
identifier: openwb-embedded-software-replacement
4+
brand: openWB
5+
description: Embedded software replacement
6+
capabilities: ["1p3p", "rfid", "mA"]
7+
description: |
8+
Replacement for the OpenWB software, when evcc runs directly on the OpenWB hardware. Currently supported Hardware is OpenWB Series2.
9+
mA control is used automatically if the EVSE firmware supports it.
10+
11+
Please be aware that installing evcc on the OpenWB Hardware will void your guarantee!
12+
13+
Installation without display:
14+
- Install and configure Raspberry Pi OS Lite (64bit) image.
15+
- Add the following at then end of `/boot/firmware/config.txt`:
16+
```ini
17+
[all]
18+
gpio=4,5,7,11,17,22,23,24,25,26,27=op,dl
19+
gpio=6,8,9,10,12,13,16,21=ip,pu
20+
```
21+
- Install evcc according to the manual.
22+
- Add the groups required for user evcc to access the hardware: `usermod -a -G gpio,dialout,input evcc`
23+
- Configure evcc according to the manual. There are multiple distinct Hardware versions, which differ regarding the built-in modbus
24+
adapters and charge meters.
25+
- A single or multiple Modbus adapters are found at `/dev/ttyUSB0`, `/dev/ttyUSB1` (some Duo) or `/dev/ttyACM0`.
26+
Some Duo's contain two Modbus adapters, some just one.
27+
- The EVSE for the first connector has always the ID 1, the one for the second ID 2.
28+
- The different possible charge meters are:
29+
- Bernecker Engineering MPM3PM (template: mpm3pm) with ID 5 or ID 6 for the Duo's second connector.
30+
- SDM630/SDM72 (template: eastron) with ID 105 or ID 106 for the Duo's second connector.
31+
- ABB B23 (template: abb-ab) with ID 201
32+
33+
Additional steps for showing evcc on the display (be careful, because this will allow anybody to enable charging!):
34+
- `apt install labwc wayfire seatd xdg-user-dirs firefox swayidle wlopm`
35+
- Create the file `/home/pi/.config/labwc/autostart` with the following contents:
36+
```bash
37+
/usr/bin/firefox --kiosk http://localhost:7070/ &
38+
/usr/bin/swayidle -w timeout 600 'wlopm --off \*' resume 'wlopm --on \*' &
39+
```
40+
- Create file `/home/pi/.config/systemd/user/kiosk.service` with the following content:
41+
```ini
42+
[Unit]
43+
Description=Start Kiosk mode
44+
[Service]
45+
Type=simple
46+
ExecStart=/usr/bin/labwc
47+
[Install]
48+
WantedBy=default.target
49+
```
50+
- Enable autostart of kiosk mode: `systemctl --user enable kiosk`
51+
- As root: Enable start of systemd user units without the user having to log-in: `loginctl enable-linger pi`
52+
53+
At https://github.com/evcc-io/images complete images for both variants are available.
54+
55+
render:
56+
- default: |
57+
type: template
58+
template: openwb-native
59+
60+
# RS485 via adapter (Modbus RTU)
61+
modbus: rs485serial
62+
id: 1
63+
device: /dev/ttyUSB0 # USB-RS485 Adapter Adresse
64+
baudrate: 9600 # Prüfe die Geräteeinstellungen, typische Werte sind 9600, 19200, 38400, 57600, 115200
65+
comset: "8N1" # Kommunikationsparameter für den Adapter
66+
67+
# RS485 via TCP/IP (Modbus RTU)
68+
modbus: rs485tcpip
69+
id: 1
70+
host: # Hostname
71+
port: 502 # Port
72+
phases1p3p: false # Phase switching, Device is equipped with phase switching option (optional)
73+
rfid: 413d:2107 # RFID card reader USB VID:PID, RFID card reader USB VID:PID value (as be obtained from lsusb), leave empty for no RFID card reader (optional)
74+
advanced: |
75+
type: template
76+
template: openwb-native
77+
78+
# RS485 via adapter (Modbus RTU)
79+
modbus: rs485serial
80+
id: 1
81+
device: /dev/ttyUSB0 # USB-RS485 Adapter Adresse
82+
baudrate: 9600 # Prüfe die Geräteeinstellungen, typische Werte sind 9600, 19200, 38400, 57600, 115200
83+
comset: "8N1" # Kommunikationsparameter für den Adapter
84+
85+
# RS485 via TCP/IP (Modbus RTU)
86+
modbus: rs485tcpip
87+
id: 1
88+
host: # Hostname
89+
port: 502 # Port
90+
phases1p3p: false # Phase switching, Device is equipped with phase switching option (optional)
91+
rfid: 413d:2107 # RFID card reader USB VID:PID, RFID card reader USB VID:PID value (as be obtained from lsusb), leave empty for no RFID card reader (optional)
92+
cpwait: 10s # Duration of CP interruption, when phase-switching and waking up car. Minimum 5 seconds. (optional)
93+
connector: 1 # Connector, 1 or 2, usually 1, except for Duo (optional)
94+
params:
95+
- name: modbus
96+
example:
97+
default:
98+
choice: ['rs485']
99+
unit:
100+
description: Modbus Type
101+
help:
102+
advanced: false
103+
optional: true
104+
- name: phases1p3p
105+
example:
106+
default: false
107+
choice: []
108+
unit:
109+
description: Phase switching
110+
help: Device is equipped with phase switching option
111+
advanced: false
112+
optional: true
113+
- name: rfid
114+
example: 413d:2107
115+
default:
116+
choice: []
117+
unit:
118+
description: RFID card reader USB VID:PID
119+
help: RFID card reader USB VID:PID value (as be obtained from lsusb), leave empty for no RFID card reader
120+
advanced: false
121+
optional: true
122+
- name: cpwait
123+
example:
124+
default: 10s
125+
choice: []
126+
unit:
127+
description: Duration of CP interruption
128+
help: when phase-switching and waking up car. Minimum 5 seconds.
129+
advanced: true
130+
optional: true
131+
- name: connector
132+
example:
133+
default: 1
134+
choice: []
135+
unit:
136+
description: Connector
137+
help: 1 or 2, usually 1, except for Duo
138+
advanced: true
139+
optional: true
140+
modbus:
141+
baudrate: 9600
142+
comset: 8N1
143+
device: /dev/ttyUSB0
144+
host:
145+
id: 1
146+
port: 502
147+
rs485serial: true
148+
rs485tcpip: true

0 commit comments

Comments
 (0)