Package Details: openhab2 2.5.12-1

Git Clone URL: https://aur.archlinux.org/openhab2.git (read-only, click to copy)
Package Base: openhab2
Description: openHAB2 open source home automation software
Upstream URL: http://www.openhab.org/
Licenses: EPL
Conflicts: openhab-addons, openhab-beta, openhab-runtime
Submitter: ChaosKid42
Maintainer: ChaosKid42
Last Packager: ChaosKid42
Votes: 21
Popularity: 0.000346
First Submitted: 2017-05-03 13:24 (UTC)
Last Updated: 2021-05-23 11:17 (UTC)

Dependencies (2)

Required by (0)

Sources (6)

Latest Comments

ChaosKid42 commented on 2021-05-23 11:22 (UTC)

@spectroman: Fixed the source URL, so package can be built again. If your looking for current release of openhab, please head over to https://aur.archlinux.org/packages/openhab3/

xer01ne commented on 2020-12-04 20:43 (UTC) (edited on 2020-12-05 03:23 (UTC) by xer01ne)

Service fails after install. Java versions aren't properly configured. I tried zulu-8 and jre8 without a successful service start.

When zulu java is used, I get errors related to karaf and apache.

Dec 04 22:18:55 banshee start.sh[282854]: at org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:85)

Dec 04 22:18:55 banshee start.sh[282854]: at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.provide(ConfigurationManager.java:1118)

Dec 04 22:18:55 banshee start.sh[282854]: at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1074)

Dec 04 22:18:55 banshee start.sh[282854]: at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:138)

Dec 04 22:18:55 banshee start.sh[282854]: at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:105)

Dec 04 22:18:55 banshee start.sh[282854]: at java.lang.Thread.run(Thread.java:748)

Dec 04 22:18:55 banshee start.sh[282854]: org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Null object returned for RollingRandomAccessFile in Appenders. Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

Dec 04 22:18:55 banshee start.sh[282854]: org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Null object returned for RollingRandomAccessFile in Appenders. Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

Dec 04 22:18:55 banshee start.sh[282854]: org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "AUDIT" for logger config "org.apache.karaf.jaas.modules.audit" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

Dec 04 22:18:55 banshee start.sh[282854]: org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : Unable to locate appender "EVENT" for logger config "smarthome.event" Ignored FQCN: org.apache.logging.log4j.spi.AbstractLogger

ChaosKid42 commented on 2020-11-30 20:29 (UTC)

@lianse: Please try this: https://aur.archlinux.org/packages/openhab3/

lianse commented on 2020-11-30 16:49 (UTC)

Do you have any plans for 3.0 (which is due to december 21st 2020)? Maybe an openhab3 package which will conflict with openhab2 openhab-addons, openhab-beta and openhab-runtime (and updated openhab2 which will conflict with openhab3)

Afaik OH3 will depend on jre11

mantielero commented on 2020-10-28 20:25 (UTC)

It fails for me after installing it. It looks like the problem is that is not using the proper java version. Given that it requires java-runtime-headless=8, the way in which I managed to make it work is using something like:

sudo JAVA_HOME=/usr/lib/jvm/java-8-openjdk/jre /usr/share/openhab2/start.sh server

gibbz commented on 2020-10-26 08:05 (UTC)

This fails on a fresh install for me.... /var/log/openhab2/openhab.log Failed to bind to /0.0.0.0:8080

Anyone seen this before?

ChaosKid42 commented on 2020-08-10 14:19 (UTC)

@zynex: installing zulu-embedded-jdk8 will fix it as it provides java-runtime-headless=8.

zynex commented on 2020-08-10 08:56 (UTC)

