InsteonPLM on raspberry pi

when i run cu -l /dev/ttyUSB0 returns command not found, is there a package i need installed?
echo “foo” > /dev/ttyUSB0 returns nothing

I believe on ubuntu 14.04 the package
to install is called “cu”. Don’t know about raspian.

  Well, that you are not getting an error when you echo to
  /dev/ttyUSB0 is a good sign.


  Try




  cat /dev/ttyUSB0




  and watch for characters on the console, or




  cat /dev/ttyUSB0  > some_file_name.txt &




  and see if the filename grows. That would tell you if messages are
  coming in.


  You may have to flip some light switches to generate traffic.




  Are there any other usb serial devices attached that could show up
  under /dev/ttyUSB0?

I installed cu and when i run it i do get data when pressing buttons on switches around the house

I also tried cat /dev/ttyUSB0 which gets the same resault.

Ok, so that checks out.

  Now try and run openhab under the same user id that you ran the
  previous tests under (hopefully not root, that's insecure).


  Let me know what the insteonplm debug log says.




  If you have energy for it, there is another tool, more primitive
  than openhab, that shares the low-level interface with the
  insteonplm binding. You may want to see if you can get that one to
  work:

https://github.com/pfrommerd/insteon-terminal

when I run openhab without sudo it returns:

Launching the openHAB runtime…

Invalid Configuration LocationLocking is not possible in the directory "/opt/openhab/server/configuration/org.eclipse.osgi". A common reason is that the file system or Runtime Environment does not support file locking for that location. Please choose a different location, or disable file locking passing "-Dosgi.locking=none" as a VM argument. /opt/openhab/server/configuration/org.eclipse.osgi/.manager/.fileTableLock (Permission denied) ./start.sh: 34: ./start.sh: -Djna.boot.library.path=/usr/lib/jni: not found ./start.sh: 35: ./start.sh: -Dgnu.io.rxtx.SerialPorts=/dev/USBrfxcom:/dev/ttyUSB0: not found

with sudo here is the complete log from startup:

2015-09-24 12:22:08.039 [DEBUG] [.s.internal.SchedulerActivator] - Scheduler has been started.
2015-09-24 12:22:09.086 [DEBUG] [o.config.core.ConfigDispatcher] - Processing openHAB default configuration file ‘/opt/openhab/configurations/openhab_default.cfg’.
2015-09-24 12:22:09.844 [DEBUG] [o.config.core.ConfigDispatcher] - Processing openHAB main configuration file ‘/opt/openhab/configurations/openhab.cfg’.
2015-09-24 12:22:10.064 [DEBUG] [.o.core.internal.CoreActivator] - UUID file already exists at ‘/opt/openhab/webapps/static/uuid’ with content ‘16859181-b90a-4125-8815-7cb1fa0c72ec’
2015-09-24 12:22:10.073 [DEBUG] [.o.core.internal.CoreActivator] - Created file ‘/opt/openhab/webapps/static/version’ with content ‘1.7.1’
2015-09-24 12:22:10.077 [INFO ] [.o.core.internal.CoreActivator] - openHAB runtime has been started (v1.7.1).
2015-09-24 12:22:10.466 [DEBUG] [a.internal.AutoUpdateActivator] - AutoUpdate binding has been started.
2015-09-24 12:22:14.195 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘items’
2015-09-24 12:22:28.912 [DEBUG] [.p.i.PersistenceModelActivator] - Registered ‘persistence’ configuration parser
2015-09-24 12:22:29.141 [DEBUG] [.c.t.i.TransformationActivator] - Transformation Service has been started.
2015-09-24 12:22:29.656 [DEBUG] [m.internal.MultimediaActivator] - Multimedia I/O bundle has been started.
2015-09-24 12:22:30.008 [DEBUG] [.s.i.DiscoveryServiceActivator] - Discovery service has been started.
2015-09-24 12:22:30.107 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl] - mDNS service has been started
2015-09-24 12:22:30.543 [DEBUG] [.io.transport.mqtt.MqttService] - Starting MQTT Service…
2015-09-24 12:22:31.462 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl] - Service Discovery initialization completed.
2015-09-24 12:22:31.742 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘sitemaps’
2015-09-24 12:22:31.758 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘persistence’
2015-09-24 12:22:31.763 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘rules’
2015-09-24 12:22:31.778 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘scripts’
2015-09-24 12:22:31.784 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘items’
2015-09-24 12:22:33.508 [DEBUG] [.i.internal.ItemModelActivator] - Registered ‘item’ configuration parser
2015-09-24 12:22:35.444 [DEBUG] [o.o.c.i.items.ItemRegistryImpl] - Item provider ‘GenericItemProvider’ has been added.
2015-09-24 12:22:41.799 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘sitemaps’
2015-09-24 12:22:41.812 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘persistence’
2015-09-24 12:22:41.830 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘rules’
2015-09-24 12:22:41.834 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘scripts’
2015-09-24 12:22:41.839 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘items’
2015-09-24 12:22:45.597 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model ‘Insteon.items’
2015-09-24 12:22:48.175 [DEBUG] [i.internal.GenericItemProvider] - Processing binding configs for items from model ‘Insteon.items’
2015-09-24 12:22:48.298 [DEBUG] [i.internal.GenericItemProvider] - Read items from model ‘Insteon.items’
2015-09-24 12:22:50.454 [DEBUG] [.o.m.s.i.SitemapModelActivator] - Registered ‘sitemap’ configuration parser
2015-09-24 12:22:51.551 [DEBUG] [io.rest.internal.RESTActivator] - REST API has been started.
2015-09-24 12:22:58.327 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘sitemaps’
2015-09-24 12:23:01.138 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model ‘default.sitemap’
2015-09-24 12:23:03.312 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model ‘mine.sitemap’
2015-09-24 12:23:03.415 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘persistence’
2015-09-24 12:23:03.440 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘rules’
2015-09-24 12:23:03.444 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘scripts’
2015-09-24 12:23:03.450 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘items’
2015-09-24 12:23:10.593 [INFO ] [penhab.io.rest.RESTApplication] - Started REST API at /rest
2015-09-24 12:23:10.620 [DEBUG] [o.o.i.s.i.DiscoveryServiceImpl] - Registering new service _openhab-server._tcp.local. at port 8080
2015-09-24 12:23:13.450 [DEBUG] [o.o.i.s.i.DiscoveryServiceImpl] - Registering new service _openhab-server-ssl._tcp.local. at port 8443
2015-09-24 12:23:13.464 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘sitemaps’
2015-09-24 12:23:13.478 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘persistence’
2015-09-24 12:23:13.483 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘rules’
2015-09-24 12:23:13.490 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘scripts’
2015-09-24 12:23:13.500 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘items’
2015-09-24 12:23:16.984 [DEBUG] [ui.internal.proxy.ProxyServlet] - Starting up proxy servlet at /proxy
2015-09-24 12:23:17.128 [DEBUG] [ui.internal.chart.ChartServlet] - Starting up chart servlet at /chart
2015-09-24 12:23:17.191 [DEBUG] [u.i.chart.DefaultChartProvider] - Starting up default chart provider.
2015-09-24 12:23:17.646 [INFO ] [.o.u.w.i.servlet.WebAppServlet] - Started Classic UI at /openhab.app
2015-09-24 12:23:17.666 [DEBUG] [.w.internal.servlet.CmdServlet] - Starting up CMD servlet at /CMD
2015-09-24 12:23:23.411 [DEBUG] [.r.internal.RuleModelActivator] - Registered ‘rules’ configuration parser
2015-09-24 12:23:23.511 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘sitemaps’
2015-09-24 12:23:23.517 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘persistence’
2015-09-24 12:23:23.528 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘rules’
2015-09-24 12:23:23.540 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘scripts’
2015-09-24 12:23:23.545 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘items’
2015-09-24 12:23:23.589 [DEBUG] [m.r.internal.engine.RuleEngine] - Started rule engine
2015-09-24 12:23:28.001 [INFO ] [insteonplm.InsteonPLMActivator] - Insteon PLM binding has been started.
2015-09-24 12:23:28.105 [DEBUG] [i.internal.GenericItemProvider] - Start processing binding configuration of Item ‘lampRight (Type=DimmerItem, State=Uninitialized)’ with ‘InsteonPLMGenericBindingProvider’ reader.
2015-09-24 12:23:28.140 [DEBUG] [i.internal.GenericItemProvider] - Start processing binding configuration of Item ‘lampLeft (Type=DimmerItem, State=Uninitialized)’ with ‘InsteonPLMGenericBindingProvider’ reader.
2015-09-24 12:23:28.145 [DEBUG] [i.internal.GenericItemProvider] - Start processing binding configuration of Item ‘DeskLamp (Type=DimmerItem, State=Uninitialized)’ with ‘InsteonPLMGenericBindingProvider’ reader.
2015-09-24 12:23:28.150 [DEBUG] [i.internal.GenericItemProvider] - Start processing binding configuration of Item ‘jorylmp (Type=DimmerItem, State=Uninitialized)’ with ‘InsteonPLMGenericBindingProvider’ reader.
2015-09-24 12:23:28.264 [DEBUG] [.o.b.i.InsteonPLMActiveBinding] - activating binding
2015-09-24 12:23:28.278 [DEBUG] [.o.b.i.InsteonPLMActiveBinding] - global binding config has arrived.
2015-09-24 12:23:28.283 [INFO ] [.o.b.i.InsteonPLMActiveBinding] - dead device timeout set to 3000s
2015-09-24 12:23:28.287 [DEBUG] [.o.b.i.InsteonPLMActiveBinding] - configuration update complete!
2015-09-24 12:23:28.295 [DEBUG] [.o.b.i.InsteonPLMActiveBinding] - initializing…
2015-09-24 12:23:28.300 [INFO ] [.o.b.i.InsteonPLMActiveBinding] - config: port_0 -> /dev/ttyUSB0 (Linux, with usb based PLM modem)
2015-09-24 12:23:28.305 [INFO ] [.service.AbstractActiveService] - InsteonPLM has been started
2015-09-24 12:23:28.352 [INFO ] [.o.b.i.InsteonPLMActiveBinding] - devices: 0 configured, 0 polling, msgs received: 0
2015-09-24 12:23:28.356 [DEBUG] [o.o.b.i.internal.driver.Poller] - starting poll thread.
2015-09-24 12:23:28.589 [DEBUG] [o.o.b.i.internal.driver.Driver] - added new port: port_0 /dev/ttyUSB0 (Linux, with usb based PLM modem)
2015-09-24 12:23:28.593 [INFO ] [.o.b.i.InsteonPLMActiveBinding] - config: service.pid -> org.openhab.insteonplm
2015-09-24 12:23:28.765 [DEBUG] [.o.b.i.InsteonPLMActiveBinding] - setting driver listener
2015-09-24 12:23:28.769 [DEBUG] [.o.b.i.InsteonPLMActiveBinding] - starting 0 ports
2015-09-24 12:23:28.779 [DEBUG] [o.o.b.i.internal.driver.Port ] - starting port /dev/ttyUSB0 (Linux, with usb based PLM modem)
2015-09-24 12:23:28.973 [ERROR] [.o.b.i.i.driver.SerialIOStream] - got no such port for /dev/ttyUSB0 (Linux, with usb based PLM modem)
2015-09-24 12:23:28.977 [DEBUG] [o.o.b.i.internal.driver.Port ] - failed to open port /dev/ttyUSB0 (Linux, with usb based PLM modem)
2015-09-24 12:23:28.981 [DEBUG] [.o.b.i.InsteonPLMActiveBinding] - ports started
2015-09-24 12:23:28.985 [ERROR] [.o.b.i.InsteonPLMActiveBinding] - initialization complete, but found no ports!
2015-09-24 12:23:28.997 [DEBUG] [.o.b.i.InsteonPLMActiveBinding] - item lampLeft binding changed: addr=27.2A.C7|prodKey:F00.00.05|feature:dimmer
2015-09-24 12:23:29.318 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - loaded 36 devices:
2015-09-24 12:23:29.326 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - 0x000041 ->pk:0x000041|model:2484DWH8|desc:KeypadLinc Countdown Timer|features:lastheardfrom=GenericLastTime:dimmer=GenericDimmer|groups
2015-09-24 12:23:29.330 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - F00.00.0A ->pk:F00.00.0A|model:2852-222|desc:Leak Sensor|features:contact=LeakSensorContact:lastheardfrom=GenericLastTime|groups
2015-09-24 12:23:29.334 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - F00.00.0D ->pk:F00.00.0D|model:2634-222|desc:On/Off Dual-Band Outdoor Module|features:lastheardfrom=GenericLastTime:switch=GenericSwitch|groups
2015-09-24 12:23:29.339 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - 0x000049 ->pk:0x000049|model:2843-222|desc:Wireless Open/Close Sensor|features:contact=GenericContact:lastheardfrom=GenericLastTime|groups
2015-09-24 12:23:29.343 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - F00.00.0C ->pk:F00.00.0C|model:2476D|desc:SwitchLinc Dimmer|features:lastheardfrom=GenericLastTime:dimmer=GenericDimmer|groups
2015-09-24 12:23:29.347 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - F00.00.0B ->pk:F00.00.0B|model:2672-422|desc:LED Dimmer|features:lastheardfrom=GenericLastTime:dimmer=GenericDimmer|groups
2015-09-24 12:23:29.352 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - 0x000068 ->pk:0x000068|model:2472D|desc:OutletLincDimmer|features:lastheardfrom=GenericLastTime:dimmer=GenericDimmer|groups
2015-09-24 12:23:29.356 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - 0x000045 ->pk:0x000045|model:2413U|desc:PowerLinc 2413U USB modem|features:control=GenericModemControl|groups
2015-09-24 12:23:29.362 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - 0x00004A ->pk:0x00004A|model:2842-222|desc:Motion Sensor|features:data=MotionSensorData:contact=WirelessMotionSensorContact:lastheardfrom=GenericLastTime|groups
2015-09-24 12:23:29.367 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - F00.00.01 ->pk:F00.00.01|model:2477D|desc:SwitchLinc Dimmer|features:lastheardfrom=GenericLastTime:dimmer=GenericDimmer|groups
2015-09-24 12:23:29.375 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - F00.00.05 ->pk:F00.00.05|model:2456D3|desc:LampLinc V2|features:lastheardfrom=GenericLastTime:dimmer=GenericDimmer|groups
2015-09-24 12:23:29.379 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - F00.00.04 ->pk:F00.00.04|model:2876S|desc:ICON Switch|features:lastheardfrom=GenericLastTime:switch=GenericSwitch|groups
2015-09-24 12:23:29.383 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - F00.00.03 ->pk:F00.00.03|model:2845-222|desc:Hidden Door Sensor|features:data=HiddenDoorSensorData:contact=WirelessMotionSensorContact:lastheardfrom=GenericLastTime|groups
2015-09-24 12:23:29.388 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - F00.00.02 ->pk:F00.00.02|model:2477S|desc:SwitchLinc Switch|features:lastheardfrom=GenericLastTime:switch=GenericSwitch|groups
2015-09-24 12:23:29.392 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - F00.00.09 ->pk:F00.00.09|model:2458-A1|desc:MorningLinc RF Lock Controller|features:switch=GenericSwitch|groups
2015-09-24 12:23:29.397 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - F00.00.08 ->pk:F00.00.08|model:2452-222|desc:DIN Rail Dimmer|features:lastheardfrom=GenericLastTime:dimmer=GenericDimmer|groups
2015-09-24 12:23:29.401 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - F00.00.07 ->pk:F00.00.07|model:2453-222|desc:DIN Rail On/Off|features:lastheardfrom=GenericLastTime:switch=GenericSwitch|groups
2015-09-24 12:23:29.405 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - F00.00.06 ->pk:F00.00.06|model:2442-222|desc:Micro Dimmer|features:lastheardfrom=GenericLastTime:dimmer=GenericDimmer|groups
2015-09-24 12:23:29.413 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - 0x000051 ->pk:0x000051|model:2486DWH8|desc:KeypadLinc Dimmer|features:lastheardfrom=GenericLastTime:dimmer=GenericDimmer|groups
2015-09-24 12:23:29.417 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - 0x000050 ->pk:0x000050|model:2486DWH6|desc:KeypadLinc Dimmer - 6 Button|features:loaddimmer=LoadDimmerButton:keypadbuttonA=KeyPadButton3:keypadbuttonD=KeyPadButton6:keypadbuttonB=KeyPadButton4:keypadbuttonC=KeyPadButton5:lastheardfrom=GenericLastTime|groups
2015-09-24 12:23:29.422 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - F00.00.1A ->pk:F00.00.1A|model:2475SDB|desc:In-LineLinc Relay|features:lastheardfrom=GenericLastTime:switch=GenericSwitch|groups
2015-09-24 12:23:29.433 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - 0x000037 ->pk:0x000037|model:2486D|desc:KeypadLinc Dimmer|features:lastheardfrom=GenericLastTime:dimmer=GenericDimmer|groups
2015-09-24 12:23:29.445 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - F00.00.12 ->pk:F00.00.12|model:2466S|desc:ToggleLinc Switch|features:lastheardfrom=GenericLastTime:switch=GenericSwitch|groups
2015-09-24 12:23:29.450 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - F00.00.11 ->pk:F00.00.11|model:2466D|desc:ToggleLinc Dimmer|features:lastheardfrom=GenericLastTime:dimmer=GenericDimmer|groups
2015-09-24 12:23:29.454 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - F00.00.10 ->pk:F00.00.10|model:2342-2|desc:Mini Remote|features:buttonD=RemoteButtonD:buttonB=RemoteButtonB:buttonC=RemoteButtonC:lastheardfrom=GenericLastTime:buttonA=RemoteButtonA|groups
2015-09-24 12:23:29.459 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - X00.00.03 ->pk:X00.00.03|model:X10 motion sensor|desc:Generic X10 motion sensor|features:contact=X10Contact|groups
2015-09-24 12:23:29.465 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - F00.00.16 ->pk:F00.00.16|model:2334-232|desc:Keypad Dimmer Switch, 8-Button |features:loaddimmer=LoadDimmerButton:keypadbuttonD=KeyPadButton4:keypadbuttonE=KeyPadButton5:keypadbuttonB=KeyPadButton2:keypadbuttonC=KeyPadButton3:keypadbuttonH=KeyPadButton8:lastheardfrom=GenericLastTime:keypadbuttonF=KeyPadButton6:keypadbuttonG=KeyPadButton7|groups:button_group=keypadbuttonB,keypadbuttonC,keypadbuttonD,keypadbuttonE,keypadbuttonF,keypadbuttonG,keypadbuttonH
2015-09-24 12:23:29.470 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - X00.00.02 ->pk:X00.00.02|model:X10 dimmer|desc:Generic X10 Dimmer without preset|features:dimmer=X10Dimmer:switch=X10Switch|groups
2015-09-24 12:23:29.475 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - F00.00.15 ->pk:F00.00.15|model:2334-232|desc:Keypad Dimmer Switch, 6-Button |features:loaddimmer=LoadDimmerButton:keypadbuttonA=KeyPadButton3:keypadbuttonD=KeyPadButton6:keypadbuttonB=KeyPadButton4:keypadbuttonC=KeyPadButton5:lastheardfrom=GenericLastTime|groups:button_group=keypadbuttonA,keypadbuttonB,keypadbuttonC,keypadbuttonD
2015-09-24 12:23:29.479 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - X00.00.01 ->pk:X00.00.01|model:X10 switch|desc:any simple X10 switch|features:switch=X10Switch|groups
2015-09-24 12:23:29.484 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - F00.00.14 ->pk:F00.00.14|model:2487S|desc:KeypadLinc On/Off 6-Button Scene Control |features:keypadbuttonA=KeyPadButton3:keypadbuttonD=KeyPadButton6:keypadbuttonB=KeyPadButton4:keypadbuttonC=KeyPadButton5:lastheardfrom=GenericLastTime:loadswitch=LoadSwitchButton|groups:button_group=keypadbuttonA,keypadbuttonB,keypadbuttonC,keypadbuttonD
2015-09-24 12:23:29.494 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - F00.00.13 ->pk:F00.00.13|model:2672-222|desc:LED Bulb|features:lastheardfrom=GenericLastTime:dimmer=GenericDimmer|groups
2015-09-24 12:23:29.499 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - F00.00.19 ->pk:F00.00.19|model:2457D2|desc:LampLinc Dimmer|features:lastheardfrom=GenericLastTime:dimmer=GenericDimmer|groups
2015-09-24 12:23:29.507 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - F00.00.18 ->pk:F00.00.18|model:2441TH|desc:Insteon Thermostat|features:mastercontrol=ThermostatMasterControl:fancontrol=ThermostatFanControl:heatsetpoint=ThermostatHeatSetPoint:coolsetpoint=ThermostatCoolSetPoint:temperature=ThermostatTemperature:humidity=ThermostatHumidity:lastheardfrom=GenericLastTime:modecontrol=ThermostatModeControl|groups
2015-09-24 12:23:29.511 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - 0x00001A ->pk:0x00001A|model:2450|desc:IO Link|features:contact=IOLincContact:lastheardfrom=GenericLastTime:switch=IOLincSwitch|groups
2015-09-24 12:23:29.515 [DEBUG] [.b.i.i.device.DeviceTypeLoader] - F00.00.17 ->pk:F00.00.17|model:2423A1|desc:iMeter Solo Power Meter|features:meter=PowerMeter:lastheardfrom=GenericLastTime|groups
2015-09-24 12:23:30.083 [DEBUG] [.o.b.i.InsteonPLMActiveBinding] - item DeskLamp binding changed: addr=27.2E.65|prodKey:F00.00.05|feature:dimmer
2015-09-24 12:23:30.099 [DEBUG] [.o.b.i.InsteonPLMActiveBinding] - item jorylmp binding changed: addr=26.DC.D4|prodKey:F00.00.05|feature:dimmer
2015-09-24 12:23:30.112 [DEBUG] [.o.b.i.InsteonPLMActiveBinding] - item lampRight binding changed: addr=27.2A.DC|prodKey:F00.00.05|feature:dimmer
2015-09-24 12:23:33.551 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘sitemaps’
2015-09-24 12:23:33.572 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘persistence’
2015-09-24 12:23:33.576 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘rules’
2015-09-24 12:23:33.580 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘scripts’
2015-09-24 12:23:33.585 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘items’
2015-09-24 12:23:43.590 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘sitemaps’
2015-09-24 12:23:43.598 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘persistence’
2015-09-24 12:23:43.603 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘rules’
2015-09-24 12:23:43.606 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘scripts’
2015-09-24 12:23:43.613 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘items’
2015-09-24 12:23:53.618 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘sitemaps’
2015-09-24 12:23:53.625 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘persistence’
2015-09-24 12:23:53.630 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘rules’
2015-09-24 12:23:53.649 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘scripts’
2015-09-24 12:23:53.660 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘items’
2015-09-24 12:24:03.671 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘sitemaps’
2015-09-24 12:24:03.684 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘persistence’
2015-09-24 12:24:03.690 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘rules’
2015-09-24 12:24:03.694 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘scripts’
2015-09-24 12:24:03.699 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘items’
2015-09-24 12:24:13.704 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘sitemaps’
2015-09-24 12:24:13.711 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘persistence’
2015-09-24 12:24:13.716 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘rules’
2015-09-24 12:24:13.720 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘scripts’
2015-09-24 12:24:13.725 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘items’
2015-09-24 12:24:23.730 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘sitemaps’
2015-09-24 12:24:23.737 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘persistence’
2015-09-24 12:24:23.743 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘rules’
2015-09-24 12:24:23.747 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘scripts’
2015-09-24 12:24:23.752 [DEBUG] [.o.m.c.i.folder.FolderObserver] - Refreshing folder ‘items’

