From e9aed30a334618dae28f90e0d253d5d152f1c2ea Mon Sep 17 00:00:00 2001 From: iranl Date: Sun, 4 Feb 2024 14:36:30 +0100 Subject: [PATCH] Add files via upload --- Network.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Network.cpp b/Network.cpp index 310f972..ce3d07c 100644 --- a/Network.cpp +++ b/Network.cpp @@ -957,7 +957,8 @@ void Network::publishHASSConfig(char* deviceType, const char* baseTopic, char* n "", "", mqtt_topic_lock_action, - { { "pl_prs", "lockNgo" }}); + { { "enabled_by_default", "true" }, + { "pl_prs", "lockNgo" }}); // Lock 'n' Go with unlatch publishHassTopic("button", @@ -973,7 +974,8 @@ void Network::publishHASSConfig(char* deviceType, const char* baseTopic, char* n "", "", mqtt_topic_lock_action, - { { "pl_prs", "lockNgoUnlatch" }}); + { { "enabled_by_default", "true" }, + { "pl_prs", "lockNgoUnlatch" }}); // Unlatch publishHassTopic("button", @@ -989,7 +991,8 @@ void Network::publishHASSConfig(char* deviceType, const char* baseTopic, char* n "", "", mqtt_topic_lock_action, - { { "pl_prs", "unlatch" }}); + { { "enabled_by_default", "true" }, + { "pl_prs", "unlatch" }}); } }