make single lock configurable

This commit is contained in:
technyon
2022-07-14 20:02:38 +02:00
parent af24eeb0e9
commit 13dae4eb0d
4 changed files with 11 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ NetworkLock::NetworkLock(Network* network, Preferences* preferences)
_configTopics.push_back(mqtt_topic_config_led_brightness);
_configTopics.push_back(mqtt_topic_config_auto_unlock);
_configTopics.push_back(mqtt_topic_config_auto_lock);
_configTopics.push_back(mqtt_topic_config_single_lock);
_network->registerMqttReceiver(this);
}
@@ -156,6 +157,7 @@ void NetworkLock::publishConfig(const NukiLock::Config &config)
publishBool(mqtt_topic_config_button_enabled, config.buttonEnabled == 1);
publishBool(mqtt_topic_config_led_enabled, config.ledEnabled == 1);
publishInt(mqtt_topic_config_led_brightness, config.ledBrightness);
publishBool(mqtt_topic_config_single_lock, config.singleLock == 1);
}
void NetworkLock::publishAdvancedConfig(const NukiLock::AdvancedConfig &config)