A simple library for the Visonic Alarm API.
Project description
Visonic Alarm Library
Information
A simple library for the Visonic PowerMaster API written in Python 3. It is only tested with a PowerMaster-10 using a PowerLink 3 IP module. The PowerLink 3 is a requirement for this library to work.
Installation
Install with pip3
$ sudo pip3 install visonicalarm
Code examples
Current status
Getting the current alarm status. Available states are 'armed_away', 'armed_home', 'arming_exit_delay_away', 'arming_exit_delay_home' or 'disarmed'.
#!/usr/bin/env python3
import visonicalarm
hostname = 'visonic.tycomonitor.com'
user_code = '1234'
user_id = '2d978962-daa6-4e18-a5e5-b4a99100bd3b'
panel_id = '123456'
partition = 'P1'
visonic_alarm = visonicalarm.connect(hostname, user_code, user_id, panel_id, partition)
current_status = visonic_alarm.status()
if current_status:
print(current_status)
Example output:
{'state': 'disarmed', 'ready_status': False, 'partition': 'ALL', 'is_connected': True, 'is_active': True, 'exit_delay': 30, 'session_token': '1a45ae0d-2d5e-4b19-9cec-f56612fa45de'}
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
visonicalarm-1.0.1.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for visonicalarm-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36a90cbf2ceae0bf3b8cf511d154e09f5aca4884d3c0819804715877314199fd |
|
MD5 | cb46eae50557ee4a995a9f33303b2fa6 |
|
BLAKE2b-256 | 8e5ef776d56f93e9af9ad5dc76f683373f8a2107ba8b40d5f2a6744fb5a3cbfd |