Skip to content

Commit 515611c

Browse files
Merge branch 'main' into add-esp32-s3-support
2 parents d844810 + c320e4c commit 515611c

22 files changed

+64
-30
lines changed

.github/workflows/build.yaml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Build and Pack
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
pull_request:
6+
release:
7+
types: [released] # Only trigger on published releases (not drafts or pre-released)
48

59
jobs:
610
#########################################################################################
@@ -304,7 +308,7 @@ jobs:
304308
prepare-release:
305309
runs-on: ubuntu-latest
306310
needs: [pack-for-update, pack-for-manual_setup, pack-for-remote_setup]
307-
if: startsWith(github.ref, 'refs/tags/')
311+
if: github.event_name == 'release' # Only run when the trigger is a release
308312

309313
# Sets permissions of the GITHUB_TOKEN to allow updating the branches
310314
permissions:
@@ -406,7 +410,7 @@ jobs:
406410
#########################################################################################
407411
# Make sure to also update update-webinstaller.yml!
408412
update-web-installer:
409-
if: github.event_name == 'release' && github.event.action == 'published' # Only run on release but not on prerelease
413+
if: github.event_name == 'release' # Only run when the trigger is a release
410414
needs: [prepare-release]
411415
environment:
412416
name: github-pages
@@ -444,13 +448,13 @@ jobs:
444448
sed -i 's/$VERSION/${{ steps.last_release.outputs.tag_name }}/g' webinstaller/manifest.json
445449
446450
- name: Setup Pages
447-
uses: actions/configure-pages@v4
451+
uses: actions/configure-pages@v5
448452

449453
- name: Upload artifact
450-
uses: actions/upload-pages-artifact@v2
454+
uses: actions/upload-pages-artifact@v3
451455
with:
452456
path: 'webinstaller'
453457

454458
- name: Deploy to GitHub Pages
455459
id: deployment
456-
uses: actions/deploy-pages@v3 # Note: v4 does not work!
460+
uses: actions/deploy-pages@v4.0.5 # Note: v4 does not work!

.github/workflows/reply-bot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ permissions:
1818

1919
jobs:
2020
comment:
21-
runs-on: ubuntu-20.04
21+
runs-on: ubuntu-latest
2222
steps:
2323
- uses: actions/checkout@v4
2424