These lines:

  ./start.sh: 34: ./start.sh: -Djna.boot.library.path=/usr/lib/jni:
  not found


  ./start.sh: 35: ./start.sh:
  -Dgnu.io.rxtx.SerialPorts=/dev/USBrfxcom:/dev/ttyUSB0: not found




  indicate that you are not passing the options correctly, i.e. your
  start script has a bug. You may be missing some quotes "" around
  the arguments. Please double check. You should not get these
  errors.




  About running as sudo: generally a bad idea.




  When you ran openhab the first time as sudo, it created some lock
  file (or a directory with root ownership), that prevents you from
  running as non-root ever again:




  /opt/openhab/server/configuration/org.eclipse.osgi/.manager/.fileTableLock
  (Permission denied)




  I recommend a




  chown -R . my_openhab_user (replace by whatever user id you want
  to run over)




  somewhere under /opt/openhab/server




  such that the file permissions are correct and you can run
  properly as openhab (non-root) user.




  Then, don't run openhab under sudo again. The file permissions are
  usually very simple to sort out: use the "groups openhab_user"
  command to check what groups your openhab user is part of. Then
  make sure that that group has read and write permissions to
  /dev/ttyUSB0, that's it. If you can echo to and cat from the
  device as the openhab user, then permissions are not the problem.




  I don't exactly understand the details of how openhab accesses the
  serial port, but  it does so through the nrjavaserial package,
  which I think has a native library (.so) included that is required
  for it to work. If for whatever reason that native library doesn't
  load it may result in the error you are seeing.




  I just checked on my ubuntu 12.04 box: I don't pass any serial
  port arguments like -Dgnu.io...... and it works.

