Insteon plm access via tcp

Hi,

My PLM is connected to a different computer within my home network. In my case I wanted to put the plm on the best circuit possible, which was not where my server running openhab was.

I use ser2net to expose the serial port via tcp. I have added support to the insteonplm binding to access the plm in this scenario via a socket, instead of the serial port.

I just created a new class, TcpIOStream, and then hooked into the create method within IOStream.

In order to minimize the amount of code changes to existing, I went with this format within the config file:

insteonplm:port_0=/tcp/192.168.1.124:7070

So, my question, do the maintainers of this binding this code is worth adding in? I haven’t put in a pull request, etc before.

here is a link to the commit within my own fork of openhab if it helps see what I did.

1 Like

I think it’s worth adding. @Bernd_Pfrommer, what do you think?

1 Like

Rob,

I looked at Craig’s code and I don’t see much difference to the existing codebase in OldHubIOStream.java. I think Craig should be able to get ser2net working with the existing framework, by pretending that he is connecting to a legacy hub (pre 2014).

Having that said, Craig’s naming of TcpIOStream makes a lot more sense than OldHubIOStream (in particular now that it is used for something other than connecting to the old hub), and also allowing the syntax “tcp” in the openhab.cfg file.

Craig, would you be willing to refactor the existing codebase by renaming OldHubIOStream to TcpIOStream (and moving it out of the “hub” subdirectory)? Then instantiate a TcpIOStream when either “/hub” or “/tcp” is specified.

By using the OldHubIOStream class for both cases we eliminate code replication and have identical syntax to the established /hub config.

Craig, let me know what you think.

yes, i’ll take a look at refactoring it as you suggest.

craig

here is the pr

Thanks! Trying to build and test it…

I think this change may have broke the newer insteon hub (2245-222). It seems to have for me at least but maybe someone else can try? I’m using the latest build of 1.9.0 binding.

openhab.log:

2016-08-14 00:48:52.495 [INFO ] [.service.AbstractActiveService] -     InsteonPLM has been started
Exception in thread "Thread-59" java.lang.NoSuchMethodError:    org.apache.http.impl.client.DefaultHttpClient.execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/client/methods/CloseableHttpResponse;
at  org.openhab.binding.insteonplm.internal.driver.hub.HubIOStream.getURL(HubIOStream.java:213)
at org.openhab.binding.insteonplm.internal.driver.hub.HubIOStream.bufferStatus(HubIOStream.java:108)
at org.openhab.binding.insteonplm.internal.driver.hub.HubIOStream.poll(HubIOStream.java:156)
at org.openhab.binding.insteonplm.internal.driver.hub.HubIOStream.run(HubIOStream.java:226)
at java.lang.Thread.run(Thread.java:745)
Exception in thread      "/hub2/REMOVED:REMOVED@10.0.0.15:25105,poll_time=1000 Writer" java.lang.NoSuchMethodError: org.apache.http.impl.client.DefaultHttpClient.execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/client/methods/CloseableHttpResponse;
at org.openhab.binding.insteonplm.internal.driver.hub.HubIOStream.getURL(HubIOStream.java:213)
at org.openhab.binding.insteonplm.internal.driver.hub.HubIOStream.bufferStatus(HubIOStream.java:108)
at org.openhab.binding.insteonplm.internal.driver.hub.HubIOStream.poll(HubIOStream.java:156)
at org.openhab.binding.insteonplm.internal.driver.hub.HubIOStream.write(HubIOStream.java:139)
at org.openhab.binding.insteonplm.internal.driver.hub.HubIOStream$HubOutputStream.flushBuffer(HubIOStream.java:308)
at org.openhab.binding.insteonplm.internal.driver.hub.HubIOStream$HubOutputStream.write(HubIOStream.java:302)
at java.io.OutputStream.write(OutputStream.java:75)
at org.openhab.binding.insteonplm.internal.driver.IOStream.write(IOStream.java:67)
at org.openhab.binding.insteonplm.internal.driver.Port$IOStreamWriter.run(Port.java:421)
at java.lang.Thread.run(Thread.java:745)

insteonplm.log:

