I’ve also been trying to get LWRF working with openHAB2.
I have the newer type of light link (no digital display).
openhab2 is running on a Pi3
I’ll dropped the jar file into "add ons"
I see LWRF traffic in the logs.
I added an item in .items :
Switch LH_WallLight “Wall” { lightwaverf=“room=4,device=2,type=SWITCH” }
Also in .sitemap :
Switch item=LH_WallLight label=“Left Wall Light”
When I use a remote to turn my wall light on, the switch widget changes state and I get this in the log:
16:26:05.792 [ERROR] [twaverf.internal.LightwaveRfWifiLink] - Error converting message: *!{“trans”:937,“mac”:“20:46:9C”,“time”:1483633565,“pkt”:“433T”,“fn”:“on”,“room”:4,“dev”:2}
16:26:05.793 [INFO ] [marthome.event.ItemStateChangedEvent] - LH_WallLight changed from OFF to ON
However trying to control via openhab widget I get this:
16:23:49.563 [ERROR] [twaverf.internal.LightwaveRfWifiLink] - Error converting message: !{“trans”:928,“mac”:“20:46:9C”,“time”:1483633428,“pkt”:“error”,“fn”:“nonRegistered”,“payload”:"Not yet registered. Send !Fp to register"}
Conclusion; my hub is not paired.
I have read:
"To force the WiFi Link to register your new device paste this into a shell, making sure to set the IP address of the WiFi Link correctly. Then head over to the WiFi Link so you can press ‘OK’."
echo -ne ‘001,!F*p|’ | nc -w1 -u 192.168.x.xx 9760
(obviously with the correct IP)
However WHERE do I type this? I’ve tried from the console, but of course the command is incorrect, also from when just ssh’d into the Pi, but “nc” is of course not a valid command.
I’ve spent hours and hours searching yet no-one has documented where it should be executed.
Any help would be appreciated, & no doubt would help many more people in the future.
Wayne