Merge pull request #172 from kng/homeassistant

Homeassistant mqtt discovery, wip
This commit is contained in:
Gunnar Skjold
2022-02-12 11:48:43 +01:00
committed by GitHub
11 changed files with 390 additions and 1 deletions

View File

@@ -547,7 +547,7 @@ void AmsWebServer::configMqttHtml() {
html.replace("{u}", mqtt.username);
html.replace("{pw}", mqtt.password);
html.replace("{f}", String(mqtt.payloadFormat));
for(int i = 0; i<4; i++) {
for(int i = 0; i<5; i++) {
html.replace("{f" + String(i) + "}", mqtt.payloadFormat == i ? "selected" : "");
}