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",
|
publishHassTopic("sensor",
|
||||||
"nuki_hub_version",
|
"nuki_hub_version",
|
||||||
uidString,
|
uidString,
|
||||||
"_nuki_hub__version",
|
"_nuki_hub_version",
|
||||||
"NUKI Hub version",
|
"NUKI Hub version",
|
||||||
name,
|
name,
|
||||||
baseTopic,
|
baseTopic,
|
||||||
@@ -928,6 +928,23 @@ void Network::publishHASSConfig(char* deviceType, const char* baseTopic, char* n
|
|||||||
{ { "enabled_by_default", "true" },
|
{ { "enabled_by_default", "true" },
|
||||||
{"ic", "mdi:counter"}});
|
{"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
|
// LED enabled
|
||||||
publishHassTopic("switch",
|
publishHassTopic("switch",
|
||||||
"led_enabled",
|
"led_enabled",
|
||||||
|
|||||||
Reference in New Issue
Block a user