Interact with Yale Smart Alarm systems
Project description
Yale Smart Alarm Client
Yale Smart Alarm client is a python client for interacting with the Yale Smart Alarm System API.
Supported functions:
- Arm full (away)
- Arm partial (away/night)
- Disarm
- Get alarm status
Usage
Create a client with:
from yalesmartalarmclient.client import YaleSmartAlarmClient
client = YaleSmartAlarmClient(username, password)
where username and password are your Yale Smart Alarm credentials.
Change the alarm state with:
client.arm_full()
client.arm_partial()
client.disarm()
or
client.set_alarm_state(<mode>)
where 'mode' is one of:
from yalesmartalarmclient.client import (YALE_STATE_ARM_PARTIAL,
YALE_STATE_DISARM,
YALE_STATE_ARM_FULL)
Is the alarm armed fully or partially:
client.is_armed() # == True
or return alarm status. eg.
client.get_armed_status() is YALE_STATE_ARM_FULL
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file yalesmartalarmclient-0.1.4.tar.gz
.
File metadata
- Download URL: yalesmartalarmclient-0.1.4.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f68dcdc08f8510d60022a1cd5a9d1900bd8f5cebb5d3ea186e0e359e67457031 |
|
MD5 | 31952fe70095c22722aad0b5909414ba |
|
BLAKE2b-256 | a86be032f09d512df747ce8dd9f5f382cf60339088c50c2ad3579642b2f10553 |
File details
Details for the file yalesmartalarmclient-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: yalesmartalarmclient-0.1.4-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11c8ab764451043422bae96011645c76560dff0580526e51f9ed343b36a796dc |
|
MD5 | 31697a01d696e40fa08ee212f683292d |
|
BLAKE2b-256 | b14aa6312f4c17c924fcec0130e9927e92bef87e8bebf00ba51aec29787f2a48 |