This shows you the differences between two versions of the page.
Next revision | Previous revision Last revision Both sides next revision | ||
openhab [2018/01/02 18:36] robm created |
openhab [2018/01/02 23:38] robm [Configuring the (not yet installed) LightwaveRF Bindings] |
||
---|---|---|---|
Line 17: | Line 17: | ||
Create the following start-up file, I called mine ''/ | Create the following start-up file, I called mine ''/ | ||
- | < | + | < |
- | #!/bin/bash -x | + | |
CMD=( | CMD=( | ||
docker run | docker run | ||
Line 35: | Line 34: | ||
openhab/ | openhab/ | ||
) | ) | ||
- | " | + | " |
</ | </ | ||
Line 71: | Line 70: | ||
< | < | ||
openhab> log:tail | openhab> log:tail | ||
+ | </ | ||
+ | |||
+ | ===== Manually pairing and testing control via LightwaveRF Wi-Fi Link ===== | ||
+ | |||
+ | Fear, uncertainty, | ||
+ | |||
+ | Assuming you have not previously paired the device you are running openHAB on (VirtualBox VM in my case) with the LighwaveRF Wi-Fi Link the following command will cause its green LED to blink, inviting you to press the LINK button. (I understand that newer models which have a screen ask you if you want to pair a new app). | ||
+ | |||
+ | <note tip>You may need to '' | ||
+ | |||
+ | < | ||
+ | echo -ne ' | ||
+ | </ | ||
+ | |||
+ | The LightwaveRF Wi-Fi Link will ask you to accept the pairing (blinking LED on my model). Do so. The LightwaveRF Wi-Fi Link will now accept commands originating from your system (identified by its Ethernet MAC address). So in the case of my Virtual Machine, the virtual NIC's MAC is what is important. | ||
+ | |||
+ | I tested control by running the following to send commands to the first light in the first room I ever linked to the LightwaveRF Wi-Fi Link (the LWLink learnt of this device when I added it to the [[https:// | ||
+ | |||
+ | Room 1, Light 1, Function 0 (OFF): | ||
+ | |||
+ | < | ||
+ | echo -ne ' | ||
+ | </ | ||
+ | |||
+ | Room 1, Light 1, Function 1 (ON): | ||
+ | |||
+ | < | ||
+ | echo -ne ' | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Configuring the (not yet installed) LightwaveRF Bindings ===== | ||
+ | |||
+ | Best to create the configuration file *before* installing the bindings to avoid some noisy start-up messages. | ||
+ | |||
+ | The instructions for the legacy (openHAB v1) bindings for LightwaveRF are [[https:// | ||
+ | |||
+ | Create a new file at ''/ | ||
+ | |||
+ | <note important> | ||
+ | |||
+ | '' | ||
+ | |||
+ | </ | ||
+ | |||
+ | < | ||
+ | # | ||
+ | # The IP Address of the LightwaveRf Wifi Link you can use the broadcast address (required) | ||
+ | lightwaverf: | ||
+ | # The port to monitor for messages you shouldn' | ||
+ | lightwaverf: | ||
+ | # The port to send messages on, it will also be monitored for incoming messages | ||
+ | # you shouldn' | ||
+ | lightwaverf: | ||
+ | # For a new computer you will need to register it with the wifi link to be allowed to send messages | ||
+ | # setting this to true we will send a registration message on startup. You will need to confirm | ||
+ | # registration on the wifi link. There is no harm leaving this as true but you can set to false | ||
+ | # once you have registerd for the first time. | ||
+ | lightwaverf: | ||
+ | # Delay between sending messages in ms to avoid swapming Wifi Link | ||
+ | lightwaverf: | ||
+ | # Timeout for OK Messages in ms, we will retry messages we don't receive an ok for in the timeout | ||
+ | lightwaverf: | ||
</ | </ | ||
Line 92: | Line 154: | ||
< | < | ||
- | 18:22:05.597 [INFO ] [ghtwaverf.internal.LightwaveRfBinding] - LightwaveBinding: | + | 22:48:21.683 [INFO ] [htwaverf.internal.LightwaveRfWifiLink] - LightwaveRfWifiLink Connection Stopped |
- | 18:22:05.599 [INFO ] [ghtwaverf.internal.LightwaveRfBinding] - LightwaveBinding: | + | 22:48:21.735 [INFO ] [ghtwaverf.internal.LightwaveRfBinding] - LightwaveBinding: |
- | 18:22:05.599 [INFO ] [ghtwaverf.internal.LightwaveRfBinding] - LightwaveBinding: | + | 22:48:21.739 [INFO ] [ghtwaverf.internal.LightwaveRfBinding] - LightwaveBinding: |
- | 18:22:05.600 [INFO ] [ghtwaverf.internal.LightwaveRfBinding] - LightwaveBinding: | + | 22:48:21.740 [INFO ] [ghtwaverf.internal.LightwaveRfBinding] - LightwaveBinding: |
- | 18:22:05.600 [INFO ] [ghtwaverf.internal.LightwaveRfBinding] - LightwaveBinding: | + | 22:48:21.740 [INFO ] [ghtwaverf.internal.LightwaveRfBinding] - LightwaveBinding: |
- | 18:22:05.602 [INFO ] [ghtwaverf.internal.LightwaveRfBinding] - LightwaveBinding: | + | 22:48:21.741 [INFO ] [ghtwaverf.internal.LightwaveRfBinding] - LightwaveBinding: |
- | 18:22:05.606 [INFO ] [htwaverf.internal.LightwaveRfWifiLink] - Starting LightwaveRfWifiLink Connection | + | 22:48:21.741 [INFO ] [ghtwaverf.internal.LightwaveRfBinding] - LightwaveBinding: |
- | 18: | + | 22:48:21.742 [INFO ] [htwaverf.internal.LightwaveRfWifiLink] - Starting LightwaveRfWifiLink Connection |
- | 18: | + | |
- | , retrying again. Retry count 2 | + | |
- | 18: | + | |
- | 18: | + | |
- | , retrying again. Retry count 3 | + | |
- | 18: | + | |
- | 18: | + | |
- | , retrying again. Retry count 4 | + | |
- | 18: | + | |
- | 18: | + | |
- | , retrying again. Retry count 5 | + | |
- | 18: | + | |
- | 18: | + | |
- | after 5 attempts giving up | + | |
</ | </ | ||
- | You need to press the LINK button on the LightwaveRF Wi-Fi Link during those messages to pair it. This only has to be done once, and permits the MAC address of the VM to send commands to the LightwaveRF Wi-Fi Link. | + | If you change |
- | + | ||
- | If you miss get as far at the " | + | |
< | < | ||
- | openhab> | + | bundle: |
- | openhab> | + | |
- | </ | + | |
- | + | ||
- | This is what success looks like in the output of '' | + | |
- | + | ||
- | < | + | |
- | 18: | + | |
- | 18: | + | |
- | 18: | + | |
- | 18: | + | |
- | 18: | + | |
- | 18: | + | |
- | 18: | + | |
- | 18: | + | |
- | 18: | + | |
- | , retrying again. Retry count 2 | + | |
- | 18: | + | |
- | 18: | + | |
- | 18: | + | |
- | , retrying again. Retry count 3 | + | |
- | 18: | + | |
- | + | ||
- | 18: | + | |
- | ] | + | |
</ | </ |