Skip to main content

AlarmDecoder extended

Project description

adext

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.
  • 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.2.tar.gz (3.4 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.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: adext-0.2.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.0

File hashes

Hashes for adext-0.2.tar.gz
Algorithm Hash digest
SHA256 1d8a7f52076a17e8b5e66a87227071bfc700533ef1e7899cd44e4b2b82912723
MD5 e5264962647c83a4d49ba1c7c4f7d808
BLAKE2b-256 9b5f07255e7224486e76f670c12017e009612b0d03e89f2264dd058a8d7b50de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: adext-0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.0

File hashes

Hashes for adext-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ee673c9b5e6c39f883c386c8603fec8569f07325d8b0d3c0164d26c258a4e1c7
MD5 cc1aee21cccf2f3861a204664d2f7cba
BLAKE2b-256 d8edd85fd8fe52fa54dbd5dde62671b4592e65c6ef349c5dbf85066b4d41bfd3

See more details on using hashes here.

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