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