I’ve been using it for a couple of days now just fine, I added the RFXCOM binding through paperui and added the “things” as they came in the inbox.
Since I’m upgrading from OH1 I’ve reused my items file and edited the channels accordingly (found the channel string by checking the thing name in paper UI), example:
@james_2_roberts I’m by no means an expert on the binding, but I do have it working happily on OH2 via paperUI. I would suggest you go through paperUI first just to make sure that you have the binding working correctly, before trying to get the text based .things file method working.
Also are you using beta 5 or the release version of OH2? If you are still on beta 5, I suggest you upgrade to the release version.
One other point - I don’t think you need the rfxcom.cfg file with the OH2 binding as the serial port is configured in the thing definition (as an aside, even if you did use a config file, the syntax of your line does not look correct as with OH2 we no longer prefix the binding name on each line of the config file - thus your line should read serialPort=/dev/ttyUSB0 ).
I’m making progress. I performed a clean install of OH2 (apt-get purge, followed by install), this time I started with an empty list of bindings and just installed the rfxcom binding, along with the rfxcom.cfg file.
The rfxcom wasn’t found by the paperUI, so there’s no way I can configure it?
What if you only define the bridge in the things file, and let the lighting5 things add them self by creating some activity on the rfxcom device (switch on the lights assuming these are light devices etc.)
At least, when I got my rfxcom bridge defined, the things came ‘automagically’ in the inbox when the devices started to communicate (temperature sensors by timer, door sensors after I open/closed the door and so on).
hm, I’m using a raspberry pi so the only suggestion I have left is to check /etc/default/openhab2:
I’ve added this (specifically /dev/ttyUSB0 for rfxcom):
Also added “openhab” to the dialout group in /etc/group.
@james_2_roberts Just reading back up the thread, I see that you tried the paperUI route but you were not able to get it to work due to an ‘invalid port’ error. How exactly did you specify the port? i.e. did you manually install the RFXCom USB Transceiver?
Also, just to make sure that you’ve got all the bases ticked, are you 100% sure you have the port correct and accessible to the openhab user? Have you started openHAB with the port in the environment variable correctly (EXTRA_JAVA_OPTS)?
As Robert says, you can use the 1.8 binding in OH2, if you prefer.
For the OH2 binding, the only other things that I can think of to check are:
Check that the device actually exists at /dev/ttyUSB0 (you can just do a ls -la /dev/ttyUSB0). Frequently with Linux, when you plug/unplug a device, it increments the device port number, hence the reason it is usually easier to use a symlink for the port, so you know what it is going to be every time.
As far as I am aware, the serial bundle should be installed by default. However, it may be worth checking in your karaf that this has actually been installed.
Hi @rtvb , I tried using the 1.9 snapshot and 1.10 snapshots before the 2.0 binding - my preference was to get OH2 up and running “as was” before attempting to migrate to 2.0 bindings - I can’t say I relish migrating the rest of the bindings after the experience so far with rfxcom
I have a “Thermostat3” device that I can control with the RfxCom. Would like to control it with the binding as well. What needs to be done to add an extra device? Just testing? Implementing certain calls? I can both test and program myself.