Bron : http://www.openhab.org/gettingstarted.html
http://openhabdoc.readthedocs.org/de/latest/ - German
http://openhabdoc.readthedocs.org/de/latest/Beispiel/ - ***
http://www.element14.com/community/community/design-challenges/forget-me-not/blog/2014/10/01/top-tip--configuration-of-openhab-without-a-pc - Top Tip - configuration of openHAB without a PC
CONFIGURATIE FILES
https://genetx.tweakblogs.net/blog/cat/2833 – bevat configuraties files OpenHAB 1 en OpenHAB2
HABmin
HABmin is een web administratie console voor OpenHAB. Het voorziet een volledige interface om openHAB te beheren.
https://github.com/cdjackson/HABmin/wiki - HABMIN
http://www.instructables.com/id/openHAB-Admin-Console-HABmin-on-Raspberry-Pi/?ALLSTEPS - tutorial
http://<openHAB address or hostname>:8080/habmin/index.html
The openHAB runtime comes as a platform-independent zip file. To install it, follow these simple steps:
distribution-<version>-runtime.zip
to where it is intended to be running from, e.g. C:\openhab
or /opt/openhab
.distribution-<version>-addons.zip
into a separate directory and then copy bundles which you need (every bundle resides in a separate .jar
file) to the "addons" directory of openHAB.configurations/openhab.cfg
and add the appropriate configuration parameters from configurations/openhab_default.cfg
(depending on the bindings you've copied).The openHAB comes with a demo package which have all the configuration to play with a model of a house with some rooms, lights, heating and all the stuff. It also includes some demo rules to explore the possibilities of openHAB. To install it, follow these simple steps:
distribution-<version>-demo-configuration.zip
to same directory, you've installed openHAB e.g. C:\openhab
or /opt/openhab
.start.bat
or start.sh
http://<openHAB address or hostname>:8080/openhab.app?sitemap=demo
The openHAB designer comes as a platform-dependent zip, so choose the right one for your platform. To install it, follow these simple steps:
distribution-<version>-designer-<platform>.zip
to some directory, e.g. C:\openhab-designer
resp. /opt/openhab-designer
openHAB-Designer.exe
(resp. openHAB-Designer
if you are on a Mac or Linux)The configuration files are text files that may be edited with any text editor you wish. Nevertheless, you may use the openHAB designer to edit them, and you will get info about any syntax error.
Note : that the expected file encoding is UTF-8.
openhab.cfg
is the main configuration file of openHAB. It specifies generic system settings as well as specific parameters for different bundles. Those options are specified in the following format:<bundle name>:<parameter name>=<parameter value>
The next thing we must do is to tell openHAB which items we have. To do so, go to the "configurations/items" directory and create a new file called thenameyouwish.items. You have a demo.items sample file to see which is the syntax of this file.
In this file we define groups and items. Groups might be into groups, and items may be into none, one or more groups. For example:
Group gGF (All)
This statement defines de gGF group and states that it belongs to the All group.Group GF_Living "Living room" <video> (gGF)
This statement defines de group GF_Living, defines that the user interface will show it as "Living room", defines the icon to be shown and states that it belongs to (gGF). Notice that the gGF group belongs to the ALL group, hence GF_Living inherits that group, and it belongs to the All group too.Group:Number:AVG Lighting "Average lighting [Lux](%.2f)" <switch> (Status)
:The items may include the KNX group address to use them. They might be actively read by openHAB or not. They look like this:
Number Lighting_Room_Sensor "Lighting in the Room [Lux](%.2f)" <switch> (Room,Lighting) { knx = "<0/1/1" }
:Switch Light_Room_Table "Table Light" (Room, Lights) { knx = "<0/1/10+0/1/30"}
: This is a switch item that has two addresses. openHAB may respond to events in any of them, but may actively read the first one.For more info about other options have a look at the demo.items file.
In this file we tell openHAB how we want the items to be shown in the user interface. First, create a new thenameyouwish.sitemap file in the "configurations/sitemap" directory. We might define here:
sitemap demo label="Main Menu"
: This will be the first line. It is mandatory and it states the name of your sitemap (demo) and the title of the main screen.Frame label="Demo" {
Text label="Group Demo" icon="1stfloor" { Switch item=Lights mappings=[OFF="All Off"] Group item=Heating Group item=Windows Text item=Temperature }
Text label="Multimedia" icon="video" { Selection item=Radio_Station
mappings=[0=off, 1=HR3, 2=SWR3, 3=FFH, 4=Charivari] Slider item=Volume } }
For more info about other options have a look at the demo.sitemap file.
NOTE: Items and sitemap may be changed in runtime as needed.
start.bat
or start.sh
openHAB comes with a built-in user interface. It works on all webkit-based browsers like Chrome, Safari, etc. Point your browser to http://<openHAB address or hostname>:8080/openhab.app?sitemap=demo
and you should be looking at your sitemap.