I do also have problems with RFXCOM things that stay in INITIALIZING.
Since it have been a bit of struggle along the way to get a Openhab2 system up and running I’m not sure if I do wrong or not.
I use Raspberry Pi2, Raspbian, Openhab2_offline_snapshot (Feb 14),Habmin2_snapshot(Feb 14) rfxcom USB-binding, Mysensors-binding (+2multi sensors), some NEXA switches, termometers.
I would like to, and thought it was possile, to define my things/items in there config files but I can not get it to work.
The rfxcom things just stays in INITIALIZING.
The bridge itself works since I can receive values from a thermometer.
If I remove the things definition and do a discovery via Paper UI I can get it to work. But I think things and links look a bit duplicated when I list with openhab CLI. See below (i have removed some lines to make it shorter)
Same for the MySensors, I have to use the Paper UI for sucessul discovery, not enough to define in things file.
Do I do something wrong or is it the rfxcom-binding/things descovery that does?
THINGS:
Bridge rfxcom:bridge:usbrfx [ serialPort="/dev/USBrfxcom" ] {
//lighting2 16402754_1 [deviceId=“16402754.1”, subType=“AC”]
//lighting2 16402754_2 [deviceId=“16402754.2”, subType=“AC”]
//lighting2 16402754_3 [deviceId=“16402754.3”, subType=“AC”]
lighting2 15764638_1 [deviceId="15764638.1", subType="AC"]
}
ITEMS:
Switch Extra_lampa1 (gSunset) { channel=“rfxcom:lighting2:usbrfx:16402754_1:command” } //Vardagsrum vid spisen
Switch Extra_lampa2 (gSunset) { channel=“rfxcom:lighting2:usbrfx:16402754_2:command” } //Nattlampa övre våningen
Switch Extra_lampa3 (gSunset) { channel=“rfxcom:lighting2:usbrfx:16402754_3:command” } //Vardagsrum stora fönstret
Switch nexa1 { channel=“rfxcom:lighting2:usbrfx:15764638_1:command” } //Orginal
openhab> smarthome:things
rfxcom:lighting2:usbrfx:16402754_1 (Type=Thing, Status=OFFLINE, Bridge=rfxcom:bridge:usbrfx)
rfxcom:lighting2:usbrfx:16402754_2 (Type=Thing, Status=OFFLINE, Bridge=rfxcom:bridge:usbrfx)
rfxcom:lighting2:usbrfx:16402754_3 (Type=Thing, Status=OFFLINE, Bridge=rfxcom:bridge:usbrfx)
rfxcom:temperature:usbrfx:27395 (Type=Thing, Status=OFFLINE, Bridge=rfxcom:bridge:usbrfx)
rfxcom:bridge:usbrfx (Type=Bridge, Status=ONLINE, Bridge=null)
rfxcom:lighting2:usbrfx:15764638_1 (Type=Thing, Status=INITIALIZING, Bridge=rfxcom:bridge:usbrfx)
openhab> smarthome:links
Extra_lampa1 -> rfxcom:lighting2:usbrfx:16402754_1:command
Extra_lampa2 -> rfxcom:lighting2:usbrfx:16402754_2:command
Extra_lampa3 -> rfxcom:lighting2:usbrfx:16402754_3:command
nexa1 -> rfxcom:lighting2:usbrfx:15764638_1:command
OutdoorTemperatureAltan -> rfxcom:temperature:usbrfx:27395:temperature
rfxcom_lighting2_usbrfx_16402754_1 -> rfxcom:lighting2:usbrfx:16402754_1
rfxcom_lighting2_usbrfx_16402754_2 -> rfxcom:lighting2:usbrfx:16402754_2
rfxcom_lighting2_usbrfx_16402754_3 -> rfxcom:lighting2:usbrfx:16402754_3
rfxcom_temperature_usbrfx_27395 -> rfxcom:temperature:usbrfx:27395
openhab> smarthome:items
gSunset (Type=GroupItem, Members=3, State=NULL, Label=null, Category=null)
Extra_lampa1 (Type=SwitchItem, State=NULL, Label=null, Category=null)
Extra_lampa2 (Type=SwitchItem, State=NULL, Label=null, Category=null)
Extra_lampa3 (Type=SwitchItem, State=NULL, Label=null, Category=null)
nexa1 (Type=SwitchItem, State=NULL, Label=null, Category=null)
OutdoorTemperatureAltan (Type=NumberItem, State=1.100000000000000088817841970012523233890533447265625, Label=Temperature Altan:, Category=null)
rfxcom_lighting2_usbrfx_16402754_1 (Type=GroupItem, Members=0, State=NULL, Label=LIGHTING2-16402754.1, Category=null, Tags=[thing])
rfxcom_lighting2_usbrfx_16402754_2 (Type=GroupItem, Members=0, State=NULL, Label=LIGHTING2-16402754.2, Category=null, Tags=[thing])
rfxcom_lighting2_usbrfx_16402754_3 (Type=GroupItem, Members=0, State=NULL, Label=LIGHTING2-16402754.3, Category=null, Tags=[thing])
rfxcom_temperature_usbrfx_27395 (Type=GroupItem, Members=0, State=NULL, Label=TEMPERATURE-27395, Category=null, Tags=[thing])