openHAB 3.2 Milestone discussion

The release notes include everything that is correctly tagged on Github. In a few occasions (like this one), the maintainers forget doing so when merging a PR. But the change is nonetheless included!

1 Like

There appears to be an issue with the release notes as it lists new bindings that were already listed for the previous milestone. Unless there was a change to compare changes against the last stable release?

1 Like

You’re right, thanks for noticing. Not sure why they were added again, I have removed them from the new release notes now.

Also the (important) change in the Nuki binding is missing in the release notes.

1 Like

I’m seeing some icon related issues on M2. In the Items list under Settings, if I scroll down, the icons become incorrectly associated. If I filter the items list, the icons stay as they were when first loaded, even though the items are updated as expected.

It also seems that previously, if you had set a category, the icon for that item would immediately show up. Now I have to save, close out of the item, and then it will show the new icon.

1 Like

A quick question, which follows on from this topic.

  • Is openHAB3 limited to Java 11, or can it run on Java 17?

I ask because Michal of DietPi is offering to add openHAB to the DietPi Software menu (alongside Home-Assistant)

(All contributions and assistance would be most welcomed)

Thanks
Stuart

____ Update ____

Because I’m a gungho fool, I just updated a “fresh installation” of DietPi V7.5.2 to Debian Bullseye following these instructions.

It would seem that openHAB3 is trying to start, but crashes out after a few seconds.

