Hi All,
I’m having an issue that I’ve been researching for months and just can’t find an answer, at least not a recent, applicable answer…
I am running OpenHAB 2 on a Raspberry Pi 3. I have 2 Belkin USB-Serial adapters (ttyUSB0 on my CM11a, and ttyUSB1 on my CM17a Firecracker). I am using the CM11a binding.
When I try to connect to the X10 devices I get the following error:
Status: OFFLINE - COMMUNICATION_ERROR Serial port /dev/ttyUSB0 is in use by another application (Unknown Linux Application)
The only other appllication that I have loaded is Heyu.
So far I have tried:
only using one USB-serial adapter
configuring Heyu for a different port
putting OH on USB0 and Heyu on USB1
putting OH on USB1 and Heyu on USB0
resetting the OH port (USB0 or USB1
Heyu has no problems communicating with the X10 devices. I’m trying to figure out what could be blocking the port when OH is the only thing on it.
Sorry, I would have put the files in the boxes, but I couldn’t find the option.
I appreciate any help I can get. This can easily become maddening…
Sitemap:
sitemap home label="Hutchins Home Automation" {
Frame label="Date" {
Text item=Date
Text item=Time
}
Frame label="Main Menu" {
Group item=gUS label="Upstairs" icon="firstfloor"
Group item=gDS label="Downstairs" icon="groundfloor"
Group item=gOS label="Outside" icon="garden"
Group item=gHVAC label="Heating & Air" icon="heating"
Group item=gA label="Alarms" icon="alarm"
Group item=gM label="Mobile" icon="qualityofservice"
Group item=gW label="Weather" icon="sun"
}
}
Things file:
Bridge cm11a:cm11a:433932a0 [ serialPort="/dev/ttyUSB0" ] {
Thing dimmer Light_DS_Family_Portrait [ HouseUnitCode="A9" ]
Thing switch Light_DS_Coat_Closet [ HouseUnitCode="A10" ]
Thing dimmer Light_DS_Living_Portrait [ HouseUnitCode="A13" ]
Thing switch Light_US_Master_Closet [ HouseUnitCode="B3" ]
Thing switch Light_US_Hall_Ceiling [ HouseUnitCode="B8" ]
Thing switch Light_US_Guest_Ceiling [ HouseUnitCode="B9" ]
Thing switch Light_US_Kasea_Ceiling [ HouseUnitCode="B10" ]
Thing switch Light_US_Den_Ceiling [ HouseUnitCode="B11" ]
Thing switch Light_OS_Porch_Front [ HouseUnitCode="C12" ]
Thing switch Light_OS_Porch_Back [ HouseUnitCode="C12" ]
Thing switch Light_OS_Porch_Side [ HouseUnitCode="C12" ]
Thing switch Light_OS_Holiday [ HouseUnitCode="C12" ]
Thing switch Light_Test [ HouseUnitCode="D2" ]
}
Items file:
//Dimmer Light_DS_Family_Portrait "Portrait" <dimmablelight> (DS_Family, Lights) { channel="cm11a:dimmer:433932a0:lightlevel" }
//Dimmer Light_DS_Living_Portrait "Portrait" <dimmablelight> (DS_Living, Lights) { channel="cm11a:dimmer:433932a0:lightlevel" }
//Switch Light_US_Master_Closet "Closet" <wardrobe> (US_Master, Lights) { channel="cm11a:switch:433932a0:switchstatus" }
//Dimmer Light_US_Hall_Ceiling "Hall" <dimmablelight> (US_Hall, Lights) { channel="cm11a:dimmer:433932a0:lightlevel" }
//Switch Light_US_Guest_Ceiling "Guest" <light> (US_Guest, Lights) { channel="cm11a:switch:433932a0:switchstatus" }
//Switch Light_US_Kasea_Ceiling "Kasea" <light> (US_Kasea, Lights) { channel="cm11a:switch:433932a0:switchstatus" }
//Switch Light_US_Den_Ceiling "Den" <light> (US_Den, Lights) { channel="cm11a:switch:433932a0:switchstatus" }
Switch Light_Test "Test" <light> (Lights) { channel="cm11a:switch:433932a0:switchstatus" }
OpenHAB.log:
2018-12-16 12:43:23.248 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'x10.items'
2018-12-16 12:43:24.370 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'x10.items'
2018-12-16 12:44:08.264 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'x10.things'
2018-12-16 12:44:08.574 [ERROR] [ing.cm11a.handler.Cm11aBridgeHandler] - No such port exists on this machine: /dev/ttyAMA0
2018-12-16 12:44:09.803 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'x10.things'
2018-12-16 12:44:20.228 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'x10.things'
2018-12-16 12:44:20.495 [INFO ] [ing.cm11a.handler.Cm11aBridgeHandler] - Initialized CM11A X10 interface on: /dev/ttyUSB0
2018-12-16 12:44:20.560 [WARN ] [.binding.cm11a.internal.X10Interface] - Serial port /dev/ttyUSB0 is in use by another application (Unknown Linux Application)
2018-12-16 12:44:21.721 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'x10.things'
2018-12-16 12:45:23.595 [INFO ] [st.core.internal.thing.ThingResource] - Received HTTP PUT request for update configuration at 'things/cm11a:switch:433932a0:Light_Test/config' for an unmanaged thing 'cm11a:switch:433932a0:Light_Test'.
2018-12-16 12:45:23.595 [INFO ] [st.core.internal.thing.ThingResource] - Received HTTP PUT request for update at 'things/cm11a:switch:433932a0:Light_Test' for an unmanaged thing 'cm11a:switch:433932a0:Light_Test'.
2018-12-16 12:45:32.496 [INFO ] [st.core.internal.thing.ThingResource] - Received HTTP PUT request for update configuration at 'things/cm11a:switch:433932a0:Light_Test/config' for an unmanaged thing 'cm11a:switch:433932a0:Light_Test'.