Add HA sensor for latest version
This commit is contained in:
19
Network.cpp
19
Network.cpp
@@ -915,7 +915,7 @@ void Network::publishHASSConfig(char* deviceType, const char* baseTopic, char* n
|
||||
publishHassTopic("sensor",
|
||||
"nuki_hub_version",
|
||||
uidString,
|
||||
"_nuki_hub__version",
|
||||
"_nuki_hub_version",
|
||||
"NUKI Hub version",
|
||||
name,
|
||||
baseTopic,
|
||||
@@ -927,6 +927,23 @@ void Network::publishHASSConfig(char* deviceType, const char* baseTopic, char* n
|
||||
"",
|
||||
{ { "enabled_by_default", "true" },
|
||||
{"ic", "mdi:counter"}});
|
||||
|
||||
// NUKI Hub latest
|
||||
publishHassTopic("sensor",
|
||||
"nuki_hub_latest",
|
||||
uidString,
|
||||
"_nuki_hub_latest",
|
||||
"NUKI Hub latest",
|
||||
name,
|
||||
baseTopic,
|
||||
_lockPath + mqtt_topic_info_nuki_hub_latest,
|
||||
deviceType,
|
||||
"",
|
||||
"",
|
||||
"diagnostic",
|
||||
"",
|
||||
{ { "enabled_by_default", "true" },
|
||||
{"ic", "mdi:counter"}});
|
||||
|
||||
// LED enabled
|
||||
publishHassTopic("switch",
|
||||
|
||||
Reference in New Issue
Block a user