openHABian hassle-free openHAB Setup

What you probably wanted to do is add user ā€œopenhabā€ to group ā€œttyā€!?

sudo adduser openhab dialout
sudo adduser openhab tty

Edit: /dev/ttyAMA0 doesnā€™t exist anymoreā€¦

Thatā€™s probably something you want to fix. https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=155434 ā†’ first answer. This was tested by me to have the effect you want.

[15:25:36] pi@openHABianPi:~$ cat /boot/config.txt
[pi1]
kernel=vmlinuz-4.4.0-1-rpi
initramfs initrd.img-4.4.0-1-rpi followkernel
# to disable DeviceTree, uncomment the next line
#device_tree=
gpu_mem=16
enable_uart=1
[15:25:54] pi@openHABianPi:~$ cat /boot/cmdline.txt
dwc_otg.lpm_enable=0 console=tty1 elevator=deadline net.ifnames=0 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait
[15:26:03] pi@openHABianPi:~$ ls /dev/ttyAMA0
/dev/ttyAMA0
[15:26:11] pi@openHABianPi:~$ cat /proc/cmdline | grep AMA0
[15:26:14] pi@openHABianPi:~$


1 Like

Did edit config.txt and cmdline.txt. This is what i got now, but still comes up as /dev/ttyAMA0 does not exist

Thatā€™s as far as I can help. Now you indeed need to continue in the other threadā€¦ Good luck

Great helpful tool!!!
Thanks a lot! It saved a lot of time for me.

However I do not see the folder /usr/share/openhab2/conf, but just /etc/openhab.
Usually there is a link from /usr/share/openhab to /etc.
Especially because the official website of OH2 mentions ā€œconfigurationsā€ was renamed to conf
I am confused.

And another point:
Where are the addons located?
They are not in /usr/share/openhab2/addonsā€¦

Hey @NCO, great it worked out so far :wink:
All your questions are related to the different ways of setting up openHAB (2). It is favorable to set up using the official openHAB2 package repository. With this installation method, your files are a bit scattered on your filesystem, described here.
As you can see, your configuration is supposed to be under /etc/openhab2 and the addons folder can be found under /usr/share/openhab2/addons.

The mentioned paths and for example the link to /etc are actually not standard. openHABian follows the official installation instructions linked above.

Iā€™m in the process of improving the documentation, could you show me where the mentioning of ā€œconfigurationā€ was confusing?

Btw regarding bindings, you only need the addons folder if you have an addon you know is not part of the distribution. All existing ones can be found:

ll /usr/share/openhab2/runtime/karaf/system/org/eclipse/smarthome/binding
ll /usr/share/openhab2/runtime/karaf/system/org/openhab/binding

and so on.

Hi @ThomDietrich,

thanks for your extremely quick response. :slight_smile:
Your points above solved my confusion, which was actually not related to your openhabian, but the official website of OH2.
I was not aware that package repository folders are different to the manual installation.
Again, thanks. I might come back with other questions.
Anyway - a great help from your side switching over to OH2!!

1 Like

Iā€™m very very tempted to give my Pi3 a refresh with this image. Thanks for all the effort with it.

This may or may not help with installing Go, but perhaps installing Docker first, and then Go/Influx/Grafana?

@ThomDietrich

I was not able to spend a lot of time on this over the weekend (the weather was simply to nice!) but here is what I have done so far:

  1. Upgraded my system (RPI3) with a clean install using OpenHABian v0.9.
  • I tried to add the wpa_supplicant.conf file - with content matching my WiFi setup - but no success.
  • The green led was flashing steadily (on/off at ~1 Hz) and the RPI was never registered on my WiFi AP.
  • I then removed the file, and connected the Ethernet cable.
  • Some time later (after watching a movie) the system was installed and running.
  1. Downloaded the standalone ARM binaries for InfluxDB and fired it up. Seems to work OK (at least the system is reported as running, and the web interface is responsive).
  • I have not yet figured out where to put the various files - binaries and configuration - and how to make it start as a service.

hello tried your package and all went fine. problem im having is my zstick, which is normally on port ACM0 is not recognized as a valid port. Any ideas?

Have you checked that the stick really uses ACM0? Remove the stick, type

ls /dev/tty*

then plug it back in and run the command again. Compare both outputs and check which port it uses.

And have you allowed the user openhab to access the modem with:

sudo usermod -a -G dialout openhab

(after this you should do a full reboot).

easier: put the stick in and type dmesg. You should see the new device being detected and assigned.

The same command but easier to remember sudo adduser openhab dialout

So you didnā€™t need to install Go first? Now I feel like an idiot :smiley: Iā€™ll have to look into it againā€¦

Okay, Iā€™ll abandon that topic till itā€™s solved by the project above: Installation through wifi (RPi 3) Ā· Issue #427 Ā· debian-pi/raspbian-ua-netinst Ā· GitHub

Nope. I just downloaded, unpacked and executed the ā€œinfluxdbā€ binary.

No need for that - I think you have more than convinced us that you are far from it with the work you have done so far, :smile:

Thanksā€¦ works great!

just an idea, is it possible to choose between the current "stable beta " and nightly build versions?

Or switch from nightly build back to beta4?

its always been acm0 b4, i have multiple rpi installs and sticks. i added to dialout group, still no success.

I completely forgot. ā€¦dumb meā€¦/dev/ttyACM0 is the specified port, not just ACM0ā€¦I apologize.

Great installation process to get started when you need it quick and dirty ā€¦

I have one issue with finding the UUID for the installation, directory structure is not similar to OH2 documentation. I cannot find the /webapps/static directory nor the files secret, uuid, version

Found the files in
/var/lib/openhab2/uuid
/var/lib/openhab2/myopenhab/secret

did not find version file.

Works from inside the house now, will step out in the morning and try

Great work

See the Migration tutorial, towards the bottom I talk about my.openhab and the location of those files.

Hello @Abo,
the file structure is exactly as described in http://docs.openhab.org/installation/linux.html#file-locations

webapps/static has moved to /etc/openhab2/html