fix keypad option not visible if keypad connect to opener
This commit is contained in:
@@ -577,6 +577,11 @@ const bool NukiOpenerWrapper::isPaired()
|
|||||||
return _paired;
|
return _paired;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const bool NukiOpenerWrapper::hasKeypad()
|
||||||
|
{
|
||||||
|
return _hasKeypad;
|
||||||
|
}
|
||||||
|
|
||||||
const BLEAddress NukiOpenerWrapper::getBleAddress() const
|
const BLEAddress NukiOpenerWrapper::getBleAddress() const
|
||||||
{
|
{
|
||||||
return _nukiOpener.getBleAddress();
|
return _nukiOpener.getBleAddress();
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ public:
|
|||||||
|
|
||||||
const NukiOpener::OpenerState& keyTurnerState();
|
const NukiOpener::OpenerState& keyTurnerState();
|
||||||
const bool isPaired();
|
const bool isPaired();
|
||||||
|
const bool hasKeypad();
|
||||||
const BLEAddress getBleAddress() const;
|
const BLEAddress getBleAddress() const;
|
||||||
|
|
||||||
BleScanner::Scanner* bleScanner();
|
BleScanner::Scanner* bleScanner();
|
||||||
|
|||||||
@@ -690,7 +690,7 @@ void WebCfgServer::buildNukiConfigHtml(String &response)
|
|||||||
printInputField(response, "LSTINT", "Query interval lock state (seconds)", _preferences->getInt(preference_query_interval_lockstate), 10);
|
printInputField(response, "LSTINT", "Query interval lock state (seconds)", _preferences->getInt(preference_query_interval_lockstate), 10);
|
||||||
printInputField(response, "CFGINT", "Query interval configuration (seconds)", _preferences->getInt(preference_query_interval_configuration), 10);
|
printInputField(response, "CFGINT", "Query interval configuration (seconds)", _preferences->getInt(preference_query_interval_configuration), 10);
|
||||||
printInputField(response, "BATINT", "Query interval battery (seconds)", _preferences->getInt(preference_query_interval_battery), 10);
|
printInputField(response, "BATINT", "Query interval battery (seconds)", _preferences->getInt(preference_query_interval_battery), 10);
|
||||||
if(_nuki != nullptr && _nuki->hasKeypad())
|
if((_nuki != nullptr && _nuki->hasKeypad()) || (_nukiOpener != nullptr && _nukiOpener->hasKeypad()))
|
||||||
{
|
{
|
||||||
printInputField(response, "KPINT", "Query interval keypad (seconds)", _preferences->getInt(preference_query_interval_keypad), 10);
|
printInputField(response, "KPINT", "Query interval keypad (seconds)", _preferences->getInt(preference_query_interval_keypad), 10);
|
||||||
printCheckBox(response, "KPENA", "Enabled keypad control via MQTT", _preferences->getBool(preference_keypad_control_enabled));
|
printCheckBox(response, "KPENA", "Enabled keypad control via MQTT", _preferences->getBool(preference_keypad_control_enabled));
|
||||||
|
|||||||
Reference in New Issue
Block a user