Merge pull request #316 from iranl/fix-unlatch-button-ha
Fix Home Assistant Unlatch button for opener
This commit is contained in:
@@ -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 }});
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user