Fix presence topic (#1238)
This commit is contained in:
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -119,7 +119,7 @@ void pubBTMainCore(JsonObject& data, bool haPresenceEnabled = true) {
|
||||
data["id"] = data["uuid"];
|
||||
}
|
||||
# endif
|
||||
String topic = String(Base_Topic) + "home_presence/" + String(gateway_name);
|
||||
String topic = String(mqtt_topic) + subjectHomePresence + String(gateway_name);
|
||||
Log.trace(F("Pub HA Presence %s" CR), topic.c_str());
|
||||
pub_custom_topic((char*)topic.c_str(), data, false);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user