Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/emsesp/EMS-ESP32 into dev2
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDvP committed Sep 8, 2023
2 parents c19345c + 04fd04b commit 10c8c2b
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 23 deletions.
18 changes: 7 additions & 11 deletions CHANGELOG_LATEST.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
# Changelog

# [3.6.1]
## [3.6.1]

## **IMPORTANT! BREAKING CHANGES**

- shower_data MQTT topic shows duration is seconds (was previously an English string)
- `shower_data` MQTT topic shows duration is seconds (was previously a full english sentence)

## Added

- rssi in Network Status Page
- boiler nominal power from telegram 0x04
- boiler energy for heating and dhw stored in nvs
- analogsensor counter value stored in nvs
- show WiFi rssi in Network Status Page

## Fixed

- issue in espMqttClient on low mem
- mqtt subscription to scheduler and custom
- HA configuration for scheduler and custom
- Issue in espMqttClient causing a memory leak when MQTT broker is disconnected due to network unavailability [#1264](https://github.com/emsesp/EMS-ESP32/issues/1264)
- Using MQTT enum values correctly formatted in MQTT Discovery [#1280](https://github.com/emsesp/EMS-ESP32/issues/1280)

## Changed

- mqtt free mem check 60k
- mqtt free mem check set to 60 kb
- small cosmetic changes to Searching in Customization web page
- update to [email protected]
- updated to [email protected]
2 changes: 1 addition & 1 deletion interface/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"react": "latest",
"react-dom": "latest",
"react-dropzone": "^14.2.3",
"react-icons": "^4.10.1",
"react-icons": "^4.11.0",
"react-router-dom": "^6.15.0",
"react-toastify": "^9.1.3",
"sockette": "^2.0.6",
Expand Down
10 changes: 5 additions & 5 deletions interface/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1783,7 +1783,7 @@ __metadata:
react: latest
react-dom: latest
react-dropzone: ^14.2.3
react-icons: ^4.10.1
react-icons: ^4.11.0
react-router-dom: ^6.15.0
react-toastify: ^9.1.3
rollup-plugin-visualizer: ^5.9.2
Expand Down Expand Up @@ -5144,12 +5144,12 @@ __metadata:
languageName: node
linkType: hard

"react-icons@npm:^4.10.1":
version: 4.10.1
resolution: "react-icons@npm:4.10.1"
"react-icons@npm:^4.11.0":
version: 4.11.0
resolution: "react-icons@npm:4.11.0"
peerDependencies:
react: "*"
checksum: aa4ecd390751bf61fc7967c2256eace1351c4af9a941ea4459464ac5cae012fe99970430ab659ad38a633ca55b0392d9ea5624ab3953c0bc86e1809199d6e2e2
checksum: 95e837e11ece80cc39ef1beac026d10f96cd7e567afc718e717517beb35b82dd59307a758c10b3a449dc15d6682d6551ecc630b2821d9365819af921fa279a73
languageName: node
linkType: hard

Expand Down
15 changes: 13 additions & 2 deletions pio_local.ini_example
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ default_envs = esp32_4M
; default_envs = esp32_16M
; default_envs = lolin_s3
; default_envs = standalone
; default_envs = debug

[env:esp32_4M]
; if using OTA enter your details below
Expand All @@ -33,6 +34,8 @@ upload_port = /dev/ttyUSB*
; override arduino espressif core
platform = espressif32 ; take latest
; platform = [email protected]
; platform = [email protected]
; platform = [email protected]

extra_scripts =
pre:scripts/build_interface.py ; comment out if you don't want to re-build the WebUI each time
Expand All @@ -52,13 +55,21 @@ extra_scripts =
; options for debugging are: EMSESP_DEBUG EMSESP_UART_DEBUG EMSESP_DEBUG_SENSOR
[env:debug]
board = esp32dev
framework = arduino
platform = espressif32
board_build.partitions = esp32_partition_debug.csv
; board_build.partitions = esp32_partition_4M.csv
board_upload.flash_size = 4MB
board_build.filesystem = littlefs
upload_protocol = esptool
build_type = debug
monitor_raw = no
monitor_filters = esp32_exception_decoder
debug_tool = esp-prog
debug_init_break = tbreak setup
build_flags = ${factory_settings.build_flags} -DONEWIRE_CRC16=0 -DNO_GLOBAL_ARDUINOOTA -DARDUINOJSON_ENABLE_STD_STRING=1 -DESP32=1 -DARDUINO_ARCH_ESP32=1
extra_scripts = pre:scripts/build_interface.py
build_flags = ${factory_settings.build_flags} -DEMSESP_EN_ONLY -DCORE_DEBUG_LEVEL=5 -DONEWIRE_CRC16=0 -DNO_GLOBAL_ARDUINOOTA -DARDUINOJSON_ENABLE_STD_STRING=1 -DESP32=1 -DARDUINO_ARCH_ESP32=1
upload_port = /dev/ttyUSB0
extra_scripts =
; pre:scripts/build_interface.py ; comment out if you don't want to re-build the WebUI each time
scripts/rename_fw.py
; post:scripts/app-tls-size.py
16 changes: 13 additions & 3 deletions src/mqtt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -919,10 +919,20 @@ bool Mqtt::publish_ha_sensor_config(uint8_t type, // EMSdev
// for enums, add options
if (type == DeviceValueType::ENUM) {
JsonArray option_list = doc.createNestedArray("ops"); // options
for (uint8_t i = 0; i < options_size; i++) {
option_list.add(Helpers::translated_word(options[i]));
if (EMSESP::system_.enum_format() == ENUM_FORMAT_INDEX) {
// use index numbers
for (uint8_t i = 0; i < options_size; i++) {
option_list.add(i);
}
snprintf(sample_val, sizeof(sample_val), "0");
} else {
// use strings
for (uint8_t i = 0; i < options_size; i++) {
option_list.add(Helpers::translated_word(options[i]));
}
snprintf(sample_val, sizeof(sample_val), "'%s'", Helpers::translated_word(options[0]));
}
snprintf(sample_val, sizeof(sample_val), "'%s'", Helpers::translated_word(options[0]));

} else if (type != DeviceValueType::STRING && type != DeviceValueType::BOOL) {
// Must be Numeric....
doc["mode"] = "box"; // auto, slider or box
Expand Down
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define EMSESP_APP_VERSION "3.6.1-dev.1a"
#define EMSESP_APP_VERSION "3.6.1-dev.2"

0 comments on commit 10c8c2b

Please sign in to comment.