2016-08-14 01:09:31 INFO  o.o.b.i.InsteonPLMActivator[:37]- Insteon PLM binding has been started.
2016-08-14 01:09:31 DEBUG o.o.b.i.InsteonPLMActiveBinding[:154]- activating binding
2016-08-14 01:09:31 DEBUG o.o.b.i.InsteonPLMActiveBinding[:269]- global binding config has arrived.
2016-08-14 01:09:31 INFO  o.o.b.i.InsteonPLMActiveBinding[:319]- dead device timeout set to 3000s
2016-08-14 01:09:31 DEBUG o.o.b.i.InsteonPLMActiveBinding[:273]- configuration update complete!
2016-08-14 01:09:31 DEBUG o.o.b.i.InsteonPLMActiveBinding[:358]- initializing...
2016-08-14 01:09:31 INFO  o.o.b.i.InsteonPLMActiveBinding[:370]- config: port_0 -> /hub2/REMOVED:REMOVED@10.0.0.15:25105,poll_time=1000
2016-08-14 01:09:31 INFO  o.o.b.i.InsteonPLMActiveBinding[:684]- devices:   0 configured,   0 polling, msgs received:     0
2016-08-14 01:09:31 DEBUG o.o.b.i.internal.driver.Poller[:188]- starting poll thread.
2016-08-14 01:09:31 DEBUG o.o.b.i.internal.driver.Driver[:83]- added new port: port_0 /hub2/REMOVED:REMOVED@10.0.0.15:25105,poll_time=1000
2016-08-14 01:09:31 INFO  o.o.b.i.InsteonPLMActiveBinding[:370]- config: service.pid -> org.openhab.insteonplm
2016-08-14 01:09:31 DEBUG o.o.b.i.InsteonPLMActiveBinding[:376]- setting driver listener
2016-08-14 01:09:31 DEBUG o.o.b.i.InsteonPLMActiveBinding[:378]- starting 0 ports
2016-08-14 01:09:31 DEBUG o.o.b.i.internal.driver.Port[:149]- starting port /hub2/REMOVED:REMOVED@10.0.0.15:25105,poll_time=1000
2016-08-14 01:09:31 DEBUG o.o.b.i.internal.driver.Port[:268]- starting reader...
2016-08-14 01:09:31 DEBUG o.o.b.i.internal.driver.Port[:406]- starting writer...
2016-08-14 01:09:31 DEBUG o.o.b.i.i.d.ModemDBBuilder[:51]- querying port for first link record
2016-08-14 01:09:31 DEBUG o.o.b.i.internal.driver.Port[:415]- writing (0): OUT:Cmd:0x60|
2016-08-14 01:09:31 DEBUG o.o.b.i.internal.driver.Port[:139]- clearing modem db!
2016-08-14 01:09:31 DEBUG o.o.b.i.InsteonPLMActiveBinding[:380]- ports started
2016-08-14 01:09:31 DEBUG o.o.b.i.InsteonPLMActiveBinding[:386]- initialization complete, found 1 port!
2016-08-14 01:09:32 DEBUG o.o.b.i.InsteonPLMActiveBinding[:215]- item Light_Dinette                  binding changed: addr=3C.FC.53|prodKey:F00.00.01|feature:dimmer
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:205]- loaded 42 devices: 
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- 0x000041  ->pk:0x000041|model:2484DWH8|desc:KeypadLinc Countdown Timer|features:fastonoff=FastOnOff:lastheardfrom=GenericLastTime:manualchange=ManualChange:dimmer=GenericDimmer|groups
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- F00.00.0A ->pk:F00.00.0A|model:2852-222|desc:Leak Sensor|features:contact=LeakSensorContact:lastheardfrom=GenericLastTime|groups
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- F00.00.0D ->pk:F00.00.0D|model:2634-222|desc:On/Off Dual-Band Outdoor Module|features:lastheardfrom=GenericLastTime:switch=GenericSwitch|groups
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- 0x000049  ->pk:0x000049|model:2843-222|desc:Wireless Open/Close Sensor|features:contact=GenericContact:lastheardfrom=GenericLastTime|groups
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- F00.00.0C ->pk:F00.00.0C|model:2476D|desc:SwitchLinc Dimmer|features:fastonoff=FastOnOff:lastheardfrom=GenericLastTime:manualchange=ManualChange:dimmer=GenericDimmer|groups
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- F00.00.0B ->pk:F00.00.0B|model:2672-422|desc:LED Dimmer|features:fastonoff=FastOnOff:lastheardfrom=GenericLastTime:manualchange=ManualChange:dimmer=GenericDimmer|groups
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- 0x000068  ->pk:0x000068|model:2472D|desc:OutletLincDimmer|features:fastonoff=FastOnOff:lastheardfrom=GenericLastTime:manualchange=ManualChange:dimmer=GenericDimmer|groups
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- 0x000045  ->pk:0x000045|model:2413U|desc:PowerLinc 2413U USB modem|features:broadcastonoff=GroupBroadcastOnOff|groups
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- 0x00004A  ->pk:0x00004A|model:2842-222|desc:Motion Sensor|features:data=MotionSensorData:contact=WirelessMotionSensorContact:lastheardfrom=GenericLastTime|groups
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- F00.00.01 ->pk:F00.00.01|model:2477D|desc:SwitchLinc Dimmer|features:fastonoff=FastOnOff:lastheardfrom=GenericLastTime:manualchange=ManualChange:dimmer=GenericDimmer|groups
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- F00.00.05 ->pk:F00.00.05|model:2456D3|desc:LampLinc V2|features:fastonoff=FastOnOff:lastheardfrom=GenericLastTime:manualchange=ManualChange:dimmer=GenericDimmer|groups
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- F00.00.04 ->pk:F00.00.04|model:2876S|desc:ICON Switch|features:lastheardfrom=GenericLastTime:switch=GenericSwitch|groups
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- F00.00.03 ->pk:F00.00.03|model:2845-222|desc:Hidden Door Sensor|features:data=HiddenDoorSensorData:contact=WirelessMotionSensorContact:lastheardfrom=GenericLastTime|groups
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- F00.00.02 ->pk:F00.00.02|model:2477S|desc:SwitchLinc Switch|features:fastonoff=FastOnOff:lastheardfrom=GenericLastTime:switch=GenericSwitch|groups
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- F00.00.09 ->pk:F00.00.09|model:2458-A1|desc:MorningLinc RF Lock Controller|features:switch=GenericSwitch|groups
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- F00.00.08 ->pk:F00.00.08|model:2452-222|desc:DIN Rail Dimmer|features:fastonoff=FastOnOff:lastheardfrom=GenericLastTime:manualchange=ManualChange:dimmer=GenericDimmer|groups
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- F00.00.07 ->pk:F00.00.07|model:2453-222|desc:DIN Rail On/Off|features:lastheardfrom=GenericLastTime:switch=GenericSwitch|groups
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- F00.00.06 ->pk:F00.00.06|model:2442-222|desc:Micro Dimmer|features:fastonoff=FastOnOff:lastheardfrom=GenericLastTime:manualchange=ManualChange:dimmer=GenericDimmer|groups
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- 0x000051  ->pk:0x000051|model:2486DWH8|desc:KeypadLinc Dimmer - 8 Button|features:loaddimmer=LoadDimmerButton:fastonoff=LoadDimmerFastOnOff:keypadbuttonD=KeyPadButton4:keypadbuttonE=KeyPadButton5:keypadbuttonB=KeyPadButton2:keypadbuttonC=KeyPadButton3:keypadbuttonH=KeyPadButton8:lastheardfrom=GenericLastTime:keypadbuttonF=KeyPadButton6:keypadbuttonG=KeyPadButton7:manualchange=ManualChange:rampdimmer=LoadDimmerRamp|groups:button_group=keypadbuttonB,keypadbuttonC,keypadbuttonD,keypadbuttonE,keypadbuttonF,keypadbuttonG,keypadbuttonH
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- 0x000050  ->pk:0x000050|model:2486DWH6|desc:KeypadLinc Dimmer - 6 Button|features:loaddimmer=LoadDimmerButton:fastonoff=LoadDimmerFastOnOff:keypadbuttonA=KeyPadButton3:keypadbuttonD=KeyPadButton6:keypadbuttonB=KeyPadButton4:keypadbuttonC=KeyPadButton5:lastheardfrom=GenericLastTime:manualchange=ManualChange:rampdimmer=LoadDimmerRamp|groups:button_group=keypadbuttonA,keypadbuttonB,keypadbuttonC,keypadbuttonD
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- F00.00.1B ->pk:F00.00.1B|model:2635-222|desc:On/Off Module|features:lastheardfrom=GenericLastTime:switch=GenericSwitch|groups
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- F00.00.1A ->pk:F00.00.1A|model:2475SDB|desc:In-LineLinc Relay|features:lastheardfrom=GenericLastTime:switch=GenericSwitch|groups
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- F00.00.1F ->pk:F00.00.1F|model:2477SA1|desc:220V 30-amp Load Controller N/O|features:fastonoff=FastOnOff:lastheardfrom=GenericLastTime:switch=GenericSwitch|groups
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- 0x000039  ->pk:0x000039|model:2663-222|desc:On/Off Outlet|features:bottomoutlet=BottomOutlet:lastheardfrom=GenericLastTime:topoutlet=GenericSwitch|groups
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- F00.00.1E ->pk:F00.00.1E|model:2674-222|desc:LED Bulb (recessed)|features:fastonoff=FastOnOff:lastheardfrom=GenericLastTime:manualchange=ManualChange:dimmer=GenericDimmer:rampdimmer=RampDimmer|groups
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- F00.00.1D ->pk:F00.00.1D|model:2456S3|desc:ApplianceLinc|features:lastheardfrom=GenericLastTime:switch=GenericSwitch|groups
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- 0x000037  ->pk:0x000037|model:2486D|desc:KeypadLinc Dimmer|features:fastonoff=FastOnOff:lastheardfrom=GenericLastTime:manualchange=ManualChange:dimmer=GenericDimmer|groups
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- F00.00.1C ->pk:F00.00.1C|model:2475F|desc:FanLinc Module|features:fan=FanLincFan:lightdimmer=GenericDimmer:lastheardfrom=GenericLastTime|groups
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- F00.00.12 ->pk:F00.00.12|model:2466S|desc:ToggleLinc Switch|features:lastheardfrom=GenericLastTime:switch=GenericSwitch|groups
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- F00.00.11 ->pk:F00.00.11|model:2466D|desc:ToggleLinc Dimmer|features:fastonoff=FastOnOff:lastheardfrom=GenericLastTime:manualchange=ManualChange:dimmer=GenericDimmer:rampdimmer=RampDimmer|groups
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- 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
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- X00.00.03 ->pk:X00.00.03|model:X10 motion sensor|desc:Generic X10 motion sensor|features:contact=X10Contact|groups
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- F00.00.16 ->pk:F00.00.16|model:2334-232|desc:Keypad Dimmer Switch, 8-Button |features:loaddimmer=LoadDimmerButton:fastonoff=LoadDimmerFastOnOff:keypadbuttonD=KeyPadButton4:keypadbuttonE=KeyPadButton5:keypadbuttonB=KeyPadButton2:keypadbuttonC=KeyPadButton3:keypadbuttonH=KeyPadButton8:lastheardfrom=GenericLastTime:keypadbuttonF=KeyPadButton6:keypadbuttonG=KeyPadButton7:manualchange=ManualChange:rampdimmer=LoadDimmerRamp|groups:button_group=keypadbuttonB,keypadbuttonC,keypadbuttonD,keypadbuttonE,keypadbuttonF,keypadbuttonG,keypadbuttonH
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- X00.00.02 ->pk:X00.00.02|model:X10 dimmer|desc:Generic X10 Dimmer without preset|features:dimmer=X10Dimmer:switch=X10Switch|groups
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- F00.00.15 ->pk:F00.00.15|model:2334-232|desc:Keypad Dimmer Switch, 6-Button |features:loaddimmer=LoadDimmerButton:fastonoff=LoadDimmerFastOnOff:keypadbuttonA=KeyPadButton3:keypadbuttonD=KeyPadButton6:keypadbuttonB=KeyPadButton4:keypadbuttonC=KeyPadButton5:lastheardfrom=GenericLastTime:manualchange=ManualChange:rampdimmer=LoadDimmerRamp|groups:button_group=keypadbuttonA,keypadbuttonB,keypadbuttonC,keypadbuttonD
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- X00.00.01 ->pk:X00.00.01|model:X10 switch|desc:any simple X10 switch|features:switch=X10Switch|groups
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- F00.00.14 ->pk:F00.00.14|model:2487S|desc:KeypadLinc On/Off 6-Button Scene Control |features:keypadbuttonA=KeyPadButton3:manualchangebuttonD=ManualChangeButton6:keypadbuttonD=KeyPadButton6:manualchangebuttonA=ManualChangeButton3:keypadbuttonB=KeyPadButton4:manualchangebuttonC=ManualChangeButton5:keypadbuttonC=KeyPadButton5:manualchangebuttonB=ManualChangeButton4:loadswitchmanualchange=LoadSwitchManualChange:loadswitchfastonoff=LoadSwitchFastOnOff:fastonoffbuttonB=FastOnOffButton4:fastonoffbuttonC=FastOnOffButton5:lastheardfrom=GenericLastTime:fastonoffbuttonD=FastOnOffButton6:loadswitch=LoadSwitchButton:fastonoffbuttonA=FastOnOffButton3|groups:manualchange_button_group=manualchangebuttonA,manualchangebuttonB,manualchangebuttonC,manualchangebuttonD:fastonoff_button_group=fastonoffbuttonA,fastonoffbuttonB,fastonoffbuttonC,fastonoffbuttonD:button_group=keypadbuttonA,keypadbuttonB,keypadbuttonC,keypadbuttonD
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- F00.00.13 ->pk:F00.00.13|model:2672-222|desc:LED Bulb|features:fastonoff=FastOnOff:lastheardfrom=GenericLastTime:manualchange=ManualChange:dimmer=GenericDimmer:rampdimmer=RampDimmer_3435|groups
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- F00.00.19 ->pk:F00.00.19|model:2457D2|desc:LampLinc Dimmer|features:fastonoff=FastOnOff:lastheardfrom=GenericLastTime:manualchange=ManualChange:dimmer=GenericDimmer|groups
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- F00.00.18 ->pk:F00.00.18|model:2441TH|desc:Insteon Thermostat|features:tempcelsius=ThermostatTemperatureCelsius:humidityhigh=ThermostatHumidityHigh:tempfahrenheit=ThermostatTemperatureFahrenheit:stage1duration=ThermostatStage1Duration:humiditylow=ThermostatHumidityLow:systemmode=ThermostatSystemMode:isheating=ThermostatIsHeating:fanmode=ThermostatFanMode:iscooling=ThermostatIsCooling:heatsetpoint=ThermostatHeatSetPoint:coolsetpoint=ThermostatCoolSetPoint:humidity=ThermostatHumidity:lastheardfrom=GenericLastTime:acdelay=ThermostatACDelay:backlightduration=ThermostatBackLightDuration|groups:data1b_group=humidityhigh,humiditylow,stage1duration:data2_group=coolsetpoint,heatsetpoint,systemmode,fanmode,isheating,iscooling,tempcelsius,tempfahrenheit,humidity:data1_group=backlightduration,acdelay
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- 0x00001A  ->pk:0x00001A|model:2450|desc:IO Link|features:contact=IOLincContact:lastheardfrom=GenericLastTime:switch=IOLincSwitch|groups
2016-08-14 01:09:32 DEBUG o.o.b.i.i.d.DeviceTypeLoader[:183]- F00.00.17 ->pk:F00.00.17|model:2423A1|desc:iMeter Solo Power Meter|features:meter=PowerMeter:lastheardfrom=GenericLastTime|groups
2016-08-14 01:09:32 DEBUG o.o.b.i.InsteonPLMActiveBinding[:215]- item Light_Dinette_Fast             binding changed: addr=3C.FC.53|prodKey:F00.00.01|feature:fastonoff
2016-08-14 01:09:32 DEBUG o.o.b.i.InsteonPLMActiveBinding[:215]- item Light_KitchenSink              binding changed: addr=32.A6.CA|prodKey:F00.00.02|feature:switch
2016-08-14 01:09:32 DEBUG o.o.b.i.InsteonPLMActiveBinding[:215]- item Light_EntranceKeypadMain       binding changed: addr=3D.8F.F8|prodKey:F00.00.14|feature:loadswitch
2016-08-14 01:09:32 DEBUG o.o.b.i.i.device.InsteonDevice[:544]- manualchange_button_group connected feature: ManualChangeButton3(0:1:2)
2016-08-14 01:09:32 DEBUG o.o.b.i.i.device.InsteonDevice[:544]- manualchange_button_group connected feature: ManualChangeButton4(0:1:2)
2016-08-14 01:09:32 DEBUG o.o.b.i.i.device.InsteonDevice[:544]- manualchange_button_group connected feature: ManualChangeButton5(0:1:2)
2016-08-14 01:09:32 DEBUG o.o.b.i.i.device.InsteonDevice[:544]- manualchange_button_group connected feature: ManualChangeButton6(0:1:2)
2016-08-14 01:09:32 DEBUG o.o.b.i.i.device.InsteonDevice[:544]- fastonoff_button_group connected feature: FastOnOffButton3(0:1:2)
2016-08-14 01:09:32 DEBUG o.o.b.i.i.device.InsteonDevice[:544]- fastonoff_button_group connected feature: FastOnOffButton4(0:1:2)
2016-08-14 01:09:32 DEBUG o.o.b.i.i.device.InsteonDevice[:544]- fastonoff_button_group connected feature: FastOnOffButton5(0:1:2)
2016-08-14 01:09:32 DEBUG o.o.b.i.i.device.InsteonDevice[:544]- fastonoff_button_group connected feature: FastOnOffButton6(0:1:2)
2016-08-14 01:09:32 DEBUG o.o.b.i.i.device.InsteonDevice[:544]- button_group connected feature: KeyPadButton3(0:1:6)
2016-08-14 01:09:32 DEBUG o.o.b.i.i.device.InsteonDevice[:544]- button_group connected feature: KeyPadButton4(0:1:6)
2016-08-14 01:09:32 DEBUG o.o.b.i.i.device.InsteonDevice[:544]- button_group connected feature: KeyPadButton5(0:1:6)
2016-08-14 01:09:32 DEBUG o.o.b.i.i.device.InsteonDevice[:544]- button_group connected feature: KeyPadButton6(0:1:6)
2016-08-14 01:09:32 DEBUG o.o.b.i.InsteonPLMActiveBinding[:215]- item Light_EntranceKeypadHome       binding changed: addr=3D.8F.F8|prodKey:F00.00.15|feature:keypadbuttonA|params:group=7
2016-08-14 01:09:32 DEBUG o.o.b.i.InsteonPLMActiveBinding[:215]- item Light_EntranceKeypadNight      binding changed: addr=3D.8F.F8|prodKey:F00.00.15|feature:keypadbuttonB|params:related=32.9B.02,group=8
2016-08-14 01:09:32 DEBUG o.o.b.i.InsteonPLMActiveBinding[:215]- item Light_LivingRoom               binding changed: addr=3D.8F.F8|prodKey:F00.00.15|feature:keypadbuttonD|params:related=38.93.62+35.23.A9,group=4
2016-08-14 01:09:32 DEBUG o.o.b.i.InsteonPLMActiveBinding[:215]- item Light_LivingRoomLamps          binding changed: addr=35.23.A9|prodKey:F00.00.01|feature:dimmer|params:related=38.93.62+3D.8F.F8
2016-08-14 01:09:32 DEBUG o.o.b.i.InsteonPLMActiveBinding[:215]- item Light_LivingRoomSwitch         binding changed: addr=38.93.62|prodKey:F00.00.01|feature:dimmer|params:related=35.23.A9+3D.8F.F8
2016-08-14 01:09:32 DEBUG o.o.b.i.InsteonPLMActiveBinding[:215]- item Light_UpstairsHall             binding changed: addr=32.9B.02|prodKey:F00.00.02|feature:switch
2016-08-14 01:09:32 DEBUG o.o.b.i.InsteonPLMActiveBinding[:215]- item Light_BA_Hallway2              binding changed: addr=3D.39.FE|prodKey:F00.00.02|feature:switch
2016-08-14 01:09:32 DEBUG o.o.b.i.InsteonPLMActiveBinding[:215]- item Light_BA_Hallway2_Fast         binding changed: addr=3D.39.FE|prodKey:F00.00.02|feature:fastonoff
2016-08-14 01:09:32 DEBUG o.o.b.i.InsteonPLMActiveBinding[:215]- item GarageDoorOpener               binding changed: addr=3D.8F.F8|prodKey:F00.00.15|feature:keypadbuttonC|params:group=10
2016-08-14 01:09:32 DEBUG o.o.b.i.InsteonPLMActiveBinding[:215]- item GarageDoorContact              binding changed: addr=34.89.34|prodKey: 0x00001A|feature:contact
2016-08-14 01:09:32 DEBUG o.o.b.i.InsteonPLMActiveBinding[:215]- item PoolPump                       binding changed: addr=2E.8B.AF|prodKey:F00.00.02|feature:switch
2016-08-14 01:09:32 DEBUG o.o.b.i.InsteonPLMActiveBinding[:215]- item PoolLights                     binding changed: addr=3D.25.74|prodKey:F00.00.02|feature:switch
2016-08-14 01:11:31 WARN  o.o.b.i.i.d.ModemDBBuilder[:76]- modem database download unsuccessful, restarting!
2016-08-14 01:11:31 DEBUG o.o.b.i.internal.driver.Port[:139]- clearing modem db!

