Skip to main content

Python API for Universal Devices ISY994 Insteon controller

Project description

Python library for Universal Devices ISY994 Insteon/ZWave controller hub

This library transforms the XML from the ISY into more pythonic data structures and provides both an object model interface as well as a more procedural/lower interface for commands.

Usage

The ISYController object provides methods to get devices and programs. GetDevice and GetProgram return ISYDevice and ISYProgram objects, respectively, and those objects provide methods to tunr devices on/off, run programs, etc.

from simpleisy import ISYController
isy = ISYController("1.2.3.4", "admin", "password")
dev = isy.GetDevice("Living room lights")
print dev.GetState()
dev.TurnOn()

Output:

Off

You can also use device/program commands more directly if you want by directly calling NodeCommand or ProgramCommand

from simpleisy import ISYController
isy = ISYController("1.2.3.4", "admin", "password")

node_address = "1A 2B 3C"

# Turn on the device
isy.NodeCommand(node_address, "DON")

# Turn off the device
isy.NodeCommand(node_address, "DOF")

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

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

Files for simpleisy, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size simpleisy-1.0.tar.gz (6.0 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