Hi. I'm new to this... but my ultimate goals is to be able to make my FanLinc work with my HomeBridge. All of this is done on a Raspberry Pi.
When I run Insteon Terminal, I get the following results:
Insteon Terminal
Connecting
Connected
Failed to initialize python interpreter:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "./init.py", line 45, in <module>
fan = falling("ceiling_fan", "14.9F.E6")
NameError: name 'fanlinc' is not defined
I have also tried "FanLinc" with the camel casing, but same result (other than the cap letters)
My init.py file is edited as follows. By the way, I have a 2413U modem I am using:
from console_commands import *from keypad2487S import *from thermostat2441TH import *from modem2413U 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/ttyUSB0")## 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##modem = Modem2413U("test modem", "13.AD.EC")fan = fanlinc("ceiling_fan", "14.9F.E6")# Example device definitions# kp = Keypad2487S("office_keypad", "30.0d.9f")# th = Thermostat2441TH("kitchen_thermostat", "32.f7.2c")# modem = Modem2413U("test_modem", "23.9b.65")# closetLight = Switch2477S("closetLight", "25.65.d6")# dimmer = Dimmer2477D("dining_room_dinner", "20.ab.26")# ledBulb = LEDBulb2672("ledBulb", "21.EB.DD");
Any help is welcomed!