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.
ISYController object provides methods to get devices and programs. GetDevice and GetProgram return
ISYProgram objects, respectively, and those objects provide methods to turn devices on/off, run programs, etc.
from simpleisy import ISYController isy = ISYController("220.127.116.11", "admin", "password") dev = isy.GetDevice("Living room lights") print dev.GetState() dev.TurnOn()
You can also use device/program commands more directly if you want by directly calling
from simpleisy import ISYController isy = ISYController("18.104.22.168", "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")