Skip to main content

AlarmDecoder extended

Project description

adext

PyPI - Version GitHub Actions Workflow Status

adext is a small package that extends alarmdecoder to include some additional methods for Home Assistant.

Specifically, the following methods have been added:

  • arm_home
  • arm_away
  • arm_night

Each method accepts the arguments described below to determine which key sequences are used to arm a panel based on factors like panel brand and user config settings.

Arguments:

  • code: (None or str) - the code used to arm a panel (i.e. '1234')
  • auto_bypass: (bool) - for Honeywell only. set to True to prefix an arming sequence with <code> + 6# in order to automatically bypass any faulted zones. This will require a code to be entered even if code_arm_required is set to false."
  • code_arm_required: (bool) - set to False to enable arming without a code. see Arming Key Sequences below.
  • alt_night_mode: (bool) - For Honeywell systems, set to true to enable Night-Stay mode instead of Instant mode for night arming. For DSC systems, set to true to enable No-Entry mode instead of Stay mode for night arming. For both systems, whenever this option is set to true, a code will be required for night arming regardless of the code_arm_required setting. See Arming Key Sequences section below for more information.

Arming Key Sequences

The tables below show the key press sequences used for arming for the different panel brands and configuration setting combinations.

Honeywell

code_arm_required = true (default)

Mode Key Sequence
alarm_arm_home code + 3
alarm_arm_away code + 2
alarm_arm_night (alt_night_mode = false, default) code + 7
alarm_arm_night (alt_night_mode = true) code + 33

code_arm_required = false

Mode Key Sequence
alarm_arm_home #3
alarm_arm_away #2
alarm_arm_night (alt_night_mode = false, default) #7
alarm_arm_night (alt_night_mode = true) code + 33

DSC

code_arm_required = true (default)

Mode Key Sequence
alarm_arm_home code
alarm_arm_away code
alarm_arm_night (alt_night_mode = false, default) code
alarm_arm_night (alt_night_mode = true) *9 + code

code_arm_required = false

The chr(4) and chr(5) sequences below are equivalent to pressing the Stay and Away keypad keys respectively (as outlined in the AlarmDecoder documentation).

Mode Key Sequence
alarm_arm_home chr(4) + chr(4) + chr(4)
alarm_arm_away chr(5) + chr(5) + chr(5)
alarm_arm_night (alt_night_mode = false, default) chr(4) + chr(4) + chr(4)
alarm_arm_night (alt_night_mode = true) *9 + code

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

adext-0.4.7.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

adext-0.4.7-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file adext-0.4.7.tar.gz.

File metadata

  • Download URL: adext-0.4.7.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for adext-0.4.7.tar.gz
Algorithm Hash digest
SHA256 3a337d61f5d05dc758ee71b903369012e777319bb347287213c07d3829b2169b
MD5 f2d4462f212d380e9856342edcad1ad4
BLAKE2b-256 5e2e9863a0599aa64d1926f436b4687bf5567a05be40769df2145f885399a709

See more details on using hashes here.

Provenance

The following attestation bundles were made for adext-0.4.7.tar.gz:

Publisher: release.yaml on ajschmidt8/adext

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file adext-0.4.7-py3-none-any.whl.

File metadata

  • Download URL: adext-0.4.7-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for adext-0.4.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f7012632c5dd71e4f21372d8019527f8a1b596c7805aabe2046ba16dd0fce1ed
MD5 933b1d2903bfbe7c49f49c2158efac7f
BLAKE2b-256 e538ab473dcb79c02013daa6952bc3e89a90fa57117cd7f12af28f1c4c8d9929

See more details on using hashes here.

Provenance

The following attestation bundles were made for adext-0.4.7-py3-none-any.whl:

Publisher: release.yaml on ajschmidt8/adext

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page