Syncing devices to the PLM

209 views
Skip to first unread message

Steve Manes

unread,
Dec 16, 2017, 12:47:25 PM12/16/17
to insteon-terminal
Hi.  I got a Raspberry Pi last week with the intent of building a home automation controller so I can move my 25+ Insteon devices off Indigo and into the Pi.  Towards that end I've installed Insteon Terminal and OpenHab2.  Both appear to be working.

There's a bit of an information no-mans-land between what I've done and the next step, which is to make those devices clickable in OpenHab.

Here's my list of devices in Insteon Terminal's init.py. For brevity's sake, I'll list only my three test devices:

modem       = Modem2413U("house_plm", "3c.4d.4f")

backyardFenceLights     = Switch2477S("backyard_fence_lights", "23.0e.f4")
backyardFloods          
= Dimmer2477D("backyard_floods", "03.74.60")
upstairsSconceSwitch    
= Keypad2487S("upstairs_sconce_switch", "05.7c.86")


These all respond to on() and off().  They appear in listDevices():

>>> listDevices()
backyard_floods                
03.74.60
backyard_fence_lights          
23.0e.f4
upstairs_sconce_switch        
05.7c.86

So I added them to OpenHab2's /items/home.items config:

Switch backyardFenceLights "Backyard Fence Lights" {insteonplm="23.0e.f4:F00.00.1D#switch"}
Switch backyardFloods "Backyard Flood Lights" { insteonplm="03.74.60#F00.00.04#switch" }
Switch upstairsSconceSwitch "Upstairs Hall Sconce" { insteonplm="05.7c.86:F00.00.14#switch" }

What I run the GUI in OpenHab2 I see the devices but no on/off switches, or at least nothing clickable:


So I went back to Insteon Terminal to see if there was an issue I overlooked.  I think I found it:

/home/pi/insteon-terminal# ./insteon-terminal
Insteon Terminal
Connecting
Connected
Terminal ready!
>>> modem.getdb()
Modem Link DB complete
>>>

There are no links in my 2413U PLM.  The links I gave Insteon Terminal were only local to that terminal session.

So my question is, how do I burn them into the modem?  I saw a message here about how to use Python to do this but I'm not a Python programmer so I don't know how to do it.  I also have a mix of both early and late generation Insteon devices here and from what I could gather from that thread there are different ways to do this.

I really can't do the "button dance" here because I have several InLine-Linc Insteon responders buried in the ceiling under heavy chandeliers.  I have their codes though.  In Indigo, you just search on the hex triplet and it identifies the device and device type for you and then syncs it to the PLM.  Is there something similar on open source?

Or is there a way to do this programmatically using Insteon Terminal?  I've read the docs and saw references to addController() and addResponder(), linkAsController, etc. but I'm not sure what they do or if they're even what I need.

Can someone give me some pointers on how to write these devices to the PLM?

Arup Mukherjee

unread,
Dec 16, 2017, 4:23:07 PM12/16/17
to insteon-terminal
I don't think there's a way to programmatically link devices in insteon terminal yet. There was a thread with a little info about how it might be possible earlier in the year: 


I'd also love to see it happen if it's possible. Unfortunately, there hasn't been any activity on the thread since January. 

Bernd Pfrommer

unread,
Dec 17, 2017, 3:27:49 PM12/17/17
to insteon-terminal
I *just* committed something to the insteon terminal that could help. Now the following should work:

myDevice.enterLinkingModeExtended(0x01)
modem.linkAsResponder(0x01)
myDevice.enterLinkingModeExtended(0x01)
modem.linkAsController(0x01)

Should link the modem both ways to the device "myDevice" (your switch or whatever it is). You need to create a myDevice in your init.py like so:

myDevice = Switch2477S("myDevice", "24.02.dc")

Sometimes the linking doesn't immediately work, you'll have to try a couple of times. Best try it first with a device that is nearby so you can hear it beep when it links (usually your modem beeps as well).

Note: this only works for the newer i2cs devices.

Bernd
Reply all
Reply to author
Forward
0 new messages