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

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