openHAB 4.0 Milestone discussion

This topic can be used for any discussions around the openHAB 4.0 Milestone builds as it has been announced in openHAB 4.0 Milestone Builds.

6 Likes

Congrats on reaching the first milestone!

EDIT: Iā€™ve been having a slow startup problem, but it might be related to my config. A clean install doesnā€™t have this issue.

Great work everyone!

At the moment the documentation around Blockly OH3 ā†’ OH4 conversion could be interpreted in different ways. Can someone confirm:

  • Do we need to install the automation plugin for Nashorn before converting (by opening an OH3 Blockly script and re-saving it)?

If you want to convert your Blocklies to GraalJS, you donā€™t need to install the Nashorn automation plugin.

You only need to install the JavaScript automation plugin (JavaScript Scripting - Automation | openHAB, not the Nashorn version), open your Blocklies and click save.

@stefan.hoehn We probably need to improve the docs.

2 Likes

how to upgrade step by step Java 11 to 17!!!

1 Like

Depends how you did install Java 11 in the first place.
What OS ?
How was Java installed ?

Release = Raspbian GNU/Linux 10 (buster)

Kernel = Linux 5.10.103-v7l+

[16:06:42] root@openhabian:/home/openhabian# curl -s https://repos.azul.com/azul-repo.key | sudo gpg --dea rmor -o /usr/share/keyrings/azul.gpg
File ā€˜/usr/share/keyrings/azul.gpgā€™ exists. Overwrite? (y/N) y
[16:10:55] root@openhabian:/home/openhabian# apt update
Get:1 http://davesteele.github.io/comitup/repo comitup InRelease [4,659 B]
Hit:2 Index of /raspbian buster InRelease
Hit:3 Index of /debian buster InRelease
Hit:4 Index of /node_14.x/ buster InRelease
Hit:5 https://repos.azul.com/zulu/deb stable InRelease
Hit:6 JFrog testing InRelease
Fetched 4,659 B in 2s (2,385 B/s)
Reading package listsā€¦ Done
Building dependency tree
Reading state informationā€¦ Done
All packages are up to date.
N: Skipping acquire of configured file ā€˜main/binary-armhf/Packagesā€™ as repository ā€˜https://repos.azul.com/ zulu/deb stable InReleaseā€™ doesnā€™t support
architecture ā€˜armhfā€™

[16:14:34] root@openhabian:/home/openhabian# sudo apt install zulu17-jdk
Reading package listsā€¦ Done
Building dependency tree
Reading state informationā€¦ Done
E: Unable to locate package zulu17-jdk
[16:15:23] root@openhabian:/home/openhab

Fist and most important, thanks for the great work and the effort!

I could not find any information regarding Jython, is it still working with the 4.0 Milestone release?

Thanks for your help!
Juelicher

Please help!! Updated without reading from Openhab3 to openhab 4 via openhabian-config/ Now openhab doesnā€™t start, what can I do? How to update Java 11 to Java 17?

1 Like

You can install openJDK Java 17.
Either via openHABian-config tool or direct package installation.

sudo apt-get install openjdk-jre-17-headless

If I remember correct

Donā€˜t push this way. You wonā€˜t get quicker answers if repeating your question within short time.
In the meantime you could have googled how to get Java 17 on your Piā€¦

If you have further questions on this one, please open a new topic as it is not Milestone related.

a) make sure to use the stable repo instead of testing. this would enable you to switch back to OH 3.4.2. In case the configuration files are already touched you may have a problem. Especially in case there is no backup.

or

b) Install Java17. Looks like Zulu 17 is not available via repo for armhf. I think it is possible to download it from Java 8, 11, 17, 21, 22 Download for Linux, Windows and macOS manually in a tar file and install it. I did not check.

Do I need to uninstall java 11 on my Raspbian system before installing java 17?

Not necessarily, you can switch different versions with ā€žalternativesā€œ

1 Like

Iā€™m not an expert, but I wrote this up to document what I did to get Java17 running with Buster. I consider this a temporary solution. Might help someone, but no promises. Iā€™m sure there are better ways to do this, but this worked for me. The zulu site I used is [here] (near the bottom). (Java Download | Java 7, Java 8, Java 11, Java 13, Java 15, Java 17, Java 19 - Linux, Windows & macOS).
Update Buster to Java17.pdf (482.7 KB)

3 Likes

Great work everyone!
I just upgraded to 4.0.0.M1 and everything seems to be working fine so far, but I get these errors related to the HarmonyHub/HomeConnect bindings at startup:

