Skip to content

Commit 30f4bef

Browse files
Merge branch 'master' into platformio_dependabot/WS2812FX/1.4.5
2 parents 61e44e7 + d3620d9 commit 30f4bef

21 files changed

+7905
-7821
lines changed

docs/mqtt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Limit:
5151

5252
Main settings:
5353

54-
`<base-topic>/divertmode/set [1 | 2]` : enable (1)/ disable (2) divert mode
54+
`<base-topic>/divertmode/set [1 | 2]` : normal (1)/ eco (2) divert mode
5555
`<base-topic>/shaper/set [0 | 1]` : temporary enable (1)/ disable (0) current shaper ( doesn't survive reboot )
5656
`<base-topic>/restart {"device": "gateway|evse"}` : restart the gateway or openevse module
5757

docs/user-guide.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,27 @@ Most ESP32 boards can be used (see platfromio.ini for full list of supported boa
5656
* Temp 3 IR sensor (not used)
5757
* Temp 4 OpenEVSE V1 module
5858

59+
### Lighting and Indicators
60+
61+
OpenEVSE uses the LCD backlight and/or RGB pixels to indicate status:
62+
63+
* **Off**: Initialising
64+
* OpenEVSE active
65+
* **Green**: No EV Connected
66+
* **Yellow**: Connected, but not charging
67+
* **Cyan/Teal**: Charging
68+
* **Red**: Fault
69+
* OpenEVSE Sleeping/Disabled
70+
* **Cyan/Teal**: EV connected
71+
* **Purple/Violet**: EV disconnected
72+
73+
In addition to this the RGB pixels can be used to indicate the WiFi status on the first pixel:
74+
75+
* **Slow Flashing Yellow**: WiFi AP enabled and waiting for connection
76+
* **Fast Flashing Purple/Violet**: WiFi client connected to AP
77+
* **Slow Flashing Yellow**: Connecting to WiFi network as a client
78+
* **Green**: Connected to WiFi network
79+
5980
## WiFi Setup
6081

6182
At setup OpenEVSE will broadcast a WiFi access point (AP) `OpenEVSE_XXXX`. Connect your browser device to this AP (default password: `openevse`) and the captive portal will forward you to the log-in page.

platformio.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ lib_deps =
3939
jeremypoulter/[email protected]
4040
jeremypoulter/[email protected]
4141
42-
matth-x/MicroOcppMongoose@1.1.0
42+
matth-x/MicroOcppMongoose@1.2.0
4343
lib_ignore = WebSockets ; MicroOcpp: don't compile built-in WS library
4444
extra_scripts =
4545
pre:scripts/auto_fw_version.py
@@ -124,7 +124,7 @@ build_partitions = min_spiffs.csv
124124
build_partitions_debug = min_spiffs_debug.csv
125125
build_partitions_16mb = openevse_16mb.csv
126126

127-
neopixel_lib = adafruit/Adafruit [email protected].3
127+
neopixel_lib = adafruit/Adafruit [email protected].5
128128
ws2812fx_lib = kitesurfer1404/[email protected]
129129

130130
gfx_display_libs =
@@ -173,7 +173,7 @@ gfx_display_build_flags =
173173
#platform = https://github.com/platformio/platform-espressif32.git#feature/stage
174174
#platform = https://github.com/platformio/platform-espressif32.git#develop
175175
#platform = [email protected]
176-
platform = espressif32@6.8.1
176+
platform = espressif32@6.10.0
177177
#framework = arduino, espidf
178178
framework = arduino
179179
lib_deps = ${common.lib_deps}

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ The WiFi gateway uses an **ESP32** which communicates with the OpenEVSE controll
4848

4949
### OpenEVSE / EmonEVSE charging station
5050

51-
- Purchase via: [OpenEVSE Store (USA/Canda)](https://store.openevse.com) | [OpenEnergyMonitor (UK / EU)](https://shop.openenergymonitor.com/evse/)
51+
- Purchase via: [OpenEVSE Store](https://store.openevse.com)
5252
- OpenEVSE FW [V7.1.3 recommended](https://github.com/OpenEVSE/open_evse/releases)
5353
- All new OpenEVSE units are shipped with V7.1.3 pre-loaded (April 2021 onwards)
5454

src/app_config.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,7 @@ bool config_deserialize(DynamicJsonDocument &doc)
520520
evse.configureCurrentSensorScale(doc["scale"], doc["offset"]);
521521
config_modified = true;
522522
DBUGLN("scale changed");
523+
evse.getAmmeterSettings();
523524
}
524525
}
525526
#endif

src/evse_man.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,9 @@ class EvseManager : public MicroTasks::Task
430430
long getCurrentSensorOffset() {
431431
return _monitor.getCurrentSensorOffset();
432432
}
433+
void getAmmeterSettings() {
434+
_monitor.getAmmeterSettings();
435+
}
433436

434437
void enableFeature(uint8_t feature, bool enabled, std::function<void(int ret)> callback = NULL) {
435438
_monitor.enableFeature(feature, enabled, callback);

src/evse_monitor.cpp

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ void EvseMonitor::evseBoot(const char *firmware)
235235
DBUGF("scale = %ld, offset = %ld", scale, offset);
236236
_current_sensor_scale = scale;
237237
_current_sensor_offset = offset;
238-
239238
_boot_ready.ready(EVSE_MONITOR_CURRENT_SENSOR_BOOT_READY);
240239
}
241240
});
@@ -802,3 +801,16 @@ bool EvseMonitor::importTotalEnergy()
802801
});
803802
return true;
804803
}
804+
805+
void EvseMonitor::getAmmeterSettings()
806+
{
807+
_openevse.getAmmeterSettings([this](int ret, long scale, long offset)
808+
{
809+
if(RAPI_RESPONSE_OK == ret)
810+
{
811+
DBUGF("scale = %ld, offset = %ld", scale, offset);
812+
_current_sensor_scale = scale;
813+
_current_sensor_offset = offset;
814+
}
815+
});
816+
}

src/evse_monitor.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ class EvseMonitor : public MicroTasks::Task
276276
return _energyMeter.reset(full, import);
277277
}
278278
bool importTotalEnergy();
279+
void getAmmeterSettings();
279280

280281
bool publishEnergyMeter() {
281282
return _energyMeter.publish();

0 commit comments

Comments
 (0)