code/components/jomjol_helper/Helper.cpp

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,11 +855,21 @@ struct SDCard_Manufacturer_database sd_database[] = {
855855
.id = 0x03,
856856
.manufacturer = "SanDisk",
857857
},
858+
{
859+
.type = "sd",
860+
.id = 0x05,
861+
.manufacturer = "Lenovo",
862+
},
858863
{
859864
.type = "sd",
860865
.id = 0x08,
861866
.manufacturer = "Silicon Power",
862867
},
868+
{
869+
.type = "sd",
870+
.id = 0x09,
871+
.manufacturer = "ATP",
872+
},
863873
{
864874
.type = "sd",
865875
.id = 0x18,
@@ -943,7 +953,27 @@ struct SDCard_Manufacturer_database sd_database[] = {
943953
{
944954
.type = "sd",
945955
.id = 0x89,
946-
.manufacturer = "Unknown",
956+
.manufacturer = "Netac",
957+
},
958+
{
959+
.type = "sd",
960+
.id = 0x9f,
961+
.manufacturer = "Kingston/Kodak/Silicon Power",
962+
},
963+
{
964+
.type = "sd",
965+
.id = 0xad,
966+
.manufacturer = "Amazon Basics/Lexar/OV",
967+
},
968+
{
969+
.type = "sd",
970+
.id = 0xdf,
971+
.manufacturer = "Lenovo",
972+
},
973+
{
974+
.type = "sd",
975+
.id = 0xfe,
976+
.manufacturer = "Bekit/Cloudisk/HP/Reletech",
947977
},
948978
};
949979

code/components/jomjol_mqtt/interface_mqtt.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ bool MQTTPublish(std::string _key, std::string _content, int qos, bool retained_
8585
_content.append("..");
8686
}
8787

88-
LogFile.WriteToFile(ESP_LOG_DEBUG, TAG, "Published topic: " + _key + ", content: " + _content + " (msg_id=" + std::to_string(msg_id) + ")");
88+
LogFile.WriteToFile(ESP_LOG_DEBUG, TAG, "Published topic: " + _key + ", content: " + _content);
8989
return true;
9090
}
9191
else {
@@ -465,7 +465,7 @@ void MQTTconnected(){
465465
if (subscribeFunktionMap != NULL) {
466466
for(std::map<std::string, std::function<bool(std::string, char*, int)>>::iterator it = subscribeFunktionMap->begin(); it != subscribeFunktionMap->end(); ++it) {
467467
int msg_id = esp_mqtt_client_subscribe(client, it->first.c_str(), 0);
468-
LogFile.WriteToFile(ESP_LOG_DEBUG, TAG, "topic " + it->first + " subscribe successful, msg_id=" + std::to_string(msg_id));
468+
LogFile.WriteToFile(ESP_LOG_DEBUG, TAG, "topic " + it->first + " subscribe successful");
469469
}
470470
}
471471

code/components/jomjol_mqtt/server_mqtt.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,14 +174,14 @@ bool MQTThomeassistantDiscovery(int qos) {
174174
int aFreeInternalHeapSizeBefore = heap_caps_get_free_size(MALLOC_CAP_8BIT | MALLOC_CAP_INTERNAL);
175175

176176
// Group | Field | User Friendly Name | Icon | Unit | Device Class | State Class | Entity Category
177-
allSendsSuccessed |= sendHomeAssistantDiscoveryTopic("", "uptime", "Uptime", "clock-time-eight-outline", "s", "", "", "diagnostic", qos);
177+
allSendsSuccessed |= sendHomeAssistantDiscoveryTopic("", "uptime", "Uptime", "progress-clock", "s", "duration", "measurement", "diagnostic", qos);
178178
allSendsSuccessed |= sendHomeAssistantDiscoveryTopic("", "MAC", "MAC Address", "network-outline", "", "", "", "diagnostic", qos);
179179
allSendsSuccessed |= sendHomeAssistantDiscoveryTopic("", "fwVersion", "Firmware Version", "application-outline", "", "", "", "diagnostic", qos);
180180
allSendsSuccessed |= sendHomeAssistantDiscoveryTopic("", "hostname", "Hostname", "network-outline", "", "", "", "diagnostic", qos);
181181
allSendsSuccessed |= sendHomeAssistantDiscoveryTopic("", "freeMem", "Free Memory", "memory", "B", "", "measurement", "diagnostic", qos);
182182
allSendsSuccessed |= sendHomeAssistantDiscoveryTopic("", "wifiRSSI", "Wi-Fi RSSI", "wifi", "dBm", "signal_strength", "", "diagnostic", qos);
183183
allSendsSuccessed |= sendHomeAssistantDiscoveryTopic("", "CPUtemp", "CPU Temperature", "thermometer", "°C", "temperature", "measurement", "diagnostic", qos);
184-
allSendsSuccessed |= sendHomeAssistantDiscoveryTopic("", "interval", "Interval", "clock-time-eight-outline", "min", "" , "measurement", "diagnostic", qos);
184+
allSendsSuccessed |= sendHomeAssistantDiscoveryTopic("", "interval", "Interval", "clock-time-eight-outline", "min", "", "measurement", "diagnostic", qos);
185185
allSendsSuccessed |= sendHomeAssistantDiscoveryTopic("", "IP", "IP", "network-outline", "", "", "", "diagnostic", qos);
186186
allSendsSuccessed |= sendHomeAssistantDiscoveryTopic("", "status", "Status", "list-status", "", "", "", "diagnostic", qos);
187187
allSendsSuccessed |= sendHomeAssistantDiscoveryTopic("", "flowstart", "Manual Flow Start", "timer-play-outline", "", "", "", "", qos);

param-docs/parameter-pages/InfluxDB/NUMBER.Field.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ Default Value: `undefined`
44
Dedicated definition of the field for InfluxDB use for saving in the Influx database (e.g.: "watermeter/value").
55

66
!!! Note
7-
This parameter must be prefixed with `<NUMBER>` followed by a dot (eg. `main.Field`). `<NUMBER>` is the name of the number sequence defined in the ROI's.
7+
If you edit the config file manually, you must prefix this parameter with `<NUMBER>` followed by a dot (eg. `main.Field`). The reason is that this parameter is specific for each `<NUMBER>` (`<NUMBER>` is the name of the number sequence defined in the ROI's).

param-docs/parameter-pages/InfluxDBv2/NUMBER.Field.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ Default Value: `undefined`
44
Field for InfluxDB v2 to use for saving.
55

66
!!! Note
7-
This parameter must be prefixed with `<NUMBER>` followed by a dot (eg. `main.Field`). `<NUMBER>` is the name of the number sequence defined in the ROI's.
7+
If you edit the config file manually, you must prefix this parameter with `<NUMBER>` followed by a dot (eg. `main.Field`). The reason is that this parameter is specific for each `<NUMBER>` (`<NUMBER>` is the name of the number sequence defined in the ROI's).

param-docs/parameter-pages/MQTT/MeterType.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ Alternatively you can set the parameter `DecimalShift` to `3` so the value is co
1010
List of supported options:
1111

1212
- `other`
13-
- `water_m3` (uses `m^3/min` as rate)
13+
- `water_m3` (uses `m^3/h` as rate)
1414
- `water_l` (uses `l/h` as rate, not officially supported by Homeassistant!)
1515
- `water_gal` (uses `gal/h` as rate, not officially supported by Homeassistant!)
1616
- `water_ft3` (uses `ft^3/min` as rate)
17-
- `gas_m3` (uses `m^3/min` as rate)
17+
- `gas_m3` (uses `m^3/h` as rate)
1818
- `gas_ft3` (uses `ft^3/min` as rate)
1919
- `energy_wh` (uses `W` as rate)
2020
- `energy_kwh` (uses `KW` as rate)

param-docs/parameter-pages/MQTT/NUMBER.DomoticzIDX.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ Default Value: `0`
44
The Idx number for the counter device. Can be obtained from the devices setup page on the Domoticz system.
55

66
!!! Note
7-
This parameter must be prefixed with `<NUMBER>` followed by a dot (eg. `main.DomoticzIDX`). `<NUMBER>` is the name of the number sequence defined in the ROI's.
7+
If you edit the config file manually, you must prefix this parameter with `<NUMBER>` followed by a dot (eg. `main.DomoticzIDX`). The reason is that this parameter is specific for each `<NUMBER>` (`<NUMBER>` is the name of the number sequence defined in the ROI's).

param-docs/parameter-pages/PostProcessing/NUMBER.AllowNegativeRates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ Allow a meter to count backwards (decreasing values).
77
This is unusual (it means there is a negative rate) and not wanted in most cases!
88

99
!!! Note
10-
This parameter must be prefixed with `<NUMBER>` followed by a dot (eg. `main.AllowNegativeRates`). `<NUMBER>` is the name of the number sequence defined in the ROI's.
10+
If you edit the config file manually, you must prefix this parameter with `<NUMBER>` followed by a dot (eg. `main.AllowNegativeRates`). The reason is that this parameter is specific for each `<NUMBER>` (`<NUMBER>` is the name of the number sequence defined in the ROI's).

0 commit comments

Comments
 (0)