Versioner sammenlignet

Nøgle

  • Linjen blev tilføjet.
  • Denne linje blev fjernet.
  • Formatering blev ændret.

...

Advarsel

During another problem/trouble shooting I ran:

Kodeblok
sudo systemctl stop openhab2
sudo openhab-cli clean-cache
sudo systemctl start openhab2

That seems to remove stuff ... but a reinstall of the bindings fixed it (and no Things was lost)


Topics

Indholdsfortegnelse

Screenshots

Galleri
sortdate

Java install on Ubuntu

Do not install Java 10 or 11, currently only java 8 is supported (do review here)

...

Kodeblok
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0xB1998361219BD9C9
sudo apt-add-repository 'deb http://repos.azulsystems.com/ubuntu stable main'
sudo apt-get update
sudo apt-get install zulu-8


Installing openHAB

Very simple, just follow https://www.openhab.org/docs/installation/linux.html#package-repository-installation


Backup

The easiest way is the make a cron job for backup, information on backup and restore are at https://www.openhab.org/docs/installation/linux.html#backup-and-restore

...

Advarsel

A test - moving from one server to a new showed me that the backup is not "complete", as 2 things went wrong:

  • The camera binding that I manually added in the "addon" folder was not in the backup
  • Things binded to the camera binding was broken (after the jar file was added, bindings were fine again)
  • A Thing that was disabled was not disabled after the restore (It actually seems that Disabled is "stateless" and does not survive an openHAB Restart)


Security

Notice that OpenHAB has no security, and You need to install it in front of openHAB. Do read Securing Communication and access to openHAB

Link for setting username password: Ngix and Apache


Things on Tabs

For each Thing, there is a Location field, that represents (at least) a Tab in the Paper UI:

 . 

Camera Binding

I use https://github.com/Skinah/IpCamera for my HIKVisions, but only with images currently. It works okay.

ipcamera15-12-2018.zip


MQTT Server

Install the MQTT Service - this in an Internal MQTT Broker (Server)

Configure the broker.

MQTT Bindings and Channels

Install the MQTT Binding



Then Create Things and Channels:

...

Now we have an item that can be used on a  Sitemap


MQTT Demo Video

This shows the above configuration in action - the Basic UI in upper left, the HABPanel in lower left, an external MQTT Client in upper right and the logging in the Event logfile in lower right.

...

Widget-forbinder
urlhttp://youtube.com/watch?v=mvOPmIOABkY

Links

Inkludér side
openHAB Links Collection
openHAB Links Collection