mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-30 13:46:17 +00:00
Clear HA or domoticz config if not in use
This commit is contained in:
@@ -798,11 +798,19 @@ void AmsWebServer::configurationJson() {
|
||||
DebugConfig debugConfig;
|
||||
config->getDebugConfig(debugConfig);
|
||||
DomoticzConfig domo;
|
||||
config->getDomoticzConfig(domo);
|
||||
if(mqttConfig.payloadFormat == 3) {
|
||||
config->getDomoticzConfig(domo);
|
||||
} else {
|
||||
config->clearDomo(domo);
|
||||
}
|
||||
UiConfig ui;
|
||||
config->getUiConfig(ui);
|
||||
HomeAssistantConfig haconf;
|
||||
config->getHomeAssistantConfig(haconf);
|
||||
if(mqttConfig.payloadFormat == 4) {
|
||||
config->getHomeAssistantConfig(haconf);
|
||||
} else {
|
||||
config->clearHomeAssistantConfig(haconf);
|
||||
}
|
||||
|
||||
bool qsc = false;
|
||||
bool qsr = false;
|
||||
|
||||
Reference in New Issue
Block a user