New commands

This commit is contained in:
iranl
2025-04-04 15:47:46 +02:00
parent 35282073d7
commit 11203da632
4 changed files with 39 additions and 3 deletions

View File

@@ -5,7 +5,7 @@
#define NUKI_HUB_VERSION "9.10"
#define NUKI_HUB_VERSION_INT (uint32_t)910
#define NUKI_HUB_BUILD "unknownbuildnr"
#define NUKI_HUB_DATE "2025-04-02"
#define NUKI_HUB_DATE "2025-04-04"
#define GITHUB_LATEST_RELEASE_URL (char*)"https://github.com/technyon/nuki_hub/releases/latest"
#define GITHUB_OTA_MANIFEST_URL (char*)"https://raw.githubusercontent.com/technyon/nuki_hub/binary/ota/manifest.json"

View File

@@ -360,6 +360,7 @@ void NukiWrapper::update(bool reboot)
Log->println("Updating Lock config based on timer or query");
_nextConfigUpdateTs = ts + _intervalConfig * 1000;
updateConfig();
updateDebug();
}
if(_waitAuthLogUpdateTs != 0 && ts > _waitAuthLogUpdateTs)
{
@@ -728,6 +729,40 @@ void NukiWrapper::updateConfig()
}
}
void NukiWrapper::updateDebug()
{
Nuki::CmdResult result = (Nuki::CmdResult)-1;
Log->println("Running debug command - RequestGeneralStatistics");
result = _nukiLock.genericCommand(Nuki::Command::RequestGeneralStatistics);
Log->print("Result: ");
Log->println(result);
Log->println("Debug command complete");
Log->println("Running debug command - RequestMqttConfig");
result = (Nuki::CmdResult)-1;
result = _nukiLock.genericCommand(Nuki::Command::RequestMqttConfig);
Log->print("Result: ");
Log->println(result);
Log->println("Debug command complete");
/*
RequestGeneralStatistics = 0x0063,
RequestMqttConfig = 0x008B,
RequestInternalLogEntries = 0x0065,
RequestAccessoryInfo = 0x0091,
RequestMatterPairings = 0x0112
CheckKeypadCode = 0x006E,
SmartLockScanWifi = 0x0080,
SmartLockConnectWifi = 0x0082,
SmartLockSetWifiConfig = 0x0087,
SetMqttConfig = 0x008D,
SetKeypad2Config = 0x009C,
EnableMatterCommissioning = 0x0110,
SetMatterState = 0x0111,
*/
}
void NukiWrapper::updateAuthData(bool retrieved)
{
if(!isPinValid())

View File

@@ -69,6 +69,7 @@ private:
bool updateKeyTurnerState();
void updateBatteryState();
void updateConfig();
void updateDebug();
void updateAuthData(bool retrieved);
void updateKeypad(bool retrieved);
void updateTimeControl(bool retrieved);