I still haven’t had any luck with all this,
seeing as when I do this: dmesg | grep, it says it detects the device (FTDI USB serial device converter)
and attaches it to ttyUSB0
I had read somewhere about other people having issues with their FTDI device drivers. Something like the raspberry hangs while its in use and issues opening ports from certain software and what not.
while I was doing my best to read up on the problem I had the terminal open running cat /dev/ttyUSB0. and I noticed it had become non-responsive, I closed the session and attempted to ssh into my pi, got a network error and the connection was refused.

At this point I decided it had to be the same issue and began to try and install the driver from ftdichip.com here:
D2XX Drivers - FTDI

following these instructions:
http://www.ftdichip.com/Drivers/D2XX/Linux/ReadMe-linux.txt

I get to the part where I run lsmod it shows the device using the old ftdi driver, so I run: sudo rmmod ftdi_sio
and: sudo rmmod usbserial
Then: EEPROM/read ./read

I get this:

Library version = 0x10306
Opening port 0
FT_Open succeeded. Handle is 0xe6c2b0
FT_GetDeviceInfo succeeded. Device is type 5.
FT_EE_Read succeeded.

Signature1 = 0
Signature2 = -1
Version = 2
VendorId = 0x0403
ProductId = 0x6001
Manufacturer = FTDI
ManufacturerId = A6
Description = FT232R USB UART
SerialNumber = A603384R
MaxPower = 90
PnP = 1
SelfPowered = 0
RemoteWakeup = 1
232R:

    UseExtOsc = 0x0
    HighDriveIOs = 0x0
    EndpointSize = 0x40
    PullDownEnableR = 0x0
    SerNumEnableR = 0x1
    InvertTXD = 0x0
    InvertRXD = 0x0
    InvertRTS = 0x0
    InvertCTS = 0x0
    InvertDTR = 0x0
    InvertDSR = 0x0
    InvertDCD = 0x0
    InvertRI = 0x0
    Cbus0 = 0x3
    Cbus1 = 0x2
    Cbus2 = 0x0
    Cbus3 = 0x1
    Cbus4 = 0x5
    RIsD2XX = 0x0

