also show lock state in config page

This commit is contained in:
technyon
2022-04-07 22:08:09 +02:00
parent 300e2b9cbd
commit ac8ec6022a
3 changed files with 14 additions and 1 deletions

View File

@@ -197,9 +197,15 @@ void WebCfgServer::buildHtml(String& response)
String version = " ";
version.concat(nuki_hub_version);
char lockstateArr[20];
Nuki::lockstateToString(_nuki->keyTurnerState().lockState, lockstateArr);
String lockState = " ";
lockState.concat(lockstateArr);
response.concat("<table>");
printParameter(response, "Paired", _nuki->isPaired() ? "&nbsp;Yes" : "&nbsp;No");
printParameter(response, "MQTT Connected", _network->isMqttConnected() ? "&nbsp;Yes" : "&nbsp;No");
printParameter(response, "Lock state", lockState.c_str());
printParameter(response, "Firmware", version.c_str());
response.concat("</table><br><br>");