Skip to content

Commit

Permalink
Merge pull request #33 from AzonInc/dev
Browse files Browse the repository at this point in the history
Use 16 bit door opener command
  • Loading branch information
AzonInc authored Nov 24, 2024
2 parents f3a0669 + 29df06b commit 18abca2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions components/tc_bus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion components/tc_bus/protocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -74,7 +80,7 @@ namespace esphome
command |= (1 << 7); // 8
command |= (address & 0x3F); // 0
}
break;
break;*/

case COMMAND_TYPE_LIGHT:
command |= (1 << 12); // 1
Expand Down
2 changes: 1 addition & 1 deletion firmware/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ esphome:

project:
name: "AzonInc.Doorman"
version: "2024.11.1"
version: "2024.11.2"

platformio_options:
board_build.flash_mode: dio
Expand Down

0 comments on commit 18abca2

Please sign in to comment.