Hi there,
Has anyone been able to get OH2 and RFXCOM working - I had it sort of working a while back, but halted my migration due to the mood message not being supported (and not having the time to make the transition to OH2). I’m now trying to migrate again, but experiencing problems with RFXCOM.
I’m running the Beta OH2 release, updated and upgraded.
I’ve got the following currently configured:
rfxcom.cfg:
rfxcom:serialPort=/dev/ttyUSB0
rfxcom.things:
Bridge rfxcom:bridge:rfxcom [ serialPort="/dev/ttyUSB0" ] {
Thing lighting5 15770872_16 "Mood" @ "Lounge" [deviceId="15770872.16", subType="LightwaveRF,Siemens"]
Thing lighting5 15776004_16 "Mood" @ "Bedroom 1" [deviceId="15776004.16", subType="LightwaveRF,Siemens"]
}
rfxcom:lighting5:rfxcom:15770872_16 (Type=Thing, Status=ONLINE, Label=Lounge Mood, Bridge=rfxcom:bridge:rfxcom)
rfxcom:lighting5:rfxcom:15776004_16 (Type=Thing, Status=ONLINE, Label=Bedroom1 Mood, Bridge=rfxcom:bridge:rfxcom)
rfxcom:bridge:rfxcom (Type=Bridge, Status=ONLINE, Label=RFXCOM USB Transceiver, Bridge=null)
- Smarthome Designer doesn’t like my things file, on the 1st thing definition, it highlights the following:
Multiple markers at this line
- mismatched input '@' expecting '}'
- no viable alternative at input 'subType'
- The word 'Siemens' is not correctly spelled
- no viable alternative at input 'deviceId'
On the 2nd thing definition it highlights:
Multiple markers at this line
- missing EOF at '@'
- The word 'Siemens' is not correctly spelled
- Provide a thing UID in this format:
<bindingId>:<thingTypeId>:<thingId>
Openhab ignores the bridge definition, giving the following in openhab.log:
2017-02-18 14:22:02.134 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'rfxcom.things'
2017-02-18 14:22:02.161 [WARN ] [.thing.internal.GenericThingProvider] - Thing Lounge does not have a bridge so it needs to be defined in full notation like <bindingId>:Lounge:Mood
2017-02-18 14:22:02.164 [WARN ] [.thing.internal.GenericThingProvider] - Thing Lounge does not have a bridge so it needs to be defined in full notation like <bindingId>:Lounge:Mood
2017-02-18 14:22:02.169 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'rfxcom.things'
2017-02-18 14:22:02.193 [WARN ] [.thing.internal.GenericThingProvider] - Thing Lounge does not have a bridge so it needs to be defined in full notation like <bindingId>:Lounge:Mood
2017-02-18 14:22:02.196 [WARN ] [.thing.internal.GenericThingProvider] - Thing Lounge does not have a bridge so it needs to be defined in full notation like <bindingId>:Lounge:Mood
Which seems to be where I’m currently stuck, I’ve compared my bridge definition to that in the docs, and can’t see anything wrong (and it worked back in November).
I’ve got logging set to TRACE, but see no TRACE level items in the log:
openhab> log:get org.openhab.binding.rfxcom
Logger | Level
----------------------------------
org.openhab.binding.rfxcom | TRACE
I’m out of ideas what to check or try next…
Cheers
James