From 18d0e94ddacec04aa28267abaf1e34134585081d Mon Sep 17 00:00:00 2001 From: Florian Date: Sun, 24 Nov 2024 16:41:07 +0100 Subject: [PATCH 1/2] Use 16 bit door opener command --- components/tc_bus/__init__.py | 1 + components/tc_bus/protocol.cpp | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/components/tc_bus/__init__.py b/components/tc_bus/__init__.py index 84666f1..ee18500 100644 --- a/components/tc_bus/__init__.py +++ b/components/tc_bus/__init__.py @@ -120,6 +120,7 @@ CONF_ON_COMMAND = "on_command" CONF_ON_MEMORY = "on_read_memory_complete" CONF_ON_MEMORY_TIMEOUT = "on_read_memory_timeout" + CONF_PROGRAMMING_MODE = "programming_mode" MULTI_CONF = False diff --git a/components/tc_bus/protocol.cpp b/components/tc_bus/protocol.cpp index 8010715..1ae3af4 100644 --- a/components/tc_bus/protocol.cpp +++ b/components/tc_bus/protocol.cpp @@ -61,6 +61,12 @@ namespace esphome break; case COMMAND_TYPE_OPEN_DOOR: + command |= (1 << 12); // 1 + command |= (1 << 8); // 1 + command |= (address & 0x3F); // 00 + break; + + /*case COMMAND_TYPE_OPEN_DOOR_LONG: if(serial_number == 0) { command |= (1 << 12); // 1 @@ -74,7 +80,7 @@ namespace esphome command |= (1 << 7); // 8 command |= (address & 0x3F); // 0 } - break; + break;*/ case COMMAND_TYPE_LIGHT: command |= (1 << 12); // 1 From 29df06bb564037fb1b696830d5be014342b90a58 Mon Sep 17 00:00:00 2001 From: Florian Date: Sun, 24 Nov 2024 16:41:41 +0100 Subject: [PATCH 2/2] Bump version --- firmware/base.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/base.yaml b/firmware/base.yaml index 1c9dd28..49ef411 100644 --- a/firmware/base.yaml +++ b/firmware/base.yaml @@ -28,7 +28,7 @@ esphome: project: name: "AzonInc.Doorman" - version: "2024.11.1" + version: "2024.11.2" platformio_options: board_build.flash_mode: dio