Returning 0

I think I have the driver installed correctly, but how do I then mount the device with that driver?
(if thats evan the correct way to say it)

I dunno. Most mysterious. Usually you “modprobe” a kernel module which then claims the device and provides a file under /dev/tty*. The install instructions don’t mention anything along these lines. Is their alternate driver implemented in user land somehow rather than in the kernel???

So you can’t use the built-in FTDI drivers, that kinda bites.

I hate when people suggest these nuclear options that bring you back to square one, but is installing a different OS an option? See https://groups.google.com/forum/#!topic/openhab/D2Do1fZbC0M

I’d be open to trying a different OS, however I currently have another RPI2 running as my server, running raspbian.
The reason I am installing openhab on this pi, is to make sure everything goes right when I Move it over to the other pi that is my server. Since I’m fairly new to linux, everything I have set up so far has been done this way.

That said if it’s the only way(or least time consuming) to make it work I am willing to give it a try, just means I would have to go through setting up my server one more time once I get it working.

well I’ve tried ubuntu 14.04 LTS now, no luck thus far, same results.

Is there any particular distribution anyone could recommend?
be nice to hear from someone with this working on a pi2, but I’ll take any advice.

Just thought I’d post an update, I have given up on getting my plm to work with the rpi.for time being, I don’t have enough time/knolage to make it work. I have dug out my old insteon hub pre-2014 and set it up. Works flawlessly.

Have you tried running openhab on a different computer, maybe even on a different os?
This way you can make sure you configurations are right.

FWIW, I’m running an Insteon PLM (USB) binding on an RPi2 and it’s working correctly. However, I don’t see that I did anything different than the OP.

From what I could tell from my research, older FTDI chips have something different in the firmware which causes the driver to not function properly. I am using the usb stick plm (single band wireless only). I don’t know any way to tell the difference without opening it up and looking at the chip itself.

But I bought it in the first place because at the time the hub wasn’t supported by the insteon plm binding, now it is. so that was the solution I ended up with, though I would prefer to use the plm.

on a side note I have an FTDI based dmx lighting interface: http://www.enttec.com/index.php?main_menu=Products&pn=70303

I havn’t had time to try it out with openhab, because I use it for work, but I’d like to see if i have issues with that, which would force me to figure this out.

Ah, ok. I’m using the Dual-Band PLM (2413U) so maybe that’s why it’s working for me.

I was hoping someone would confirm the dual-band plm works, I wish I had one, even a dead one. I could take apart and examine. But I’ll just have to wait till my hub dies

Ah, I didn’t pick up on that. What’s that you are running there, a portable
USB stick?

Did you ever get it to work with openhab on a non raspberry pi platform?

Yeah that’s the one, Not that it’s not a raspberry pi platform compatible. Just that there was a change in the firmware that makes the driver hang. Other people have reported to have gotten other FTDI devices to work using kernels compiled as soft float, I don’t know what that means and that’s about as far as I got.

The 2413U also uses FTDI. I’m using it with a hard float Raspbian kernel on a RPi2.

Yes most should work, it depends on the vender and time of purchase for the manufacturer who assembled the unit. The plm’s could be manufactured in many different places, or a single place. which may or may not be owned by insteon or a parent corporation. Each manufacturer may have more than one supplier for these chips, it very likely this will be a problem for a wide array of devices.

I remember hearing them talk about this on MPR a while ago, I think it effects the newer chips, rather than the older ones. sorry I can’t find the article.