I am using a hub. It took some experimentation, but I did get it to work. My config is:
def connectToMyHub():
"""connects to my insteon hub modem at pre-defined address"""
connectToHub("xxx.xxx.xxx.xxx", 25105, 1000, "AAAAAAAA", "PPPPPPPP")
Note -
where
xxx.xxx.xxx.xxx is the IP address to my hub.
AAAAAAAA is the username (from the label on the hub)
PPPPPPPP is the password (from the label on the hub)
Also, I have the connectToMySerial() and connectToMyLegacyHub() commented out. My hub is the newer 2245.222
Hope that helps you.