I’m never able to get a connection to the hub, once I put back the 1.8.3 binding everything is fine.

I’m never able to get a connection to the hub, once I put back the 1.8.3 binding everything is fine.

@the_larizzo Would you mind opening a new issue here so this can be tracked, in case PR #4521 or some other merge caused a regression? Hopefully Craig, Rob or Bernd can have a look?

I believe this is because HubIOStream is using a deprecated class to form the http connection to the hub. This is not related to the PR i was involved. in.

I am not familiar enough with how openhab bindings are provided libs such as the apache client. I imagine that lib has been updated, and the deprecated classes/methods have been removed in that new version of the lib.

I don’t have good access to my dev environment for a couple days. Also I don’t have a hub so it would be a little harder for me to confirm if an update to the apache lib has indeed exposed this issue. However, if no one else can address this, I will take a crack at it when I get back to my dev environment.

Agree with Craig. This looks like some of the issues that have been reported with OH2.

Can somebody clarify exactly what maintainers should do to support pre-OH2? What branch should this be committed to? 1.8 or 1.9? What is the difference between the two? Is there an official 1.9 release? Why does the 1.9 tree no longer build? Is there a document that explains all of this, and the rationale behind it?

Thanks,
Bernd

1 Like

I’ve not received sufficient feedback on PR #4573, but its purpose is to resolve the incompatibility with openHAB 2 beta. Once I am confident it does not cause a regression running on OH 1.8, I will merge it. Then, the next nightly build ought to address both the change in PR #4521 which was already merged, and hopefully have the binding work on OH 2 beta and OH 1.8.

