mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-20 10:04:59 +00:00
Clear HA or domoticz config if not in use
This commit is contained in:
parent
df44b05792
commit
9c8788225d
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user