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
Copy file name to clipboardExpand all lines: readme.md
+82-18Lines changed: 82 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,15 @@
1
-
# OpenEVSE WiFi Gateway v4
1
+
# OpenEVSE WiFi ESP32 Gateway v4
2
2
3
-
> **_NOTE:_** Breaking change! This release requires a minimum of [7.1.2](https://github.com/lincomatic/open_evse) of the OpenEVSE firmware, features may not behave as expected on older firmware.
4
-
-
5
-
-For the v3 that is compatible with previous EVSE firmwares, see the [v3 branch](https://github.com/OpenEVSE/ESP32_WiFi_V3.x/tree/v3). For the older v2 ESP8266 version (pre June 2020), see the [v2 firmware repository](https://github.com/openevse/ESP8266_WiFi_v2.x/)
6
-
-
7
-
-Instructions on updating the OpenEVSE firmware see [How to Load OpenEVSE Firmware (WinAVR)
> **_NOTE:_** Breaking change! This release reccomends a minimum of [7.1.3](https://github.com/OpenEVSE/open_evse/releases) of the OpenEVSE firmware, features including Solar Divert and push button menus may not behave as expected on older firmware.
4
+
5
+
-*For the older WiFi V2.x ESP8266 version (pre June 2020), see the [v2 firmware repository](https://github.com/openevse/ESP8266_WiFi_v2.x/)*
9
6
10
7
11
8

12
9
13
10
The WiFi gateway uses an **ESP32** which communicates with the OpenEVSE controller via serial RAPI API. The web UI is served directly from the ESP32 web server and can be controlled via a connected device on the local network.
14
11
15
-
Wired Ethernet connection is possible using [ESP32 Gateway](docs/wired-ethernet.md)
16
-
17
-
[**See this repo for the older V2.x ESP8266 version (pre June 2020)**](https://github.com/openevse/ESP8266_WiFi_v2.x/)
12
+
**This FW also supports wired Ethernet connection using [ESP32 Gateway](docs/wired-ethernet.md)**
- Solar PV generation (always postive): `emon/emonpi/power2`
160
162
161
-
**NoteL 'Grid' feed should include the power consumed by the EVSEE**
163
+
**Note#1: 'Grid' feed should include the power consumed by the EVSE**
164
+
**Note#2: The EVSE expects the MQTT data to update every 5-10s, perforamce will be degraded if the update interval is much faster or slower than this**
162
165
163
166
**CT sensor can be physically reversed on the cable to invert the reading.*
164
167
@@ -168,7 +171,21 @@ Divertmode can be controlled via mqtt
168
171
169
172
Topic: `<base-topic>/divertmode/set`
170
173
Value: `1` = Normal or `2` = Eco
171
-
174
+
175
+
### Eco Mode Advanced Settings
176
+
177
+
If 'advanced' mode is toggled on the UI more solar PV divert settings will become available:
178
+
179
+

180
+
181
+
- Required PV power ratio: specifies which fraction of the EV charging current should come from PV excess. Default value 110% (1.1)
182
+
- Divert smoothing attack: controls how quickly the EVSE responds to an increase in solar PV / grid excess. Default value 40% (0.4)
183
+
- Divert Smoothing decay: controls how quickly the EVSE responds to a decrease in solar PV / grid excess. Default value 5% (0.05)
184
+
- Minimum charge time: the amount of time in seconds the EVSE should run for when triggered by solar PV / grid excess
185
+
186
+
See this [interactive spreadsheet](https://docs.google.com/spreadsheets/d/1GQEAQ5QNvNuShEsUdcrNsFC12U3pQfcD_NetoIfDoko/edit?usp=sharing) to explore how these values effect the smoothing algorithm.
187
+
188
+
**Caution: adjust these values at your own risk, the default values have been set to minimise wear on the EVSE contactor and the EVs chraging system. Rapid switching of the EVSE will result in increased wear on these components**
172
189
173
190
174
191
***
@@ -216,10 +233,12 @@ MQTT setup is pre-populated with OpenEnergyMonitor [emonPi default MQTT server c
216
233
217
234
MQTT can also be used to control the OpenEVSE, see RAPI MQTT below.
218
235
219
-
### RAPI
236
+
### RAPI API (Not Recommended)
220
237
221
238
RAPI commands can be used to control and check the status of all OpenEVSE functions. RAPI commands can be issued via the direct serial, web-interface, HTTP and MQTT. We recommend using RAPI over MQTT.
222
239
240
+
**IMPORTANT: It is no longer recommended to use RAPI API if EVSE also had a WiFi module fitted, since use of the RAPI API will conflict with the WiFi module, instead the HTTP API should be used to control the WiFi module instead of the controller via RAPI. User RAPI API will be disabled in future releases**
241
+
223
242
**A full list of RAPI commands can be found in the [OpenEVSE plus source code](https://github.com/OpenEVSE/open_evse/blob/stable/firmware/open_evse/src/rapi_proc.h).**
224
243
225
244
#### RAPI via web interface
@@ -232,6 +251,8 @@ Enter RAPI commands directly into to web interface (dev mode must be enabled), R
232
251
233
252
#### RAPI over MQTT
234
253
254
+
**IMPORTANT: It is no longer recommended to use RAPI API if EVSE also had a WiFi module fitted, since use of the RAPI API will conflict with the WiFi module, instead the HTTP API should be used to control the WiFi module instead of the controller via RAPI. User RAPI API will be disabled in future releases**
255
+
235
256
RAPI commands can be issued via MQTT messages. The RAPI command should be published to the following MQTT:
236
257
237
258
`<base-topic>/rapi/in/<$ rapi-command> payload`
@@ -254,6 +275,8 @@ e.g. `$OK`
254
275
255
276
#### RAPI over HTTP
256
277
278
+
**IMPORTANT: It is no longer recommended to use RAPI API if EVSE also had a WiFi module fitted, since use of the RAPI API will conflict with the WiFi module, instead the HTTP API should be used to control the WiFi module instead of the controller via RAPI. User RAPI API will be disabled in future releases**
279
+
257
280
RAPI (rapid API) commands can also be issued directly via a single HTTP request.
258
281
259
282
Using RAPI commands should be avoided if possible. WiFi server API is preferable. If RAPI must be used, avoid fast polling.
@@ -275,14 +298,55 @@ To enable (start / resume a charge) issue RAPI command `$FE`
275
298
276
299
There is also an [OpenEVSE RAPI command python library](https://github.com/tiramiseb/python-openevse).
277
300
278
-
### HTTP API
301
+
### HTTP API (Recommended)
302
+
303
+
#### Manual Override API
304
+
305
+
Manual override can be used to override a charging timer or to immediately start a charge if the EVSE is in sleeping state.
0 commit comments