A simple library for Sector Alarm API written in Python 3.
The code is heavily based on this project: https://github.com/the-louie/sectoralarm
Install with pip3
$ sudo pip3 install sectoralarm
Getting the current alarm status. Returned values are 'armed', 'partialarmed' or 'disarmed'.
#!/usr/bin/env python3
import sectoralarm
email = "[email protected]"
password = "SuperSecretPassword!"
site_id = "01234567"
sector_alarm = sectoralarm.connect(email, password, site_id)
current_status = sector_alarm.status()
if current_status:
print(current_status)
Example output:
{"AlarmStatus": "disarmed"}