-
-
Notifications
You must be signed in to change notification settings - Fork 501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DietPi-Software | Add openHAB to software catalogue #6334
Conversation
MichaIng
commented
Apr 23, 2023
- openHAB | This long requested vendor and technology agnostic FLOSS home automation software has been finally added to DietPi. Many thanks to @just-jason and many others for requesting it and @MDAR for providing install instructions and valuable information: DietPi-Software | openHAB #3857
Install tests: https://github.com/MichaIng/DietPi/actions/runs/4779187555
|
Works with Java 17 but not with Java 8 => no support for ARMv6 RPi models:
Logging can be easily moved to STDOUT to have everything available at What I'm unsure whether to keep or to remove is |
Ah nice, actually there is a ... testing ... ... it just works 🈯 https://github.com/MichaIng/DietPi/actions/runs/4779187555/jobs/8496793542 |
- openHAB | This long requested vendor and technology agnostic FLOSS home automation software has been finally added to DietPi. Many thanks to @just-jason and many others for requesting it and @MDAR for providing install instructions and valuable information: #3857
When I get back to my office in Wednesday, I'll build a fresh Odroid C4 and test this. What is an approving review and how do I do it? (Or is this it?) |
its fine if you post your findings. Nothing to approve within GitHub. |
"Formal" reviews can only be done by repository "collaborators". But while we can test the installation and whether we can access the web UI, CLI etc, it is quite valuable when someone tests it who uses openHAB already, to see whether everything is working the same way (or better) as when following other install instructions + whether the used integrations/addons work fine 🙂. Also regarding some questions/decisions that came up: E.g. is there a downside when disabling logging to files in |
Tested on port 8089 and with branch "openhab" in dietpi.txt: |
Did a test install on VisionFive 2 (RISC-V SBC):
See the first line, which contains many However, despite that, the UI is up and I could create and setup an account. So I'll leave it inside now and will ask on the openHAB forum for RISC-V support. The whole architecture is for testing, so not a problem when some software titles are somewhat in a non-stable state, as long as they do generally install and start. |
I'm probably being very thick.. Do I need to use a bleeding edge branch to see openHAB in the software menu? Should I change to the Beta branch? https://github.com/MichaIng/DietPi/blob/master/BRANCH_SYSTEM.md |
Worth to note, openHAB 3.x.x requires Java 11 and openHAB 4.0 requires Java 17. |
Yes, quick switch: G_DEV_BRANCH dev You can also wait for the beta in a few hours, then G_DEV_BRANCH beta With a
Oh very good to know, as v4 is in the pipeline. Hmm, then we need to find out how to limit the package version, since it has no package-wise dependency on Java. Probably easier to simply disable it on Buster all together. Users should anyway upgrade to Bullseye.
It does, at least as far as I tested. Probably not every addon, we'll see. But we cannot implement an extra Java installation just for a single software title. If there are really some edge case issues, they will be solved with openHAB 4 soon. |
One of the main issues will be removal of Nashorn in Java 17, which will cause trouble with automation rules. If I am not mistaken, openHAB 4 package now has a check for Java version. |
There is a standalone OpenJDK Nashorn project which does support recent Java versions: https://github.com/openjdk/nashorn But I guess openHAB would need to explicitly support it. Ah, I guess this is what you mean with "In openHAB 4, we have packages for Nashon" 😄. We could use the openHAB testing branch on Bullseye and up for now, offering users to migrate back to stable once openHAB 4 has been released. Alternatively, on Bullseye, the Java 11 packages are still available, so we could install it there. But I'm generally more for going forward in these regards, especially for newly implemented software titles. |
Yes, you can install the Nashorn package if needed, but there are more changes for full java 17 support, also a karaf update was required. Indeed, going for the testing branch, which will include the already very stable milestone builds would be a way to go. We plan to release openHAB 4 end of June, so a switch to stable branch could be done then. |
Okay, sounds good. I'll implement the change later.
But I guess not as hard package dependency, i.e. it does not prevent the package upgrade on e.g. Debian Buster with OpenJDK 11 installed, does it? Would be also troublesome for users which use Adoptium JRE builds or compile it themselves. I'll have a look, should be possible to solve this via APT pinning. |
@BClark09 can you comment on this. I remember you did change the Java check last month. |
Thanks @hmerk!
The apt package only 'suggests', rather than 'recommends' or 'requires' for the reasons you mentioned. openHAB 4.x: https://github.com/openhab/openhab-linuxpkg/blob/master/build.gradle#L207 There is a check post-install which warns the user if no compatible version of Java is found. |
- DietPi-Software | openHAB: Use testing suite == openHAB 4 from Bullseye on since openHAB 3 does not fully support Java 17: #6334 (comment)
Testing suite implemented: 70c46ec |