@ChaosKid42 You are right that v8 is recommended, always used v11 without problems so far (don't use the old bindings). But none of the zulu-embedded* versions are listed in the dependencies, so I'm not sure if installing zulu-embedded-jdk8 will fix it?

ChaosKid42 commented on 2020-08-07 07:02 (UTC)

@neik: For me it shows BASIC UI, HABPANEL, HOME BUILDER, and PAPER UI.

neik commented on 2020-08-06 22:30 (UTC)

Hi, I got only the "PAPER UI" and "HABPANEL" (Ver.: 2.5.7) is this normal? My last installation (Ver.: 2.5.6) was with "HOME BUILDER" and "BASIC UI". My fault?

ChaosKid42 commented on 2020-07-31 07:10 (UTC)

@zynex: As of https://www.openhab.org/docs/installation/ java 11 is not recommended for openhab2. Why don't you use zulu-embedded-jdk8 from https://aur.archlinux.org/packages/zulu-embedded-jdk8/ ?

zynex commented on 2020-07-30 20:55 (UTC)

Is it possible to add zulu-embedded-jdk11 as optional to java-runtime-headless? OpenJDK is not recommended by to use due to limitations, but it's forced every time I update. The package zulu-embedded-jdk11 is the only one for Rpi's.

ChaosKid42 commented on 2020-05-23 18:55 (UTC)

@rutorai.pf,jenmonk: Maybe it helps to add the user "openhab" to the audio system group. I updated the package accordingly. If you already installed openhab2 then you need to add the openhab user to the audio group by yourself using something like sudo usermod -a -G audio openhab

jenmonk commented on 2020-05-22 21:05 (UTC)

same issue as rutorai.pf

rutorai.pf commented on 2020-04-03 09:06 (UTC) (edited on 2020-04-03 09:07 (UTC) by rutorai.pf)

Hello,

First, thanks for this package. It works well, but I've just one problem : no sound when I configure "System speakers". Anybody have the same problem ? Any special configuration I should be aware of with this package ?

I want to precise that, except with OpenHAB, sound works perfectly (firefox, audacious, hdmi, speakers, headphones)

Thanks and regards.

zynex commented on 2020-01-21 14:11 (UTC) (edited on 2020-01-21 14:26 (UTC) by zynex)

Stable release updated to 2.5.1, checksum 79907c05d1fa2b64a843dc1e2f7f46a8f3248f1d2d583604e3538ae5af7202de.

One thought thou, as for now you have to copy the addons file manually. Any thoughts about including it here or maybe have it as an additional build so it reflect the installed version?

iegubkin commented on 2020-01-17 02:22 (UTC) (edited on 2020-01-17 02:22 (UTC) by iegubkin)

In order to update from 2.4 to 2.5 I had to delete two folders and their contents:

/var/lib/openhab2/tmp
/var/lib/openhab2/cache

I also deleted the file:

/var/lib/openhab2/config/org/openhab/addons.config

I then reinstalled my bindings (zwave) and actions (xmpp). Items do not need to be reinstalled.

Teyro commented on 2019-12-25 21:12 (UTC)

Cant start it on ArchArm... :(

Dez 25 22:10:44 teyropi start.sh[20347]: at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:378) Dez 25 22:10:44 teyropi start.sh[20347]: at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:332) Dez 25 22:10:44 teyropi start.sh[20347]: at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:257) Dez 25 22:10:44 teyropi start.sh[20347]: at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:388) Dez 25 22:10:44 teyropi start.sh[20347]: at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1025) Dez 25 22:10:44 teyropi start.sh[20347]: at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:964) Dez 25 22:10:44 teyropi start.sh[20347]: at java.util.concurrent.FutureTask.run(FutureTask.java:266) Dez 25 22:10:44 teyropi start.sh[20347]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) Dez 25 22:10:44 teyropi start.sh[20347]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) Dez 25 22:10:44 teyropi start.sh[20347]: at java.lang.Thread.run(Thread.java:748)

doits commented on 2019-12-19 11:53 (UTC)

@JohnyRI I had the same problem, I think deleting everything in /var/lib/openhab2/tmp/ did the trick for me. Had to reinstall my bindings though, but after this everything seems to work now.

JohnyRi commented on 2019-12-19 08:04 (UTC)

Is anyone else getting the following error after upgrading to v 2.5.0?

[ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-package-standard': No matching features for openhab-package-standard/0

Googling suggested two actions: change package from standard to expert in /etc/openhab2/services/addons.cfg and deleting file /var/lib/openhab2/config/org/openhab/addons.config

I tried both and none of the suggested approaches worked. The only solution is to downgrade back to 2.4.0.

bebR commented on 2018-05-20 09:57 (UTC) (edited on 2018-06-02 12:04 (UTC) by bebR)

For serial devices to work, like RFXCOM or MySensors' serial gateway, the openhab user must be added to the uucp group.

@ChaosKid42: Could be add the openhab user to the uucp group? Because I think that any USB device (Zwave, MySensors, RFXCOM etc.) will get this issue. Thanks.

ChaosKid42 commented on 2018-04-11 16:42 (UTC)

@Frans-Willem: Done

Frans-Willem commented on 2018-04-10 20:10 (UTC)

Could you please add etc/default/openhab2 to the backup array? I've changed it to add extra command line arguments, but it's being overwritten each time I upgrade...

emkay commented on 2018-02-27 13:28 (UTC) (edited on 2018-02-27 13:28 (UTC) by emkay)

With latest oracle jre everything is ok.

emkay commented on 2018-02-27 13:06 (UTC)

With the latest update of jre8-openjdk-headless from version 8.u144-1 to 8.u162-1 I get fatal java error when starting openhab (A fatal error has been detected by the Java Runtime Environment: SIGSEGV (0xb) at pc=0x00007fa0271ed3b8, pid=16617, tid=0x00007fa0258c6700)

Frans-Willem commented on 2018-02-04 20:03 (UTC)

I too am no longer getting any entries in /var/log/openhab2/events.log or /var/log/openhab2/openhab.log since updating to 2.2.0. Has anyone found a solution to it yet ?

blahbla77 commented on 2018-01-05 14:34 (UTC)

the paths in the service file below seems to be wrong. I tried editing but didn't figure out the right path to this (seems to be linked with KARAF_ETC): Environment=OPENHAB_USERDATA=/opt/openhab/userdata I tried to change it to etc folder and got this error: KARAF_ETC is not valid: /etc/openhab2/etc

emkay commented on 2018-01-05 07:18 (UTC)

@blahbla77 I had the same problem. When I edited the service file like I commented below everything worked again.

ChaosKid42 commented on 2018-01-03 08:44 (UTC)

Strange. For me this works like a charm. Please look at my log output here: https://gist.github.com/ChaosKid42/82f7651e1e3cb6ecb592bef6f6f1e7e5

blahbla77 commented on 2018-01-02 18:14 (UTC)

journalctl -u openhab2 :Started The openHAB 2 Home Automation Bus Solution. :Launching the openHAB runtime...

all log files below /var/log/openhab2/ are empty

archlinux-java status java-8-jdk (default)

ChaosKid42 commented on 2018-01-01 17:29 (UTC)

@blabla77: what's in the journal? What's in /var/log/openhab2/openhab.log ?

Please note that openhab2 currently does not work with java 9.

blahbla77 commented on 2018-01-01 11:27 (UTC)

Everything seems to be installed ok and no errors when running, but I'm only getting connection refused from port 8080 or https 8443. Do I need to install jetty as well? if so, shouldn't it be a dependency?

emkay commented on 2017-12-18 18:35 (UTC) (edited on 2017-12-18 18:36 (UTC) by emkay)

The following openhab.service should be used, as the previous one did'nt start openhab anymore with version 2.2.0:

[Unit]

Description=openHAB 2 - empowering the smart home

Documentation=http://docs.openhab.org

Documentation=https://community.openhab.org

Wants=network-online.target

After=network-online.target

[Service]

Environment=OPENHAB_HOME=/opt/openhab

Environment=OPENHAB_CONF=/etc/openhab/conf

Environment=OPENHAB_RUNTIME=/opt/openhab/runtime

Environment=OPENHAB_USERDATA=/opt/openhab/userdata

Environment=OPENHAB_LOGDIR=/opt/openhab/userdata/logs

Environment=OPENHAB_STARTMODE=daemon

User=root

Group=root

WorkingDirectory=/opt/openhab

ExecStart=/opt/openhab/runtime/bin/karaf $OPENHAB_STARTMODE

ExecStop=/opt/openhab/runtime/bin/stop

TimeoutStopSec=120

[Install]

WantedBy=multi-user.target