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 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