Fix Home Assistant Unlatch button for opener

This commit is contained in:
iranl
2024-03-04 22:47:33 +01:00
parent 2939d1294e
commit b593210568

View File

@@ -1061,7 +1061,7 @@ void Network::publishHASSConfig(char* deviceType, const char* baseTopic, char* n
"unlatch", "unlatch",
uidString, uidString,
"_unlatch_button", "_unlatch_button",
"Unlatch", "Open",
name, name,
baseTopic, baseTopic,
"", "",
@@ -1071,7 +1071,7 @@ void Network::publishHASSConfig(char* deviceType, const char* baseTopic, char* n
"", "",
String("~") + mqtt_topic_lock_action, String("~") + mqtt_topic_lock_action,
{ { "enabled_by_default", "false" }, { { "enabled_by_default", "false" },
{ "pl_prs", "unlatch" }}); { "pl_prs", openAction }});
} }
} }