Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Meiantech, iAlarm, Antifurto365, AllarmiWireless and other alarm systems support

Project description

# Python client for iAlarm

Also compatible with Meiantech, Allarmi365, and others

## Usage example

#!/usr/bin/env python
import asyncio

from ialarmclient import IalarmClient

async def start():
ialarm = IalarmClient(
username="username", # <- Your alarm web interface username
password="password", # <- Your alarm web interface password
url="" # <- Your alarm web interface URL (no trailing slash)

# Refresh alarm status, to be called every time you need to read updated information
# May take up to 30-40 seconds the first time. Subsequent calls will be almost immediate.
await ialarm.refresh()

# Retrieve information about your alarm zones (name, status, etc...)
zones = await ialarm.get_zones()
for zone in zones:
if zone.type != ialarmclient.ZONE_TYPE_DISABLED:
print("Zone {} is {}".format(zone.number,
# Other information can be read (see IalarmZone)

# Retrieve alarm status (armed, disarmed, power failure, etc...)
status = await ialarm.get_status()

# Commands to arm/disarm your system
await ialarm.arm_stay()
await ialarm.arm_away()
await ialarm.disarm()
await ialarm.cancel_alarm()

# List all zones in alarm
status = await ialarm.get_status()
for alarmed_zone in status.alarmed_zones:
print("Zone {} is alarmed".format(

# Status information for your system
if status.power_source_failure:
print("Power failure")

if status.low_battery:
print("Low battery")

if status.panic_alarm:
print("Panic alarm triggered")

if status.arm_status == ialarmclient.STATUS_ARMED_AWAY:
print("System armed")
elif status.arm_status == ialarmclient.STATUS_ARMED_STAY:
print("System armed (STAY)")
elif status.arm_status == ialarmclient.STATUS_DISARMED:
print("System disarmed")

if __name__ == "__main__":
loop = asyncio.get_event_loop()


Project details

Download files

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

Files for ialarmclient-phoenix, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size ialarmclient_phoenix-1.0.0-py3-none-any.whl (6.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size ialarmclient-phoenix-1.0.0.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page