openHABian hassle-free openHAB Setup

Hello. This is all very new to me so apologies if I am raising this issue in the wrong place. Whilst running the installer, it fails when retrieving libgcc1 with the error message:

wget: can’t connect to remote host (93.93.131.18) Connection timed out.
E: Couldn’t download pool/main/g/gcc-4.9/libgcc1_4.9.2-10_armhf.deb".

Other packages seem to download successfully before this point. I can also successfully ping the 93.93.131.18 address from the Pi. Am I missing something?

Any advice would be much appreciated. Thank you.

Hello, this error is not normal. Were you able to connect via SSH? Please check the note on “What is a successful installation” here: openHABian hassle-free openHAB Setup

This shouldn’t happen. Please start anew.

Many thanks for your response Thom. I have tried again a few times now using a fresh copy of the image each time. The furthest I have got is the retrieval of “multiarch-support” but then I get the same host time-out message. The whole installation process restarts automatically 10 seconds after the error so I can’t SSH into the Pi if that’s what you mean. I have disconnected everything else from my network to remove any other traffic but it seems to make no difference. Perhaps it is down to my ISP being particularly busy at the moment?

I and others barely had any problems like this in the future. In fact one reason for me to choose the “installation on first boot” vs “one complete but over time outdated image” was that first experiments were always successful and that was confirmed over time.

Please scan your sd card for fitness (random tutorial) and try one more time at another hour…

Hi all, I just came back from a trip and almost did not get into my flat because openhab decided to change their configuration while I were gone:)( Luckily i have a key hidden in case OH goes down…)

So I am using openhabian, but the new openhab.cloud does not show up in the paper UI, so I assume that openhabian used an offline distro as base, so how can I get new extensions to show up in Paper UI?

Hey Kim,
I seem to remember problems like this discussed here: myopenHAB replaces my.openHAB!

If you are on an older build (older than the folder restructuring and the introduction of jsondb) you might want to purge and reinstall openhab2.

My openhabian is build 604, fairly new I expect. How do I purge? And is my assumption that openhabian using offline distro correct?

I figured out that openhabian using the offline repo, what is benefit off this?

For anyone that might need it, you can run sudo openhabian-config, then run update openhab and voila the cloud openhab appears!

does it support zwave locks?

Hi @ThomDietrich / @Fredrik

I was able to make an image fairly easy for Berryboot. I used a clean install of openHABian, with this I made an image for Berryboot and tested it in my own Raspberry Pi. The image loads well and I can use openHAB like a ‘normal’ installation.
I made a torrent of the image, so others can use / test it as well: openHABian v1 BerryBoot 20161216.

@ThomDietrich FYI after upgrading through your command tool, the GPIO settings has been reset, sudo nano /usr/lib/systemd/system/openhab2.service and set it back to root and root fixed the problem. Maybe go for an online distro instead of offline distro in the future to avoid these problems everytime a new binding is released or updated?

does it support zwave locks?

Lock support would be dependent on the ZWave binding. There is a test branch of the OH1 binding that has pretty good support. The OH2 binding still has a little bit of work it seems but is steadily getting closer to including security class support which is needed for locks.

Thanks again Thom. SD card checked out OK. I left the installer running overnight and it was still trying this morning. I will therefore reluctantly go for a manual install for now but will be back to try again. Many thanks for all your efforts nonetheless.

Hey Kim,
a few Linux basics for you :slight_smile:

# check the exact name and version of a package:
$ dpkg --list | grep openhab
ii  openhab2-offline                2.0.0~20161217141859         all          openHAB Offline Distribution

# get even more info:
$ dpkg --status openhab2-offline
Package: openhab2-offline
Status: install ok installed
Priority: optional
Section: misc
Installed-Size: 183352
Maintainer: openHAB <admin@openhab.org>
Architecture: all
Version: 2.0.0~20161217141859
...

#Update all packages (incl. openhab):
$ sudo apt update
$ sudo apt upgrade

You should execute the last step regularly. The table printed when logging in via ssh shows the available updates btw.

Executing sudo openhabian-config and selecting “Update” might have this effect but it’s not it’s intended purpose. Please use the methode above. You can however execute Update followed by basic setup from time to time to stay in sync with the latest openHABian changes.

Using openhab2-offline or -online doesn’t have any effect on the update-need of your system. If you update your openhab package chances are, that made changes will be overwritten. Changes to the service file shouldn’t happen without your confirmation in the future, I believe @Benjy can make sure of that.

Hi @ThomDietrich,

the last step I normally do once a month, or every time i change my settings, however it did not make the cloud package show up. Thats why i run the openhabian update, that made the trick:)

I just wanted to tell the openhabian community what they need todo to get the new myopenhab to work.

Any progress on not running openhabian as root to get gpio to work?

Yesterday my bluetooth dongle arrived, so I will now try to get xiamo plant sensor to work, maybe this can be a new feature for openhabian? I think I will use the json and the local file approch instead of mqtt, more reliable I would assume. I will keep you informed about progress.

I have really no idea how the Update feature could possibly have done that :smiley: But who knows, thanks for sharing!

Sadly no. I do not have the hardware and I’ve written down what’s needed from my point of view at https://github.com/openhab/openhabian/issues/39 . Pay attention to my remark regarding pigpio. Maybe it would be possible to extend the gpio binding to support it. Would you be able to look into that?

Bluetooth and xiami: I have these lying around too. Would be happy to integrate the setup process. If you want to provide the steps needed, we can look into that.

openhab2.service is pretty specific to the current version of openHAB. What needs setting inside the service file to make the GPIO work?

Elevated permissions by starting openHAB as root. Not ideal but for GPIO and some other rare cases the easiest solution

Right, it’s not set as a config file now but it’s something that can be done! :slight_smile: Out of interest, does…

setcap 'cap_sys_rawio=ep' `realpath usr/bin/java`

achieve the same thing when not as root?