From b2c194476267ba36f5b3570c8e9f0f8757b88539 Mon Sep 17 00:00:00 2001 From: iranl Date: Thu, 7 Mar 2024 20:59:03 +0100 Subject: [PATCH] Fix Single Lock --- Network.cpp | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Network.cpp b/Network.cpp index 39314e4..8a23b31 100644 --- a/Network.cpp +++ b/Network.cpp @@ -1260,9 +1260,9 @@ void Network::publishHASSConfigAdditionalButtons(char *deviceType, const char *b "config", String("~") + mqtt_topic_config_single_lock, { { "enabled_by_default", "false" }, - { "pl_on", "2" }, + { "pl_on", "0" }, { "pl_off", "1" }, - { "state_on", "2" }, + { "state_on", "0" }, { "state_off", "1" }}); } diff --git a/README.md b/README.md index 3d7b72f..d04b469 100644 --- a/README.md +++ b/README.md @@ -191,7 +191,7 @@ In a browser navigate to the IP address assigned to the ESP32. - configuration/buttonEnabled: enable or disable the button on the lock (0 = disabled; 1 = enabled). - configuration/ledBrightness: Set the brightness of the LED on the lock (0=min; 5=max). - configuration/ledEnabled: enable or disable the LED on the lock (0 = disabled; 1 = enabled). -- configuration/singleLock: configures wether to single- or double-lock the door (1 = single; 2 = double). +- configuration/singleLock: configures wether to single- or double-lock the door (0 = double; 1 = single). ### Opener