2023-03-11 14:01:10.417 [WARN ] [core.thing.internal.ThingManagerImpl] - Channel types or config descriptions for thing 'harmonyhub:device:LivingRoom:60292581' are missing in the respective registry for more than 120s. This should be fixed in the binding.
2023-03-11 14:01:10.418 [WARN ] [core.thing.internal.ThingManagerImpl] - Failed to normalize configuration for thing 'harmonyhub:device:LivingRoom:60292581': {thing/channel=Type description for {0} not found although we checked the presence before.}
2023-03-11 14:01:10.418 [WARN ] [core.thing.internal.ThingManagerImpl] - Channel types or config descriptions for thing 'harmonyhub:device:LivingRoom:60292583' are missing in the respective registry for more than 120s. This should be fixed in the binding.
2023-03-11 14:01:10.419 [WARN ] [core.thing.internal.ThingManagerImpl] - Failed to normalize configuration for thing 'harmonyhub:device:LivingRoom:60292583': {thing/channel=Type description for {0} not found although we checked the presence before.}
2023-03-11 14:01:10.419 [WARN ] [core.thing.internal.ThingManagerImpl] - Channel types or config descriptions for thing 'harmonyhub:device:LivingRoom:77733401' are missing in the respective registry for more than 120s. This should be fixed in the binding.
2023-03-11 14:01:10.419 [WARN ] [core.thing.internal.ThingManagerImpl] - Failed to normalize configuration for thing 'harmonyhub:device:LivingRoom:77733401': {thing/channel=Type description for {0} not found although we checked the presence before.}
2023-03-11 14:01:10.419 [WARN ] [core.thing.internal.ThingManagerImpl] - Channel types or config descriptions for thing 'harmonyhub:device:LivingRoom:76995753' are missing in the respective registry for more than 120s. This should be fixed in the binding.
2023-03-11 14:01:10.419 [WARN ] [core.thing.internal.ThingManagerImpl] - Failed to normalize configuration for thing 'harmonyhub:device:LivingRoom:76995753': {thing/channel=Type description for {0} not found although we checked the presence before.}
2023-03-11 14:01:10.419 [WARN ] [core.thing.internal.ThingManagerImpl] - Channel types or config descriptions for thing 'harmonyhub:device:LivingRoom:77785115' are missing in the respective registry for more than 120s. This should be fixed in the binding.
2023-03-11 14:01:10.420 [WARN ] [core.thing.internal.ThingManagerImpl] - Failed to normalize configuration for thing 'harmonyhub:device:LivingRoom:77785115': {thing/channel=Type description for {0} not found although we checked the presence before.}
2023-03-11 14:01:10.420 [WARN ] [core.thing.internal.ThingManagerImpl] - Channel types or config descriptions for thing 'homeconnect:dishwasher:202210be59:0e61f827a1' are missing in the respective registry for more than 120s. This should be fixed in the binding.
2023-03-11 14:01:10.420 [WARN ] [core.thing.internal.ThingManagerImpl] - Failed to normalize configuration for thing 'homeconnect:dishwasher:202210be59:0e61f827a1': {thing/channel=Type description for {0} not found although we checked the presence before.}
2023-03-11 14:01:10.435 [WARN ] [core.thing.internal.ThingManagerImpl] - Channel types or config descriptions for thing 'harmonyhub:device:LivingRoom:60946348' are missing in the respective registry for more than 120s. This should be fixed in the binding.
2023-03-11 14:01:10.436 [WARN ] [core.thing.internal.ThingManagerImpl] - Failed to normalize configuration for thing 'harmonyhub:device:LivingRoom:60946348': {thing/channel=Type description for {0} not found although we checked the presence before.}
2023-03-11 14:01:10.436 [WARN ] [core.thing.internal.ThingManagerImpl] - Channel types or config descriptions for thing 'harmonyhub:hub:LivingRoom' are missing in the respective registry for more than 120s. This should be fixed in the binding.
2023-03-11 14:01:10.437 [WARN ] [core.thing.internal.ThingManagerImpl] - Failed to normalize configuration for thing 'harmonyhub:hub:LivingRoom': {thing/channel=Type description for {0} not found although we checked the presence before.}

I have already deleted/added all related things, but the error remains.

I think this might be a pending fix for that:

2 Likes

I would love to test but not having inline JS is a show stopper for me. Will this be included in time for M2 ?

I made it now more comprehensive. I hope this makes it much clearer. It is already merged and soon be online for everyone:

Btw, this also applies to all JS Scripting Rules that have the MIME-Type application/javascript from openHAB3 (see the release notes)

1 Like

Thereā€™s already a PR for supporting it. It doesnā€™t look like a lot of code :slight_smile: but I donā€™t know how well it works because it is still ā€œDraftā€: