From d762f66d2abf994041b9f640d8ddfcedae62c1c2 Mon Sep 17 00:00:00 2001 From: iranl Date: Mon, 6 Jan 2025 21:32:07 +0100 Subject: [PATCH] Fix config --- lib/nuki_ble | 2 +- src/Config.h | 2 +- src/NukiNetworkLock.cpp | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/nuki_ble b/lib/nuki_ble index 8798980..a7673b4 160000 --- a/lib/nuki_ble +++ b/lib/nuki_ble @@ -1 +1 @@ -Subproject commit 87989807674b5935ec654e3fecd028706da0188e +Subproject commit a7673b41f2889c673985ccd710835744f336ce5a diff --git a/src/Config.h b/src/Config.h index 37f5d96..222fd01 100644 --- a/src/Config.h +++ b/src/Config.h @@ -5,7 +5,7 @@ #define NUKI_HUB_VERSION "9.07" #define NUKI_HUB_VERSION_INT (uint32_t)907 #define NUKI_HUB_BUILD "unknownbuildnr" -#define NUKI_HUB_DATE "2025-01-05" +#define NUKI_HUB_DATE "2025-01-06" #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" diff --git a/src/NukiNetworkLock.cpp b/src/NukiNetworkLock.cpp index 503f704..3e2e9ae 100644 --- a/src/NukiNetworkLock.cpp +++ b/src/NukiNetworkLock.cpp @@ -829,6 +829,12 @@ void NukiNetworkLock::publishConfig(const NukiLock::Config &config) memset(str, 0, sizeof(str)); _network->timeZoneIdToString(config.timeZoneId, str); json["timeZone"] = str; + json["deviceType"] = config.deviceType; + json["channel"] = config.network; + json["wifiCapable"] = config.network & 1; + json["threadCapable"] = (((unsigned int)config.network & 2) != 0 ? 1 : 0); + json["matterStatus"] = config.matterStatus; + json["productVariant"] = config.productVariant; serializeJson(json, _buffer, _bufferSize); _nukiPublisher->publishString(mqtt_topic_config_basic_json, _buffer, true);