Any volunteers to help nail this down finally? :thinking:

For 1.x addons, submit PRs to the master branch in the openhab/openhab repo (like the PRs mentioned above).

1.8 is a maintenance branch for the 1.8 release. As always, commits merged on the master branch are leading up to the next release (in this case, 1.9).

There will be, but only for addons.

I was unaware of a 1.9 tree. The master branch builds for me locally, and nightly on CloudBees.

I don’t know. Perhaps you could research the SCM subject and write one for http://docs.openhab.org?

@watou, I’ve asked similar questions in the past. Seems like this is something for the @maintainer to research/document for those of us who are casual contributors. All we are asking for a way to still develop/test with 1.X, and not force 2.X down our throats.

My observation of things is that the limited developer resources leave us with end-of-life on the 1.x distribution path at 1.8.3, and that the only future distributed code from that codebase are the 1.x addons. I would personally like to see, when 1.9 is deemed ready for release, an update to the 1.x Debian packages for add-ons, so those who continue to use 1.8 will be able to easily upgrade to new, improved addons. This, like everything else, requires developer resources to accomplish.

I think the old Yoxos IDE setup against the 1.8 branch should still work, but it’s of course a bit hairy and unsatisfactory. I really don’t have any more to offer on the subject. I personally still rely on 1.8.3 and lack the time to transition over to the 2.0 beta for “production use.”

I’m replying to this thread to hopefully get more visibility on the issue i opened in the github 4630. Form what I can tell the only change that could have broke the hub connection was the PR 4521. The insteonplm binding doesn’t work for me since this PR for 1.8.3 OH or OH2. The fixed/PR 4573 seems to have fixed the USB plm for OH2 but doesn’t make a difference for the Insteon Hub. Hopefully other people can test and see if it’s just me but I have no issue when I drop back to 1.8.3 insteonplm binding.