Fix config

This commit is contained in:
iranl
2025-01-06 21:32:07 +01:00
parent e1a12a542f
commit d762f66d2a
3 changed files with 8 additions and 2 deletions

View File

@@ -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"

View File

@@ -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);