openHABian hassle-free openHAB Setup

Hello Nico,

I didn’t try yet. I got my Razberry Extension to work, this was enough work for the weekend :wink:

The last months I used Raspbian of an external usb stick to prevent corrupt file systems like I had before. I’ll try the 'copy to external usb device" method of openhabian-config.

Hi All,

Since the intention is to have a “hassle-free” RPi image, what would be the preferred way to update a single binding?
So for example the z-wave binding has in its latest snapshot some devices added.

Now since the initial binding installation went through the GUI, what would be the best “hassle-free” way to use a lastest z-wave binding build on the RPi?

Thanks,

Maarten

That is (to my knowledge) not possible currently. You can however switch over to the unstable path, containing the latest addons as well. Check http://docs.openhab.org/installation/openhabian.html#switch-openhab-branch

Hello @nbar and @greenoid, The updates count (FireMotD) is stored in the file /var/tmp/updatecount.txt. It should be updated daily. Something must be wrong with your configuration.

as tmpfs to reduce write access to the sd card

Could you give us some numbers?

Hello @ThomDietrich,
you are right: if I configure /var/tmp to be mounted as tmpfs, the update count does not work since the file is not present (with this change in configuration, the complete /var/tmp folder is being emptied). But if I wait one day, the update count is displayed correctly again.
Kind regards, Nico.

Thanks Thom,

That asnwers my question :slight_smile:

Maarten

Hi,

did somebody get openHABian running on a RPi emulator like qemu?

Thanks
Viktor

Hallo Thomas,
habe mir die Datei auf die SD Karte drauf gemacht und den Pi gestartet.
wurde soweit alles auch schön installiert.
Jetzt werde ich nach dem Login und Passwort für openHABiasnPi gefragt. Ich habe schon pi und raspberry sowie opnehab und habopen ausprobiert. leider ohne Erfolg.
Könntets du mit weiterhelfen?

LG Denis

Hey Dennis, ich werde in Englisch antworten, wenn das für dich ein Problem ist, schreib mir einfach eine private Nachricht :wink:

I trust you followed the instructions? http://docs.openhab.org/installation/openhabian.html#raspberry-pi

Are you trying to log in via keyboard and HDMI Display or via SSH?

  • If via Keyboard: Please use SSH, you will thank me later.
  • If via SSH: The username:password combination pi:raspberry is correct. Please try again.

found a menuitem in openhabian-config (within openhabian) to update OpenHAB2
However, on the website i see a menu item “download and install the latest snapshot”
\Doed anyone know how to " activate" this menuitem ?

Hallo Thomas,

danke erstmal für die Rückmeldung. Hab soweit alles hinbekommen.
Ich muss vorweg sagen dass mein Englisch nicht allzu gut ist und ich mich mit linux überhaupt nicht auskenne.
Ich habe nun folgendes Problem:

Ich habe bei der Paper UI den openHAB cloud connector installiert. Muss dieser nach Installation in den Bindings angezeigt werden?
Bei mir steht nur bei Service openHAB cloud.

Ich kann leider niergends meine UUID und secret finden.

Kannst Du mir hierbei weiterhelfen?

LG Denis

Hi @denis1988,

please note that english is our language of communication, as there are members from all around the world that are willing to help.

Regarding the configuration of the openHAB cloud adapter, you will find the information here:
UUID: /var/lib/openhab2/uuid
Secret: /var/lib/openhab2/openhabcloud/secret

You can get them e.g. with the following commands:

cat /var/lib/openhab2/uuid
cat /var/lib/openhab2/openhabcloud/secret

2 Likes

I’m at a loss here… has anyone got openhabian working with WiFi on the RPi 3?

I know my wifi works because it works if I put in a fresh image of raspbian jessie on. It just doesn’t work with openhabian.

I’ve tried everything I can think of:

  1. install brcm firmware
  2. install wireless-regdb, crda, wireless-tools, wpasupplicant

reboot a million times wlan0 does not show up when I type iwconfig. any ideas?

Documentation, guys! http://docs.openhab.org/installation/openhabian.html#features

Yes Wifi is working. openHABian hassle-free openHAB Setup

If that is really the case :slight_smile: try the German language forum:

1 Like

Please help - I´ve updated to OH2 stable using the procedure above, now OH2 is not starting anymore. I´ve waited several days but it does not seem to spin up. The latest entry in /var/log/openhab is right before I have started the upgrade.
Something seems to fire up since I can see some processes with ps:

[17:36:13] pi@openHABianPi:/usr/share/openhab2/runtime/bin$ sudo ps ax |grep openhab
22643 ?        Ss     0:00 /bin/bash /usr/share/openhab2/runtime/bin/karaf server
22794 ?        Sl     0:13 /usr/bin/java -Dopenhab.home=/usr/share/openhab2 -Dopenhab.conf=/etc/openhab2 -Dopenhab.runtime=/usr/share/openhab2/runtime - openhab.userdata=/var/lib/openhab2 -Dopenhab.logdir=/var/log/openhab2 -Dfelix.cm.dir=/var/lib/openhab2/config -Dorg.osgi.service.http.port=8080 -Dorg.osgi.service.http.port.secure=8443 -Djava.awt.headless=true -Djava.endorsed.dirs=/usr/lib/jvm/java-8-oracle/jre/jre/lib/endorsed:/usr/lib/jvm/java-8-oracle/jre/lib/endorsed:/usr/share/openhab2/runtime/lib/endorsed -Djava.ext.dirs=/usr/lib/jvm/java-8-oracle/jre/jre/lib/ext:/usr/lib/jvm/java-8-oracle/jre/lib/ext:/usr/share/openhab2/runtime/lib/ext -Dkaraf.instances=/usr/share/openhab2/runtime/instances -Dkaraf.home=/usr/share/openhab2/runtime -Dkaraf.base=/var/lib/openhab2 -Dkaraf.data=/var/lib/openhab2 -Dkaraf.etc=/var/lib/openhab2/etc -Dkaraf.restart.jvm.supported=true -Djava.io.tmpdir=/var/lib/openhab2/tmp -Djava.util.logging.config.file=/var/lib/openhab2/etc/java.util.logging.properties -Dkaraf.startLocalConsole=false -Dkaraf.startRemoteShell=true -classpath /usr/share/openhab2/runtime/lib/boot/org.apache.karaf.diagnostic.boot-4.0.8.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.jaas.boot-4.0.8.jar:/usr/share/openhab2/runtime/lib/boot/org.apache.karaf.main-4.0.8.jar:/usr/share/openhab2/runtime/lib/boot/org.osgi.core-6.0.0.jar org.apache.karaf.main.Main

But no OH processes seem to create a listening socket: sudo netstat -anp shows

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      898/exim4
tcp        0      0 0.0.0.0:1883            0.0.0.0:*               LISTEN      483/mosquitto
tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN      995/smbd
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN      995/smbd
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      403/sshd
tcp        0      0 192.168.0.200:22        192.168.0.177:65422     ESTABLISHED 19582/sshd: pi [pri
tcp        0    208 192.168.0.200:22        192.168.0.177:51390     ESTABLISHED 18321/sshd: pi [pri
tcp6       0      0 :::3000                 :::*                    LISTEN      402/grafana-server
tcp6       0      0 :::8088                 :::*                    LISTEN      396/influxd
tcp6       0      0 ::1:25                  :::*                    LISTEN      898/exim4
tcp6       0      0 :::1883                 :::*                    LISTEN      483/mosquitto
tcp6       0      0 :::445                  :::*                    LISTEN      995/smbd
tcp6       0      0 127.0.0.1:34311         :::*                    LISTEN      22794/java
tcp6       0      0 :::139                  :::*                    LISTEN      995/smbd
tcp6       0      0 :::80                   :::*                    LISTEN      905/apache2
tcp6       0      0 :::8086                 :::*                    LISTEN      396/influxd
tcp6       0      0 :::22                   :::*                    LISTEN      403/sshd
udp        0      0 192.168.0.200:123       0.0.0.0:*                           556/ntpd
udp        0      0 127.0.0.1:123           0.0.0.0:*                           556/ntpd
udp        0      0 0.0.0.0:123             0.0.0.0:*                           556/ntpd
udp        0      0 192.168.0.255:137       0.0.0.0:*                           977/nmbd
udp        0      0 192.168.0.200:137       0.0.0.0:*                           977/nmbd
udp        0      0 0.0.0.0:137             0.0.0.0:*                           977/nmbd
udp        0      0 192.168.0.255:138       0.0.0.0:*                           977/nmbd
udp        0      0 192.168.0.200:138       0.0.0.0:*                           977/nmbd
udp        0      0 0.0.0.0:138             0.0.0.0:*                           977/nmbd
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           400/avahi-daemon: r
udp        0      0 0.0.0.0:8032            0.0.0.0:*                           349/dhclient
udp        0      0 0.0.0.0:68              0.0.0.0:*                           349/dhclient
udp        0      0 0.0.0.0:50757           0.0.0.0:*                           400/avahi-daemon: r
udp6       0      0 fe80::ba27:ebff:fe5:123 :::*                                556/ntpd
udp6       0      0 2003:62:8c26:8a00:b:123 :::*                                556/ntpd
udp6       0      0 ::1:123                 :::*                                556/ntpd
udp6       0      0 :::123                  :::*                                556/ntpd
udp6       0      0 :::5353                 :::*                                400/avahi-daemon: r
udp6       0      0 :::19783                :::*                                349/dhclient
udp6       0      0 :::54792                :::*                                400/avahi-daemon: r

Many thanks
Jesko

Hey,
not much to go here. You were on some older snapshot build of openHAB2 and now there is probably some conflict between this build and the Release Build. If the snapshot was older, that was to be expected.

  1. Do a backup!
  2. Remove openHAB 2: sudo apt purge openhab2*
  3. Reinstall openHAB 2: sudo apt install openhab2

All details around these three steps can be found here: http://docs.openhab.org/installation/linux.html

Hi Thomas,

thanks - that´s what I was afraid of :slight_smile:

I´ve back-upped /var/lib/openhab2, /usr/share/openhab2 and /etc/openhab2 and followed your procedure above. If OH comes up again, can I restore my configuration to the running system? Spend several days for configuration…
Many Thanks
Jesko

http://docs.openhab.org/installation/linux.html#backup-and-restore

OK - i´ve copied back /etc/openhab2 and /var/lib/openhab2 and have restored the permissions…now I am stuck with the same behavior as above: no entries in /var/log/openhab and no network listeners…Please help :slight_smile:
Many thanks
Jesko