Thursday, April 2, 2020

openHAB Documentation

Ref :

Ref :

Ref : Youtube Channel BK Hobbies


Download openHABian  .img.xy

Image Writer send Image to SD Card.

Fire up in ethernet (internet ) connected Pi  and wait for autosetup to complete.

(Use text editor to setup Wi Fi in config files in the SD card before you install it in the Pi or the automatic web install wont work.)

Checking IPs on network

from router  :     pass e..........wif

openhab    B8-27-EB-AD-62-6D

Using the TL-MR3420 Manual C 8.4 Bind the MAC and IP. This serves an unchanging IP with DHCP.

 SAMBA or SSH into the Pi on your LAN.

mark@mark-HP-15-Notebook-PC:~$ ssh openhabian@

pass e.......ope

Run openHABian setup and configuration tool for openHAB;

Web Interface

Configure GPIO Binding from Paper UI

GPIO Binding.

Note : GPIO Binding Must be reinstalled in the Openhab GUI on repair / replacement of the system. It is in PaperUI Add ons. 

GPIO Binding binding-gpio1 - 1.13.0

Relay Board 1

GND                  GRN

GPIO 26 - IN1   BLU

GPIO 19 - IN2   PUR

GPIO 13 - IN3   GRY

GPIO   6 - IN4   WH

VCC                   RED

Relay Board 2

GND                   GRN

GPIO   5  - IN1   BLU

GPIO   9  - IN2   PUR

GPIO  22 - IN3   GRY

GPIO  27 - IN4   WH

VCC                    RED


Items and Sitemap

Demo is a good starting point. It provides a guide to layout




//Channels 2 , 3 , 4 will revert to ON in failure mode to give emergency lighting.

Switch channel1 "Channel 1" { gpio="pin:26 activelow:yes" }

Switch channel2 "Channel 2" { gpio="pin:19 activelow:no" }

Switch channel3 "Channel 3" { gpio="pin:13 activelow:no"}

Switch channel4 "Channel 4" { gpio="pin:6 activelow:no"}

Switch channel5 "Channel 5" { gpio="pin:5 activelow:yes" }

Switch channel6 "Channel 6" { gpio="pin:9 activelow:yes" }

Switch channel7 "Channel 7" { gpio="pin:22 activelow:yes"}

Switch channel8 "Channel 8" { gpio="pin:27 activelow:yes"}


 //Contact DoorSensor "Door Sensor [%s]" { gpio="pin:16 debounce:10 activelow:yes" }

 //Contact Button "Button [%s]" { gpio="pin:24 activelow:yes"



GNU nano 2.7.4 File: demo.sitemap

//April 3 2020

sitemap home label="Uberboltonwagen"
Frame label="Lights" {
Switch item=channel1 label="Desk"
Switch item=channel2 label="Bed Reading"
Switch item=channel3 label="Bathroom"
Switch item=channel4 label="Bed Space"
Switch item=channel5 label="Galley"
Switch item=channel6 label="Outside"
Switch item=channel7 label="Pantry"
Switch item=channel8 label="Food Prep"
/*Frame label="Date" {
Text item=CurrentDate


Text Editor

SUDO NANO is good but a crude. I setup Visual Studio Code with the openHAB extension to give me access to a more formal text editor.

Fault : I accessed the files using SAMBA and opened them from my remote Computer using Visual Studio Code.  Wouldn't save edits.

Fix : Set password as using openhab settings in VSC.

Cloud Access:

/var/lib/openhab2/uuid /var/lib/openhab2/openhabcloud/secret ; you can also run this to find it, and it will search everywhere find / -name secret