User Tools

Site Tools


openhab

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
openhab [2018/01/02 22:48]
robm
openhab [2018/01/03 00:31] (current)
robm
Line 17: Line 17:
 Create the following start-up file, I called mine ''/opt/openhab/run.sh'': Create the following start-up file, I called mine ''/opt/openhab/run.sh'':
  
-<code:bash> +<code:bash>#!/bin/bash -x
-#!/bin/bash -x+
 CMD=( CMD=(
     docker run     docker run
Line 35: Line 34:
     openhab/openhab:2.3.0-snapshot-amd64-debian     openhab/openhab:2.3.0-snapshot-amd64-debian
 ) )
-"${CMD[@]}"+"${CMD[@]}" || docker start --attach --interactive openhab
 </code> </code>
  
Line 101: Line 100:
 </code> </code>
  
 +<note tip>The LightwaveRF Link protocol is documented at https://api.lightwaverf.com/introduction_basic_comms.html</note>
  
 ===== Configuring the (not yet installed) LightwaveRF Bindings ===== ===== Configuring the (not yet installed) LightwaveRF Bindings =====
Line 108: Line 108:
 The instructions for the legacy (openHAB v1) bindings for LightwaveRF are [[https://github.com/openhab/openhab1-addons/wiki/LightwaveRF-Binding|here]]. The instructions for the legacy (openHAB v1) bindings for LightwaveRF are [[https://github.com/openhab/openhab1-addons/wiki/LightwaveRF-Binding|here]].
  
-Create a new file at ''/opt/openhab/conf/services/lightwaverf.cfg'' (all files in this directory are named, so just ensure it is unique. Most guides call this file ''openhab.cfg''), and copy the sample from GitHub. I modified mine to **disable** register on start-up, since I've done that manually above.+Create a new file at ''/opt/openhab/conf/services/lightwaverf.cfg'' (all files in this directory are named, so just ensure it is unique. Most guides call this file ''openhab.cfg''), and enter the following:
  
-<code:bash> +<note important>Do **not** copy the sample at [[https://github.com/openhab/openhab1-addons/wiki/LightwaveRF-Binding|GitHub]], it has errors! 
-################################### LightwaveRf Binding #####################################+ 
 +''lightwaveRf:ip'' should be ''lightwaverf:ip'' (note the case!) throughout, and the sendport and receiveport numbers are backwards! 
 + 
 +</note> 
 + 
 +<code:bash>################################### LightwaveRf Binding #####################################
 # #
 # The IP Address of the LightwaveRf Wifi Link you can use the broadcast address (required) # The IP Address of the LightwaveRf Wifi Link you can use the broadcast address (required)
-lightwaveRf:ip=255.255.255.255+lightwaverf:ip=255.255.255.255
 # The port to monitor for messages you shouldn't need to change this # The port to monitor for messages you shouldn't need to change this
-lightwaveRf:receiveport=9760 +lightwaverf:receiveport=9761 
-# The port to send messages on, it will also be monitored for incoming messages +# The port to send messages on, it will also be monitored for incoming messages
 # you shouldn't need to change this # you shouldn't need to change this
-lightwaveRf:sendport=9761+lightwaverf:sendport=9760
 # For a new computer you will need to register it with the wifi link to be allowed to send messages # 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 # setting this to true we will send a registration message on startup. You will need to confirm
Line 160: Line 165:
 </code> </code>
  
 +If you change the configuration file, you can restart (all) legacy openHAB v1 bindings by restarting the compatibility layer bundle from the interactive prompt of OpenHAB (the ''/opt/openhab/run.sh'' script):
 +
 +<code>
 +bundle:restart "openHAB 1.x Compatibility Layer"
 +</code>
openhab.1514933317.txt.gz · Last modified: 2018/01/02 22:48 by robm