Hello,
I am running openHAB 1.8 on a BananaPro board running Raspbian. I have the BananaPro running an SSD and successfully moved the OS over to the SDD and boot off that now. From an OS/board perspective, everything is running great.
I have an Insteon USB PLM 2413U hardware rev 2.1 and a 2457D2 dimmer I’d like to get running on openHab. I’ve linked the Insteon gear manually and also tested it with HomeLinc on my Win10 machine. Everything works great on Win10 aside from the fact that HomeLinc appears to be a bit dated and took some hacking to detect my modem. (My PLM hardware revision seems to be too new for HomeLinc. I had read in another forum that HomeLinc was deprecated.)
I installed openHAB via apt-get, installed the Insteon binding, configured my sitemap and items and nothing works. I’m not seeing any errors in the logs. I’m hoping someone can give me some pointers of what to try next.
Here are some of the things I’ve looked at so far:
I verified that my PLM is on ttyUSB0. I didn’t create a symlink yet. I only have 1 USB device plugged in (the PLM) and it hasn’t changed on reboot.
bananapi@lemaker ~ $ dmesg | grep tty
[ 0.000000] Kernel command line: console=ttyS0,115200 console=tty0 consoleblank=0 disp.screen0_output_mode=EDID:1280x720p60 hdmi.audio=EDID:0 root=/dev/sda1 rootfstype=ext4 elevator=deadline rootwait
[ 0.000000] console [tty0] enabled
[ 0.695641] sunxi-uart.0: ttyS0 at MMIO 0x1c28000 (irq = 33) is a U6_16550A
[ 1.362597] console [ttyS0] enabled
[ 1.402845] sunxi-uart.2: ttyS1 at MMIO 0x1c28800 (irq = 35) is a U6_16550A
[ 1.446470] sunxi-uart.4: ttyS2 at MMIO 0x1c29000 (irq = 49) is a U6_16550A
[ 1.490087] sunxi-uart.7: ttyS3 at MMIO 0x1c29c00 (irq = 52) is a U6_16550A
[ 16.320377] usb 3-1: FTDI USB Serial Device converter now attached to ttyUSB0
bananapi@lemaker ~ $ grep 'usb 3-1' /var/log/syslog.1
Jan 28 15:51:20 lemaker kernel: [ 2.434308] usb 3-1: new full-speed USB device number 2 using sw-ohci
Jan 28 15:51:20 lemaker kernel: [ 2.704618] usb 3-1: New USB device found, idVendor=0403, idProduct=6001
Jan 28 15:51:20 lemaker kernel: [ 2.781788] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jan 28 15:51:20 lemaker kernel: [ 2.792265] usb 3-1: Product: FT232R USB UART
Jan 28 15:51:20 lemaker kernel: [ 2.817635] usb 3-1: Manufacturer: FTDI
Jan 28 15:51:20 lemaker kernel: [ 2.963012] usb 3-1: SerialNumber: A403KEYW
Jan 28 15:51:20 lemaker kernel: [ 16.220940] usb 3-1: Detected FT232RL
Jan 28 15:51:20 lemaker kernel: [ 16.261143] usb 3-1: Number of endpoints 2
Jan 28 15:51:20 lemaker kernel: [ 16.320666] usb 3-1: Endpoint 1 MaxPacketSize 64
Jan 28 15:51:20 lemaker kernel: [ 16.364157] usb 3-1: Endpoint 2 MaxPacketSize 64
Jan 28 15:51:20 lemaker kernel: [ 16.382376] usb 3-1: Setting MaxPacketSize 64
Jan 28 15:51:20 lemaker kernel: [ 16.415491] usb 3-1: FTDI USB Serial Device converter now attached to ttyUSB0
I think I am OK from an OS/driver spective. I ran the command below and hit some buttons on the dimmer and got some output.
bananapi@lemaker ~ $ stty raw -echo < /dev/ttyUSB0; cat -vte /dev/ttyUSB0
^AM-D^M^@^KM-p^AM-D^M^@^KM-p^AM-DM-MM-^B^@M-p^AM-D^M^@+M-p^AM-D^M^@^KM-p^AM-D^M^@^KM-p^AM-DM-MM-^B^@M-p^AM-D^M^@+M-p^AM-D^M^@+M-p^AM-D^M^@+M-p^AM-DM-MM-^B M-p^AM-D-^@+M-p^AM-D^M^@^KM-p^AM-D^M^@^KM-p^AM-DM-MM-^B^@M-p^AM-D^M^@+M-p^AM-D^M^@+M-p^AM-D^M^@+M-p^AM-DM-MM-^B M-p^AM-D-^@+M-p^AM-D^M^@^KM-p^AM-D^M^@^KM-p^AM-DM-MM-^B^@M-p^AM-D^M^@+M-p^AM-D^M^@+M-p^AM-D^M^@+M-p^AM-DM-MM-^B M-p^AM-D-^@+M-p^C
I had read in other threads that premissions to /dev/ttyUSB0 could be a problem. I think don’t I have issues there.
bananapi@lemaker ~ $ ls -ld /dev/ttyUSB0
crw-rw---T 1 root dialout 188, 0 Jan 28 15:51 /dev/ttyUSB0
bananapi@lemaker ~ $ grep 'dialout' /etc/group
dialout:x:20:bananapi,openhab
I tried adding the SerialPort setting to the java args in the startup script:
bananapi@lemaker ~ $ less /etc/init.d/openhab
...
JAVA_ARGS_DEFAULT="-Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0 \
-Dosgi.clean=true \
-Declipse.ignoreApp=true \
-Dosgi.noShutdown=true \
-Djetty.port=${HTTP_PORT} \
...
Here’s what I see in the openHAB and insteon logs:
bananapi@lemaker ~ $ less /var/log/openhab/openhab.log
2016-01-28 15:56:15.128 [INFO ] [.o.core.internal.CoreActivator] - openHAB runtime has been started (v1.8.0).
2016-01-28 15:56:22.553 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl] - mDNS service has been started
2016-01-28 15:56:22.758 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl] - Service Discovery initialization completed.
2016-01-28 15:56:28.820 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'insteon.items'
2016-01-28 15:56:40.289 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'default.sitemap'
2016-01-28 15:56:40.289 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'default.sitemap'
2016-01-28 15:56:42.339 [INFO ] [penhab.io.rest.RESTApplication] - Started REST API at /rest
2016-01-28 15:56:47.923 [INFO ] [.o.u.w.i.servlet.WebAppServlet] - Started Classic UI at /classicui/openhab.app
2016-01-28 15:56:56.216 [INFO ] [.service.AbstractActiveService] - InsteonPLM has been started
bananapi@lemaker ~ $ less /var/log/openhab/insteonplm.log
2016-01-28 15:56:56.042 INFO o.o.b.i.InsteonPLMActivator[:34] - Insteon PLM binding has been started.
2016-01-28 15:56:56.139 TRACE o.o.b.i.InsteonPLMGenericBindingProvider[:78] - processing item "TestDimmer" read from .items file with cfg string 35.38.F6:F00.00.19#dimmer
2016-01-28 15:56:56.192 DEBUG o.o.b.i.InsteonPLMActiveBinding[:158] - activating binding
2016-01-28 15:56:56.197 DEBUG o.o.b.i.InsteonPLMActiveBinding[:265] - global binding config has arrived.
2016-01-28 15:56:56.200 INFO o.o.b.i.InsteonPLMActiveBinding[:290] - poll interval set to 300000 per config file
2016-01-28 15:56:56.202 INFO o.o.b.i.InsteonPLMActiveBinding[:304] - setting modem db retry timeout to 120s
2016-01-28 15:56:56.204 INFO o.o.b.i.InsteonPLMActiveBinding[:313] - dead device timeout set to 3000s
2016-01-28 15:56:56.205 DEBUG o.o.b.i.InsteonPLMActiveBinding[:269] - configuration update complete!
2016-01-28 15:56:56.209 DEBUG o.o.b.i.InsteonPLMActiveBinding[:352] - initializing...
2016-01-28 15:56:56.211 INFO o.o.b.i.InsteonPLMActiveBinding[:364] - config: modem_db_retry_timeout -> 120000
2016-01-28 15:56:56.212 INFO o.o.b.i.InsteonPLMActiveBinding[:364] - config: poll_interval -> 300000
2016-01-28 15:56:56.214 INFO o.o.b.i.InsteonPLMActiveBinding[:364] - config: service.pid -> org.openhab.insteonplm
2016-01-28 15:56:56.219 INFO o.o.b.i.InsteonPLMActiveBinding[:364] - config: port_0 -> /dev/ttyUSB0
2016-01-28 15:56:56.232 INFO o.o.b.i.InsteonPLMActiveBinding[:670] - devices: 0 configured, 0 polling, msgs received: 0
2016-01-28 15:56:56.235 DEBUG o.o.b.i.internal.driver.Poller[:176] - starting poll thread.
And lastly, here is my openHAB config:
bananapi@lemaker ~ $ less /etc/openhab/configurations/openhab.cfg
...
insteonplm:port_0=/dev/ttyUSB0
insteonplm:poll_interval=300000
insteonplm:modem_db_retry_timeout=120000
...
bananapi@lemaker ~ $ less /etc/openhab/configurations/sitemaps/default.sitemap
sitemap default label="Lions' Den"
{
Frame {
Group item=gTF label="Top Floor" icon="firstfloor"
Group item=gMF label="Main Floor" icon="groundfloor"
Group item=gBM label="Basement" icon="cellar"
Group item=gOD label="Outdoors" icon="garden"
}
}
bananapi@lemaker ~ $ less /etc/openhab/configurations/items/insteon.items
/* Group Definitions */
Group All
Group gTF (All)
Group gMF (All)
Group gBM (All)
Group gOD (All)
Group gTF_Office "Office" <office> (gTF)
/* Office Group */
/* Insteon 2457D2 Lamp Dimmer */
Dimmer TestDimmer "Test Dimmer" (gTF_Office) {insteonplm="35.38.F6:F00.00.19#dimmer"}
On my openHab site, I can drill into Top Floor > Office and see my dimmer. The slider for the dimmer doesn’t move. Any suggestions for what to look at next?
Thanks!