from console_commands import * from keypad2487S import * from thermostat2441TH import * from modem2413U import * from modem2448A7 import * from switch2477S import * from dimmer2477D import * from ledBulb2672 import * # # if you are using a hub, replace login and password below with your # hub login and password. Note: this is not the email address and password to # the insteon web site, but the login/password on the back of the hub # def connectToMyHub(): """connects to my insteon hub modem at pre-defined address""" connectToHub("insteonhub", 25105, 1000, "MyHubLogin", "MyHubPassword") #If you are using a legacy hub (pre-2014 hub) def connectToMyLegacyHub(): """connects to my insteon hub modem at pre-defined address""" connectToLegacyHub("insteonhub", 9761) # syntax is address, port (generally 9761) def connectToMySerial(): """connects to my modem on pre-defined serial port""" connectToSerial("/dev/insteon") # # uncomment correct line, depending on if you have a PLM modem or a hub (or a legacy hub) # to automatically connect on startup. You will also have to change the info in the corresponding connectToMy...() function # #connectToMySerial() #connectToMyHub() #connectToMyLegacyHub() # # Now define the devices you want to work with. For a list of # available devices, look at the source code in the "python" directory # # # Example device definitions # kp = Keypad2487S("office_keypad", "30.0d.9f") # th = Thermostat2441TH("kitchen_thermostat", "32.f7.2c") # modem = Modem2413U("test_modem", "23.9b.65") # usb = Modem2448A7("usb_adapter", "52.9c.45") # closetLight = Switch2477S("closetLight", "25.65.d6") # dimmer = Dimmer2477D("dining_room_dinner", "20.ab.26") # ledBulb = LEDBulb2672("ledBulb", "21.EB.DD");