Hi,
I decided not to wait for the binding and coded everything in python and openhab (RPI3 and OH2 as platform):
- Made a python script that reads/writes data from RFLINK (USB) to/from MQTT (also on RPI3) ;
This merely a s/w gateway that reads data from rflink and sends it (unmodified) to MQTT and vice versa ; - In openhab2 I defined two items : rflinkTX and rflinkRX
String rfLinkRx "rfRx: [%s]" {mqtt="<[mybroker:rflink/rx:state:default]"}
String rfLinkTx "[%s]" {mqtt=">[mybroker:rflink/tx:command:*:default]"}
- In a rule I parse the incoming string and take action :
rule "rfLinkRX"
when
Item rfLinkRx received update
then
//parse data here...
//pushover("rfLink: " + rfLink.state) //test
end
- For sending commands also a rule is created (per item):
rule "Lamp1Button" // lamp on/off button
when
Item lamp1Button changed
then
rfLinkTx.sendCommand("10;Kaku;00004b;2;" + lamp1Button.state)
end
I know this is not as convienent as having a binding but it is a ‘good’ workaround to get the gateway going.
-ben