[SOLVED] InsteonPLM binding for 2413U on MacOS

I’ve got a decent-sized Insteon set up here (23 devices) which is currently running on Indigo 6 without problems. I discovered OpenHab this afternoon and was intrigued enough to download and install it. In other words, I’m Level 0 Rookie with this stuff.

I installed the InsteonPLM driver but it doesn’t seem to recognize the device. Indigo has no problems with it. Here’s my log:

19:03:35.233 [WARN ] [rg.eclipse.smarthome.core.net.NetUtil] - Found multiple local interfaces - ignoring 172.16.112.1
19:03:35.238 [WARN ] [rg.eclipse.smarthome.core.net.NetUtil] - Found multiple local interfaces - ignoring 192.168.1.3
19:03:37.135 [INFO ] [rthome.model.lsp.internal.ModelServer] - Language Server started on port 5007
19:03:37.589 [WARN ] [rg.eclipse.smarthome.core.net.NetUtil] - Found multiple local interfaces - ignoring 172.16.112.1
19:03:37.591 [WARN ] [rg.eclipse.smarthome.core.net.NetUtil] - Found multiple local interfaces - ignoring 192.168.1.3
19:03:37.611 [INFO ] [i.dashboard.internal.DashboardService] - Started dashboard at http://172.16.6.1:8080
19:03:37.612 [INFO ] [i.dashboard.internal.DashboardService] - Started dashboard at https://172.16.6.1:8443
19:03:37.755 [INFO ] [.basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
19:03:37.774 [INFO ] [marthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
19:03:37.798 [INFO ] [bpanel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
19:03:37.818 [INFO ] [inding.insteonplm.InsteonPLMActivator] - Insteon PLM binding has been started.
19:03:37.842 [INFO ] [ng.insteonplm.InsteonPLMActiveBinding] - dead device timeout set to 3000s
19:03:37.844 [INFO ] [ng.insteonplm.InsteonPLMActiveBinding] - config: port_0 -> COM1
19:03:37.844 [INFO ] [ab.core.service.AbstractActiveService] - InsteonPLM has been started
19:03:37.849 [INFO ] [ng.insteonplm.InsteonPLMActiveBinding] - devices: 0 configured, 0 polling, msgs received: 0
19:03:37.855 [INFO ] [ng.insteonplm.InsteonPLMActiveBinding] - config: service.pid -> org.openhab.insteonplm
19:03:39.882 [ERROR] [eonplm.internal.driver.SerialIOStream] - got no such port for COM1
19:03:39.882 [ERROR] [ng.insteonplm.InsteonPLMActiveBinding] - initialization complete, but found no ports!

The server is a Mac Pro cylinder (in a 192.168 LAN) so it has no serial ports, per se. How should this be set up in the insteonplm.cfg file? I read another post here to set it up at port_0=COM5 but I got the same error for COM5.

COM* is for Windows. Maybe this will help: https://stackoverflow.com/questions/12254378/how-to-find-the-serial-port-number-on-mac-os-x

I know. I wasn’t sure if OpenHab compensated for this in the MacOS tarball. I started rummaging around in /dev/ttys and found the correct port. Even though Indigo was shut down it still had a daemon sitting on the USB serial port, /dev/tty.usbserial-A704EOU7. I had to kill that and then the log was happy.

21:54:58.673 [WARN ] [rg.eclipse.smarthome.core.net.NetUtil] - Found multiple local interfaces - ignoring 172.16.112.1
21:54:58.678 [WARN ] [rg.eclipse.smarthome.core.net.NetUtil] - Found multiple local interfaces - ignoring 192.168.1.3
21:55:00.586 [INFO ] [rthome.model.lsp.internal.ModelServer] - Language Server started on port 5007
21:55:00.957 [WARN ] [rg.eclipse.smarthome.core.net.NetUtil] - Found multiple local interfaces - ignoring 172.16.112.1
21:55:00.958 [WARN ] [rg.eclipse.smarthome.core.net.NetUtil] - Found multiple local interfaces - ignoring 192.168.1.3
21:55:00.983 [INFO ] [i.dashboard.internal.DashboardService] - Started dashboard at http://172.16.6.1:8080
21:55:00.984 [INFO ] [i.dashboard.internal.DashboardService] - Started dashboard at https://172.16.6.1:8443
21:55:01.122 [INFO ] [.basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
21:55:01.149 [INFO ] [marthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
21:55:01.203 [INFO ] [bpanel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
21:55:01.225 [INFO ] [inding.insteonplm.InsteonPLMActivator] - Insteon PLM binding has been started.
21:55:01.255 [INFO ] [ng.insteonplm.InsteonPLMActiveBinding] - dead device timeout set to 3000s
21:55:01.257 [INFO ] [ng.insteonplm.InsteonPLMActiveBinding] - config: port_0 -> /dev/tty.usbserial-A704EOU7
21:55:01.257 [INFO ] [ab.core.service.AbstractActiveService] - InsteonPLM has been started
21:55:01.260 [INFO ] [ng.insteonplm.InsteonPLMActiveBinding] - devices: 0 configured, 0 polling, msgs received: 0
21:55:01.265 [INFO ] [ng.insteonplm.InsteonPLMActiveBinding] - config: service.pid -> org.openhab.insteonplm
21:55:01.307 [INFO ] [eonplm.internal.driver.SerialIOStream] - successfully opened port /dev/tty.usbserial-A704EOU7

But the browser still didn’t show it as a linked device. It found lots of Insteon settings in the 2413U’s cache from Indigo. Do this cache have to blown before OpenHab will use the device?

21:55:02.412 [INFO ] [ng.insteonplm.InsteonPLMActiveBinding] - modem database has 35 entries!
21:55:02.413 [INFO ] [ng.insteonplm.InsteonPLMActiveBinding] - device 1A.1D.99 found in the modem database, but is not configured as an item and the modem responds to groups [0x01].
21:55:02.413 [INFO ] [ng.insteonplm.InsteonPLMActiveBinding] - device 0A.36.3D found in the modem database, but is not configured as an item and the modem responds to groups [0x01].

You’ll have to manually configure each device. For example, here’s a snippet of what’s in my conf/items/default.items:

Switch mKitchenUnderCounter "Under Counter Lights"   {insteonplm="24.31.81:F00.00.12#switch"}
Dimmer mKitchenCeiling      "Kitchen Ceiling Lights" {insteonplm="23.9F.55:F00.00.11#dimmer"}

See http://docs.openhab.org/addons/bindings/insteonplm1/readme.html for more examples.

1 Like