diff --git a/Config.h b/Config.h index f290b33..9d46481 100644 --- a/Config.h +++ b/Config.h @@ -1,6 +1,6 @@ #pragma once -#define NUKI_HUB_VERSION "8.21-pre-2" +#define NUKI_HUB_VERSION "8.21-pre-3" #define MQTT_QOS_LEVEL 1 #define MQTT_CLEAN_SESSIONS false diff --git a/Network.cpp b/Network.cpp index fd485a7..690ee56 100644 --- a/Network.cpp +++ b/Network.cpp @@ -725,6 +725,26 @@ void Network::publishHASSConfig(char* deviceType, const char* baseTopic, char* n {"pl_off", "offline"}, {"ic", "mdi:lan-connect"}}); + // Reset + publishHassTopic("switch", + "reset", + uidString, + "_reset", + "Reset", + name, + baseTopic, + mqtt_topic_reset, + deviceType, + "", + "", + "diagnostic", + mqtt_topic_reset, + { { "ic", "mdi:restart" }, + { "pl_on", "1" }, + { "pl_off", "0" }, + { "state_on", "1" }, + { "state_off", "0" }}); + // Firmware version publishHassTopic("sensor", "firmware_version", @@ -742,7 +762,7 @@ void Network::publishHASSConfig(char* deviceType, const char* baseTopic, char* n { { "enabled_by_default", "true" }, {"ic", "mdi:counter"}}); - // Firmware version + // Hardware version publishHassTopic("sensor", "hardware_version", uidString,