root@openHAB2-C4:~# systemctl status openhab
● openhab.service - openHAB - empowering the smart home
     Loaded: loaded (/usr/lib/systemd/system/openhab.service; enabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Fri 2021-09-10 12:12:44 BST; 4s ago
       Docs: https://www.openhab.org/docs/
             https://community.openhab.org
    Process: 6566 ExecStart=/usr/share/openhab/runtime/bin/karaf ${OPENHAB_STARTMODE} (code=exited, status=255/EXCEPTION)
   Main PID: 6566 (code=exited, status=255/EXCEPTION)
root@openHAB2-C4:~# systemctl status openhab
● openhab.service - openHAB - empowering the smart home
     Loaded: loaded (/usr/lib/systemd/system/openhab.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2021-09-10 12:12:49 BST; 3s ago
       Docs: https://www.openhab.org/docs/
             https://community.openhab.org
   Main PID: 6730 (java)
      Tasks: 22 (limit: 3844)
     Memory: 53.7M
     CGroup: /system.slice/openhab.service
             └─6730 /usr/bin/java -XX:-UsePerfData -Dopenhab.home=/usr/share/openhab -Dopenhab.conf=/etc/openhab -Dopenhab.runtime=/usr/share/openhab/runtime -Dopenhab.userdata=/var/lib/openhab -Dopenhab.logdir=/var/log/openhab -Dfelix.c
m.dir=/var/lib/openhab/config -Djava.library.path=/var/lib/openhab/tmp/lib -Djetty.host=0.0.0.0 -Djetty.http.compliance=RFC2616 -Dnashorn.args=--no-deprecation-warning -Dorg.apache.cxf.osgi.http.transport.disable=true -Dorg.ops4j.pax.web
.listening.addresses=0.0.0.0 -Dorg.osgi.service.http.port=8080 -Dorg.osgi.service.http.port.secure=8443 -Djava.awt.headless=true --add-reads=java.xml=java.logging --add-exports=java.base/org.apache.karaf.specs.locator=java.xml,ALL-UNNAME
D --patch-module java.base=/usr/share/openhab/runtime/lib/endorsed/org.apache.karaf.specs.locator-4.3.2.jar --patch-module java.xml=/usr/share/openhab/runtime/lib/endorsed/org.apache.karaf.specs.java.xml-4.3.2.jar --add-opens java.base/j
ava.security=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.naming/javax.naming.spi=ALL-UNNAMED --add-opens java.rmi/sun.rmi
.transport.tcp=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.text=ALL-UNNAMED --add-opens java.base/java.time=ALL-UNNAMED --add-opens java.desktop/jav
a.awt.font=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.file=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.ftp=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED --add-exports=java.base/sun.n
et.www.protocol.https=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED --add-exports=java.base/sun.net.www.content.text=ALL-UNNAMED --add-exports=jdk.xml.dom/org.w3c.dom.html=ALL-UNNAMED --add-exports=jdk.naming.r
mi/com.sun.jndi.url.rmi=ALL-UNNAMED --add-exports java.security.sasl/com.sun.security.sasl=ALL-UNNAMED -Dkaraf.instances=/var/lib/openhab/tmp/instances -Dkaraf.home=/usr/share/openhab/runtime -Dkaraf.base=/var/lib/openhab -Dkaraf.data=/v
ar/lib/openhab -Dkaraf.etc=/var/lib/openhab/etc -Dkaraf.log=/var/log/openhab -Dkaraf.restart.jvm.supported=true -Djava.io.tmpdir=/var/lib/openhab/tmp -Djava.util.logging.config.file=/var/lib/openhab/etc/java.util.logging.properties -Dkar
af.startLocalConsole=false -Dkaraf.startRemoteShell=true -classpath /usr/share/openhab/runtime/lib/boot/org.apache.karaf.diagnostic.boot-4.3.2.jar:/usr/share/openhab/runtime/lib/boot/org.apache.karaf.jaas.boot-4.3.2.jar:/usr/share/openha
b/runtime/lib/boot/org.apache.karaf.main-4.3.2.jar:/usr/share/openhab/runtime/lib/boot/org.apache.karaf.specs.activator-4.3.2.jar:/usr/share/openhab/runtime/lib/boot/osgi.core-7.0.0.jar:/usr/share/openhab/runtime/lib/jdk9plus/istack-comm
ons-runtime-3.0.10.jar:/usr/share/openhab/runtime/lib/jdk9plus/jakarta.xml.bind-api-2.3.3.jar:/usr/share/openhab/runtime/lib/jdk9plus/javax.activation-1.2.0.jar:/usr/share/openhab/runtime/lib/jdk9plus/javax.annotation-api-1.3.1.jar:/usr/
share/openhab/runtime/lib/jdk9plus/jaxb-runtime-2.3.3.jar:/usr/share/openhab/runtime/lib/jdk9plus/txw2-2.3.3.jar org.apache.karaf.main.Main

Sep 10 12:12:49 openHAB2-C4 systemd[1]: Started openHAB - empowering the smart home.
root@openHAB2-C4:~# systemctl status openhab
● openhab.service - openHAB - empowering the smart home
     Loaded: loaded (/usr/lib/systemd/system/openhab.service; enabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Fri 2021-09-10 12:12:52 BST; 2s ago
       Docs: https://www.openhab.org/docs/
             https://community.openhab.org
    Process: 6730 ExecStart=/usr/share/openhab/runtime/bin/karaf ${OPENHAB_STARTMODE} (code=exited, status=255/EXCEPTION)
   Main PID: 6730 (code=exited, status=255/EXCEPTION)
root@openHAB2-C4:~# systemctl status openhab
● openhab.service - openHAB - empowering the smart home
     Loaded: loaded (/usr/lib/systemd/system/openhab.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2021-09-10 12:13:06 BST; 2s ago
       Docs: https://www.openhab.org/docs/
             https://community.openhab.org
   Main PID: 7053 (java)
      Tasks: 23 (limit: 3844)
     Memory: 53.2M
     CGroup: /system.slice/openhab.service
             └─7053 /usr/bin/java -XX:-UsePerfData -Dopenhab.home=/usr/share/openhab -Dopenhab.conf=/etc/openhab -Dopenhab.runtime=/usr/share/openhab/runtime -Dopenhab.userdata=/var/lib/openhab -Dopenhab.logdir=/var/log/openhab -Dfelix.c
m.dir=/var/lib/openhab/config -Djava.library.path=/var/lib/openhab/tmp/lib -Djetty.host=0.0.0.0 -Djetty.http.compliance=RFC2616 -Dnashorn.args=--no-deprecation-warning -Dorg.apache.cxf.osgi.http.transport.disable=true -Dorg.ops4j.pax.web
.listening.addresses=0.0.0.0 -Dorg.osgi.service.http.port=8080 -Dorg.osgi.service.http.port.secure=8443 -Djava.awt.headless=true --add-reads=java.xml=java.logging --add-exports=java.base/org.apache.karaf.specs.locator=java.xml,ALL-UNNAME
D --patch-module java.base=/usr/share/openhab/runtime/lib/endorsed/org.apache.karaf.specs.locator-4.3.2.jar --patch-module java.xml=/usr/share/openhab/runtime/lib/endorsed/org.apache.karaf.specs.java.xml-4.3.2.jar --add-opens java.base/j
ava.security=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.naming/javax.naming.spi=ALL-UNNAMED --add-opens java.rmi/sun.rmi
.transport.tcp=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.text=ALL-UNNAMED --add-opens java.base/java.time=ALL-UNNAMED --add-opens java.desktop/jav
a.awt.font=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.file=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.ftp=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED --add-exports=java.base/sun.n
et.www.protocol.https=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED --add-exports=java.base/sun.net.www.content.text=ALL-UNNAMED --add-exports=jdk.xml.dom/org.w3c.dom.html=ALL-UNNAMED --add-exports=jdk.naming.r
mi/com.sun.jndi.url.rmi=ALL-UNNAMED --add-exports java.security.sasl/com.sun.security.sasl=ALL-UNNAMED -Dkaraf.instances=/var/lib/openhab/tmp/instances -Dkaraf.home=/usr/share/openhab/runtime -Dkaraf.base=/var/lib/openhab -Dkaraf.data=/v
ar/lib/openhab -Dkaraf.etc=/var/lib/openhab/etc -Dkaraf.log=/var/log/openhab -Dkaraf.restart.jvm.supported=true -Djava.io.tmpdir=/var/lib/openhab/tmp -Djava.util.logging.config.file=/var/lib/openhab/etc/java.util.logging.properties -Dkar
af.startLocalConsole=false -Dkaraf.startRemoteShell=true -classpath /usr/share/openhab/runtime/lib/boot/org.apache.karaf.diagnostic.boot-4.3.2.jar:/usr/share/openhab/runtime/lib/boot/org.apache.karaf.jaas.boot-4.3.2.jar:/usr/share/openha
b/runtime/lib/boot/org.apache.karaf.main-4.3.2.jar:/usr/share/openhab/runtime/lib/boot/org.apache.karaf.specs.activator-4.3.2.jar:/usr/share/openhab/runtime/lib/boot/osgi.core-7.0.0.jar:/usr/share/openhab/runtime/lib/jdk9plus/istack-comm
ons-runtime-3.0.10.jar:/usr/share/openhab/runtime/lib/jdk9plus/jakarta.xml.bind-api-2.3.3.jar:/usr/share/openhab/runtime/lib/jdk9plus/javax.activation-1.2.0.jar:/usr/share/openhab/runtime/lib/jdk9plus/javax.annotation-api-1.3.1.jar:/usr/
share/openhab/runtime/lib/jdk9plus/jaxb-runtime-2.3.3.jar:/usr/share/openhab/runtime/lib/jdk9plus/txw2-2.3.3.jar org.apache.karaf.main.Main

Sep 10 12:13:06 openHAB2-C4 systemd[1]: Started openHAB - empowering the smart home.
root@openHAB2-C4:~# systemctl status openhab
● openhab.service - openHAB - empowering the smart home
     Loaded: loaded (/usr/lib/systemd/system/openhab.service; enabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Fri 2021-09-10 12:13:09 BST; 2s ago
       Docs: https://www.openhab.org/docs/
             https://community.openhab.org
    Process: 7053 ExecStart=/usr/share/openhab/runtime/bin/karaf ${OPENHAB_STARTMODE} (code=exited, status=255/EXCEPTION)
   Main PID: 7053 (code=exited, status=255/EXCEPTION)

Can anyone give any advice or suggestions?

Or do we say that openHAB3 must be run with Java 11?

Already answered in other topic, as it is off-topic here. Double posts are always a bad idea :wink:

1 Like

Can you open a GitHub webUI issue if not already done please. Always handy to get issues raised and fixed when code is fresh in people’s minds as there were some changes made to the icon system in 3.2

I am wondering if this is related to M2 (the timing makes me suspect that it is)…

Hi actually i receive some messages, cloud someone explain what could cause this?

2021-09-30 16:20:07.870 [INFO ] [control.internal.WebSocketConnection] - Web Socket close 1005. Reason: null
2021-09-30 16:21:18.160 [INFO ] [control.internal.WebSocketConnection] - Web Socket close 1005. Reason: null
2021-09-30 16:22:28.272 [INFO ] [control.internal.WebSocketConnection] - Web Socket close 1005. Reason: null
2021-09-30 16:23:39.268 [INFO ] [control.internal.WebSocketConnection] - Web Socket close 1005. Reason: null
2021-09-30 16:24:49.716 [INFO ] [control.internal.WebSocketConnection] - Web Socket close 1005. Reason: null

That has nothing to do with M2.
Have a look here, Amazon is seemingly tinkering.

2 Likes

Okay, the Messages came up after upgrade to M2.

But many thanks for your information.

Did rule reloading stop working on 3.2M2? I haven’t investigated further but downgrading to 3.2M1 fixed the problem.

By rule reloading I mean when you make changes to a rule file (in my case jruby, but it applies to jython / dsl I too I guess), openhab didn’t seem to reload / re-execute it.

Hello, I updated 10min before to M3 and I see a strange behavior.

If I restart the system or the openHAB service - than all handlers are missing. If I stop the openHAB service and Clean-Cache and than start it’s all fine. I am on openhabian latest stable.

I am the only one with this behavior???

I had something similar happen when I went to m2, have not seen it return and I have done a lot of restarts the past month. I think it only happened on the first restart directly after doing the m2 upgrade. Why it happened on the first reboot after its first startup, I have no idea, but it has not happened since.

@matt1 thanks for your hint.

yes, I saw this also in m2 but there it was only once. Now it’s Everytime there. I will open an issue on GitHub. https://github.com/openhab/openhab-distro/issues/1321

@Kai if you or your team need more input to check this issue. Let me know.

Happy to report that Main UI (using Firefox) is much more stable in M3. Until (and including) M2 I had to refresh the screen very often (probably 25% when I changed page), and sometimes DSL rules were not properly saved. Now these two issues seem to be fixed.

after upgrade, cant reach the service:

The ports openHAB will bind its HTTP/HTTPS web server to.

OPENHAB_HTTP_PORT=1080
OPENHAB_HTTPS_PORT=10443

root@ccu3:/home/pi# service openhab status
● openhab.service - openHAB instance, reachable at http://ccu3:8080
Loaded: loaded (/usr/lib/systemd/system/openhab.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/openhab.service.d
└─override.conf
Active: active (running) since Mon 2021-10-0

It seems to run… strange but ok^^

I send out an email with the log file to kai regarding my loading issue. I still have the same behavior

I’ve seen this error on the most recent milestone M3:

  • Administration/Settings
    • Model - open location
    • Create Equipment from Thing
    • Select thing…

16.app.js:1

   Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'localeCompare')
at 16.app.js:1
at Array.sort (<anonymous>)
at 16.app.js:1