Compare commits

...

165 Commits

Author SHA1 Message Date
lo92fr
9788bb2f18
Merge 40202b1641 into adacdebb9f 2025-01-08 22:48:27 +01:00
Robert Michalak
adacdebb9f
[digiplex] Handle erroneous responses and restart the bridge (#18035)
Signed-off-by: Robert Michalak <rbrt.michalak@gmail.com>
2025-01-08 22:21:07 +01:00
jimtng
d36b2a8d82
[basicprofiles] Add a table-of-contents at top of README.md (#18058)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-01-08 20:15:25 +01:00
Mark Herwege
5ac2780749
fix offline when image not available (#18066)
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2025-01-08 20:03:21 +01:00
Holger Friedrich
ffa2d1722d
Fix JavaDoc output directory (#18064)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-01-07 22:56:07 +01:00
Jacob Laursen
d1227151e1
Correct maintainer for the Broadlink binding (#18044)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2025-01-07 22:40:43 +01:00
Wouter Born
8672ed0208
Start license headers with /* instead of /** (#18061)
Prevents JavaDoc tooling issues because these tools check comments starting with `/**`.

Signed-off-by: Wouter Born <github@maindrain.net>
2025-01-07 22:33:03 +01:00
Wouter Born
993129a2c3
Upgrade SAT to 0.17.0 (#18060)
For release notes, see:

https://github.com/openhab/static-code-analysis/releases/tag/0.17.0

Signed-off-by: Wouter Born <github@maindrain.net>
2025-01-07 21:21:10 +01:00
lsiepel
7639b1c3e5
Fix SAT errors (#18047)
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
2025-01-06 21:56:13 +01:00
Jeremy
8a442d9aff
[insteon] Fix scene channel state updates (#18050)
Signed-off-by: Jeremy Setton <jeremy.setton@gmail.com>
2025-01-06 21:51:11 +01:00
Jeremy
51b5c89b6b
[insteon] Add device refresh all command parameter (#18051)
Signed-off-by: Jeremy Setton <jeremy.setton@gmail.com>
2025-01-06 13:09:20 +01:00
Jeremy
19ca89c301
[insteon] Fix legacy all link broadcast message not processed (#18049)
Signed-off-by: Jeremy Setton <jeremy.setton@gmail.com>
2025-01-06 13:08:17 +01:00
mlobstein
b4bcf802f4
[benqprojector] Fix response processing for newer projectors (#18009)
* Fix message processing for newer projectors

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
2025-01-05 22:14:30 +01:00
Anton Jansen
b5203ebff4
Fixed bug in documentation for migrating old configurations. (#18045)
Signed-off-by: AntonJansen <gradius@fmf.nl>
2025-01-05 15:59:39 +01:00
Michael Fielding
304f51f66e
Update Broadlink binding README.md (#18039)
Clarify some aspects and add context for less familiar users. Correct a few typos.

Signed-off-by: Michael Fielding <michael.fielding@gmail.com>
2025-01-05 15:57:13 +01:00
Holger Friedrich
bbec3d59f8
Upgrade plugins (#18042)
* maven-site-plugin to 3.21.0
* maven-plugin-plugin to 3.15.1

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-01-05 14:18:03 +01:00
Holger Friedrich
32586c096f
[velbus] Update license headers to 2025 (#18041)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-01-05 10:03:00 +01:00
Holger Friedrich
26749f0fc1
Upgrade plugins (#18037)
* frontend-maven-plugin to 1.15.1
* license-maven-plugin to 4.6
https://github.com/mathieucarbou/license-maven-plugin/releases
* maven-clean-plugin to 3.4.0
https://github.com/apache/maven-clean-plugin/releases/tag/maven-clean-plugin-3.4.0
* maven-dependency-plugin to 3.8.1
* maven-deploy-plugin to 3.1.3
* maven-enforcer-plugin to 3.5.0
https://github.com/apache/maven-enforcer/releases
* maven-failsafe-plugin to 3.5.2
* maven-install-plugin to 3.1.3
https://github.com/apache/maven-install-plugin/releases
* maven-jar-plugin to 3.4.2
https://github.com/apache/maven-jar-plugin/releases/tag/maven-jar-plugin-3.4.2
* maven-javadoc-plugin to 3.11.2
* maven-release-plugin to 3.1.1
* maven-site-plugin to 3.21.0
* maven-surefire-plugin to 3.5.2
* build-helper-maven-plugin to 3.6.0
https://github.com/mojohaus/build-helper-maven-plugin/releases/tag/3.6.0

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-01-05 00:47:18 +01:00
Jeremy
11baab4231
[insteon] Fix x10 device message handling (#18031)
Signed-off-by: Jeremy Setton <jeremy.setton@gmail.com>
2025-01-05 00:44:31 +01:00
Daniel Rosengarten
e611b5d368
[velbus] New functionality & Bug fix (#17926)
* [velbus] New functionnality & Bug fix

Signed-off-by: Daniel Rosengarten <github@praetorians.be>
Signed-off-by: Daniel Rosengarten <rosengarten01@hotmail.com>
Co-authored-by: Simonas Kazlauskas <github@kazlauskas.me>
2025-01-04 21:15:44 +01:00
Jeremy
d54a51b732
[insteon] Add modem database backup restore console commands (#17958)
Signed-off-by: jsetton <jeremy.setton@gmail.com>
2025-01-04 21:10:41 +01:00
Catalin Sanda
36cff511b9
Fix issue openhab/openhab-addons#17959 where new channels could not be added in the Web UI (#18016)
Signed-off-by: Catalin Sanda <catalin.sanda@gmail.com>
2025-01-04 21:05:43 +01:00
Jacob Laursen
8a3baf8003
Fix NullPointerException (#18034)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2025-01-04 19:59:11 +01:00
lsiepel
7cc9903158
Add Christmas Tree (#17950)
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
2025-01-04 16:24:23 +01:00
Jacob Laursen
563caa0762
[energidataservice] Improve rule example for calculating totals (#18024)
* Improve rule example for calculating totals

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Co-authored-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-01-03 23:16:28 +01:00
Ethan Dye
705feffd54
[omnilink] Improve code quality (#18017)
* Fix minor spelling errors
* Reduce code complexity

Signed-off-by: Ethan Dye <mrtops03@gmail.com>
2025-01-03 08:46:47 +01:00
Jacob Laursen
6af04fc31f
Remove space before colon (#18023)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2025-01-02 21:38:39 +01:00
Cody Cutrer
22c7ca99ad
[mqtt.homeassistant] Re-fix null component name (#18021)
Re-fixes #15427, regressed from #17933

Signed-off-by: Cody Cutrer <cody@cutrer.us>
2025-01-02 17:00:35 +01:00
Wouter Born
d6476042ec
Update license headers to 2025 (#18015)
* Update license headers to 2025

Signed-off-by: Wouter Born <github@maindrain.net>
2025-01-02 00:30:12 +01:00
Holger Friedrich
1a4cebd281
[mqtt.homeassistant] Fix build (#18014)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-01-01 23:16:14 +01:00
Holger Friedrich
6978b9978b
[knx] Allow color temperatures specified in mired (#18004)
This allows other bindings or scripts to send commands
which specify the color temperature in mired.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-01-01 11:40:10 +01:00
Cody Cutrer
36802db90e
[mqtt.homeassistant] Remove newStyleChannels temporary back-compat (#17908)
This includes removing deprecated channel IDs controlled by the same flag.

Signed-off-by: Cody Cutrer <cody@cutrer.us>
2024-12-31 21:08:28 +01:00
akallabeth
d4cbc5f839
[xmpp] Add action for sending a group message (#17938)
* implement group message sending

Signed-off-by: akallabeth <akallabeth@posteo.net>
2024-12-31 20:36:07 +01:00
mlobstein
05382279a9
[epsonprojector] Add retrieval of source list (#18006)
* Add retrieval of source list

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
2024-12-31 20:28:29 +01:00
jimtng
34d8fec597
[basicprofiles] Fix delta state filter handling of negative values (#17997)
* [basicprofiles] Pass the initial data for delta state filter

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-12-31 20:23:41 +01:00
Holger Friedrich
37c491bcd1
Upgrade JaCoCo to 8.12 (#18005)
Upgrades JaCoCo and corrensponding maven plugin from 8.11 to 8.12.
See changelog:
https://www.jacoco.org/jacoco/trunk/doc/changes.html

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-12-30 22:48:34 +01:00
Bernd Weymann
1b02f98b46
bugfix discovery and thing properties (#18003)
Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
2024-12-30 13:05:20 +01:00
Jeremy
33d3577230
[insteon] Fix motion sensor device type config typo (#18002)
Signed-off-by: Jeremy Setton <jeremy.setton@gmail.com>
2024-12-30 09:07:38 +01:00
ulfwin
057993bb40
Added note about required yearly manual step (#18000)
* Added note about required yearly manual step

Signed-off-by: ulfwin <ulfwin@gmail.com>
2024-12-30 09:06:00 +01:00
Cody Cutrer
dcb6d6e2c2
[mqtt.generic] create the proper item type for channels with units (#17929)
* [mqtt.generic] create the proper item type for channels with units

Signed-off-by: Cody Cutrer <cody@cutrer.us>
2024-12-29 19:18:36 +01:00
openhab-bot
9e6be5a9e0
New Crowdin updates (#17999)
* New translations netatmo.properties (Italian)
* New translations livisismarthome.properties (Italian)
2024-12-29 19:05:00 +01:00
Jeremy
33b19419b6
[pushbullet] Replace deprecated URL constructor (#17982)
Signed-off-by: Jeremy Setton <jeremy.setton@gmail.com>
2024-12-29 02:02:33 +01:00
Gaël L'hopital
df1ee5fda3
[netatmo] API limit reached handling (#16489)
Signed-off-by: Gaël L'hopital <gael@lhopital.org>
2024-12-29 00:58:00 +01:00
Sven Strohschein
7b986e03d0
[livisismarthome] Add support for rebooting the smart home controller (#16969)
Signed-off-by: Sven Strohschein <sven.strohschein@gmail.com>
Signed-off-by: Sven Strohschein <novanic@gmx.de>
2024-12-29 00:26:00 +01:00
Dan Cunningham
e2571d6f09
[openhabcloud] Send the correct response status text (#17994)
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
2024-12-28 19:06:08 +01:00
openhab-bot
c21122a3d2
New translations openaitts.properties (Italian) (#17995) 2024-12-28 17:59:43 +01:00
GiviMAD
3d547fffeb
[pipertts] Fix library load on windows (#17993)
Signed-off-by: Miguel Alvarez Diez <miguelwork92@gmail.com>
2024-12-28 17:04:31 +01:00
Holger Friedrich
d14749bb64
[persistence.jpa] Upgrade Apache Derby to 10.17.1.0 (#17990)
- Upgrade derby from 10.16.1.1 to 10.17.1.0 (requires Java 21)
- Upgrade openjpa from 4.0.0 to 4.0.1
- Upgrade jakarta.el-api from 6.0.0-RC1 to 6.0.1

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-12-28 07:58:15 +01:00
lsiepel
f225140bee
Update async-http-client (#17973)
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
2024-12-27 14:05:01 +01:00
Jeremy
24f4fc3d70
[insteon] Add led brightness on level channel parameter (#17987)
Signed-off-by: jsetton <jeremy.setton@gmail.com>
2024-12-27 00:19:58 +01:00
Jeremy
bbdf3e3479
[insteon] Fix led command stack overflow error (#17977)
Signed-off-by: jsetton <jeremy.setton@gmail.com>
2024-12-26 23:54:24 +01:00
Kai Kreuzer
c31bcb2026
Fix artifact name for PiperTTS (#17986)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2024-12-26 23:02:52 +01:00
lsiepel
1e7d01c578
Fix NumberFormatException (#17983)
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
2024-12-26 00:26:47 +01:00
Jeremy
c7e7f3059a
[insteon] Fix legacy backward compatibility (#17981)
Signed-off-by: jsetton <jeremy.setton@gmail.com>
2024-12-25 23:04:43 +01:00
jimtng
d049995e56
[mqtt.generic] Fix ClassCastException when receiving ON/OFF on a dimmer channel (#17980)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-12-25 16:32:26 +01:00
Manfred Krämer
2f2cf22332
[tapocontrol] Add Smart Switches S210 and S220 (#17927)
* Tapo Smart Switches S210 and S220 added

Signed-off-by: mkmannmanny <mk@die5kraemers.de>
Signed-off-by: Manfred Krämer <46526724+mkmannmanny@users.noreply.github.com>
2024-12-25 11:30:04 +01:00
Dan Cunningham
0e5e48f763
[upnpcontrol] Fix IllegalArgumentException when downloading album art (#17965)
* Stip whitespace from album art URI

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
2024-12-24 21:10:48 +01:00
Artur-Fedjukevits
7c6e658f56
[openaitts] OpenAI Text-to-Speech initial contribution (#17733)
Also-by: Wouter Born <github@maindrain.net>
Signed-off-by: Artur-Fedjukevits <fedjukevitsh@gmail.com>
2024-12-24 18:19:25 +01:00
lsiepel
50e3ca62c0
[network] Fix last-seen channel being set to UNDEF at startup (#17971)
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
2024-12-24 15:37:16 +01:00
Stefan Giehl
7e9966989a
[pihole] fix enableBlocking action (#17967)
fixes #17966

Signed-off-by: Stefan Giehl <stefan@matomo.org>
2024-12-24 01:11:11 +01:00
Stefan Roellin
86762e0e9b
[pulseaudio] Markdown documentation fixes (#17963)
Signed-off-by: Stefan Roellin <stefan@roellin-baumann.ch>
2024-12-23 21:16:18 +01:00
jimtng
d253e2cd2e
[jrubyscripting] Remove Compilable implementation (#17960)
due to a bug in JRuby https://github.com/jruby/jruby/issues/8346

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-12-23 15:48:46 +01:00
Andrew Fiddian-Green
5eb47a042f
[govee] Fix brightness vs. color synchronization (#17812)
* [govee] Fix synchronization of brightness

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2024-12-23 14:31:00 +01:00
JankKeks
5c762848b5
[freeathome] Fix not updating values of room temperature devices (#17957)
* Fixed Pathnaming matching new binding name
Signed-off-by: JankKeks <jan.krumnow@gmx.de>
2024-12-23 14:21:53 +01:00
openhab-bot
2cd8902017
New translations netatmo.properties (Italian) (#17952) 2024-12-22 15:56:31 +01:00
Wouter Born
420454b5b7
Update OH version in skeleton scripts (#17951)
Signed-off-by: Wouter Born <github@maindrain.net>
2024-12-22 12:19:39 +01:00
Florian Hotze
5e7d2fc5da
[jsscripting] Upgrade GraalJS from 22.0.0.2 to 24.1.1 (#17720)
* [jsscripting] Upgrade GraalJS to 23.0.6

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-12-22 08:09:09 +01:00
Marcel
62cdb14c74
[miio] Add support for Smart Air Purifier 4 Lite zhimi.airp.rmb1 (#17680)
* [miio] add support for Smart Air Purifier 4 Lite zhimi.airp.rmb1

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2024-12-22 00:51:32 +01:00
Jeremy
1b75e03ca8
[insteon] Refactor iostream transport classes (#17930)
Signed-off-by: jsetton <jeremy.setton@gmail.com>
2024-12-22 00:47:36 +01:00
Andrew Fiddian-Green
6acfeb65f3
[amazonechocontrol] Support QuantityType Color Temperature command (#17919)
* [various] process color temperature quantity type commands

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2024-12-21 12:32:03 +01:00
Andrew Fiddian-Green
31e0bb601c
[tapocontrol] support QuantityType commands (#17944)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2024-12-21 12:22:56 +01:00
Andrew Fiddian-Green
57577f42a9
[hue] improve QuantityType command (#17948)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2024-12-21 12:20:45 +01:00
Andrew Fiddian-Green
da6dde5cad
[shelly] support QuantityType commands (#17947)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2024-12-21 12:18:22 +01:00
Andrew Fiddian-Green
56d447fa77
[tplinksmarthome] support QuantityType commands (#17946)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2024-12-21 12:17:03 +01:00
Andrew Fiddian-Green
108067ac4b
[lifx] fix QuantityType command (#17943)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2024-12-21 12:13:41 +01:00
Andrew Fiddian-Green
c48752e6e1
[deconz] support QuantityType commands (#17942)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2024-12-21 12:12:55 +01:00
Jacob Laursen
6e6a0d080c
Link to Java 21 documentation (#17939)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-21 08:20:08 +01:00
JPlenert
e91820c397
Updated tado binding documentation for tado X (#17932)
Signed-off-by: JPlenert <joerg@plenert.net>
2024-12-20 22:17:57 +01:00
MikeTheTux
84021f01a5
[guntamatic] Add channel groups (#17901)
* guntamatic indexed channels

Signed-off-by: Michael Weger <weger.michael@gmx.net>
2024-12-20 22:10:32 +01:00
Cody Cutrer
fc9e564a2c
[mqtt.homeassistant] Fix components with an empty name (#17933)
As opposed to null name. In either case, it's not usable,
and we need to use our fallbacks.

Signed-off-by: Cody Cutrer <cody@cutrer.us>
2024-12-20 22:02:28 +01:00
Jacob Laursen
7a3380a020 Use switch pattern matching
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-20 09:04:22 +01:00
Jeremy
2ab9822605
[insteon] Use shared jetty http client (#17922)
Signed-off-by: jsetton <jeremy.setton@gmail.com>
2024-12-19 23:39:33 +01:00
mlobstein
5d40a719f4
[roku] Check for ECP Limited Mode (#17925)
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
2024-12-19 20:38:08 +01:00
Jacob Laursen
254f2f5886 Simplify DateTimeType handling for MongoDB
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
2ded1d14c9 Simplify DateTimeType handling for JDBC
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
b2c9abbe29 Simplify DateTimeType handling for Java Persistence API
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
e794c6a0f6 Simplify DateTimeType handling for InfluxDB
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
bc540c6653 Simplify DateTimeType handling for Amazon DynamoDB
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
6007d6bc51 Simplify DateTimeType handling for ZoneMinder
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
aae1224658 Simplify DateTimeType handling for XmlTv
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
b186639344 Simplify DateTimeType handling for Wolf Smartset
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
9d72871018 Simplify DateTimeType handling for WiZ
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
328e91a7fc Simplify DateTimeType handling for WeMo
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
82813cdcd4 Simplify DateTimeType handling for WeatherUnderground
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
9c19aa70e9 Simplify DateTimeType handling for VolvoOnCall
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
df8f92e847 Simplify DateTimeType handling for VisualCrossing
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
1a76e5522c Simplify DateTimeType handling for Video Disk Recorder
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
7c1892fd57 Simplify DateTimeType handling for VeSync
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
d59b10a064 Simplify DateTimeType handling for Vallox MV
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
77d6457017 Simplify DateTimeType handling for UniFi
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
a6f9977e29 Simplify DateTimeType handling for Tellstick
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
d8485acf58 Simplify DateTimeType handling for Teleinfo
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
182a0cca2b Simplify DateTimeType handling for Tado
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
2ba8a6d4b8 Simplify DateTimeType handling for TA C.M.I.
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
86955bc39f Simplify DateTimeType handling for Philips Somneo
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
512e3b239b Simplify DateTimeType handling for Solax
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
7d54e604f9 Simplify DateTimeType handling for Siemens HVAC
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
96b5ad2e55 Simplify DateTimeType handling for Shelly
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
751bbf7495 Simplify DateTimeType handling for Satel Integra Alarm System
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
fb9a998f59 Simplify DateTimeType handling for SAICiSMART
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
1af326dbb7 Simplify DateTimeType handling for PLCLogo
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
225ebd9c83 Simplify DateTimeType handling for OpenWeatherMap
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
541f8d4028 Simplify DateTimeType handling for OpenUV
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
a989208cc6 Simplify DateTimeType handling for OneBusAway
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
b23cb757c4 Simplify DateTimeType handling for OJElectronics
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
e60fc3e40c Simplify DateTimeType handling for Nest
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
d871b66d3c Simplify DateTimeType handling for Network
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
d00d654976 Simplify DateTimeType handling for Ruuvi Gateway MQTT
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
cb74dd6497 Simplify DateTimeType handling for MQTT
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
d001636a5f Simplify DateTimeType handling for Millheat
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
bad29eb653 Simplify DateTimeType handling for Mi IO
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
daabae72e0 Simplify DateTimeType handling for Meteo France
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
a1a61ff7c8 Simplify DateTimeType handling for Met Office DataHub
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
164e333a40 Simplify DateTimeType handling for Mercedes Me
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
2f33a2d1ae Simplify DateTimeType handling for Meater
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
7f3138585a Simplify DateTimeType handling for LuxtronikHeatpump
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
520bda33a9 Simplify DateTimeType handling for Lutron
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
32bf72a858 Simplify DateTimeType handling for LaMetric
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
c6087e6b00 Simplify DateTimeType handling for KM200
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
c17b5f9ea8 Simplify DateTimeType handling for JuiceNet
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
6e2eb70950 Simplify DateTimeType handling for Insteon
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
e898312e9e Simplify DateTimeType handling for IHC
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
fb7ba1feb1 Simplify DateTimeType handling for Hydrawise
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
28b6624644 Simplify DateTimeType handling for Philips Hue
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
7fd9fc8554 Simplify DateTimeType handling for Helios easyControls
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
3361aa41dd Simplify DateTimeType handling for Groupe PSA
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
000f8d7c6b Simplify DateTimeType handling for Gardena
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
dd6c1f6d93 Simplify DateTimeType handling for Freecurrency
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
f0ba39f121 Simplify DateTimeType handling for FreeboxOS
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
0a46ff2a79 Simplify DateTimeType handling for Foobot
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
b74e1e671d Simplify DateTimeType handling for FMI Weather
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
698939cf46 Simplify DateTimeType handling for Flume
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
c594446eac Simplify DateTimeType handling for Fine Offset Weather Station
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
baf7ec6c2a Simplify DateTimeType handling for Feed
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
f61cc6dec7 Simplify DateTimeType handling for Exec
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
68527c03f5 Simplify DateTimeType handling for EVCC
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
d5d01b0623 Simplify DateTimeType handling for Enphase
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
4c176a8c82 Simplify DateTimeType handling for Ecovacs
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
7cb8bf18ed Simplify DateTimeType handling for Ecobee
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
b5f36cbfa8 Simplify DateTimeType handling for DWD Unwetter
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
b724595c2a Simplify DateTimeType handling for DWD Pollenflug
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
4cea76be8e Simplify DateTimeType handling for Doorbird
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
9b4f1d769c Simplify DateTimeType handling for Digiplex/EVO
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
1f6f05ab83 Simplify DateTimeType handling for Deutsche Bahn
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
e05d5ba84a Simplify DateTimeType handling for deCONZ
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
8d0653a161 Simplify DateTimeType handling for DBQuery
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
bb9a789d31 Simplify DateTimeType handling for Broadlink
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
c02a7345e1 Simplify DateTimeType handling for Bosch Smart Home
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
7feafba285 Simplify DateTimeType handling for Bosch Indego
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
81f5a7fff9 Simplify DateTimeType handling for BigAssFan
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
a8e2348d5a Simplify DateTimeType handling for aWATTar
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
1231e7d2e9 Simplify DateTimeType handling for AVM FRITZ!
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
0ee5fd952e Simplify DateTimeType handling for Automower
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
e3a1abd191 Simplify DateTimeType handling for Air Quality
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
Jacob Laursen
e310161327 Simplify DateTimeType handling for aha Waste Collection
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-19 11:56:36 +01:00
13389 changed files with 40173 additions and 35349 deletions

View File

@ -58,7 +58,7 @@
/bundles/org.openhab.binding.boschindego/ @jofleck @jlaur /bundles/org.openhab.binding.boschindego/ @jofleck @jlaur
/bundles/org.openhab.binding.boschshc/ @david-pace @GerdZanker /bundles/org.openhab.binding.boschshc/ @david-pace @GerdZanker
/bundles/org.openhab.binding.bosesoundtouch/ @marvkis @tratho /bundles/org.openhab.binding.bosesoundtouch/ @marvkis @tratho
/bundles/org.openhab.binding.broadlink/ @dag81 /bundles/org.openhab.binding.broadlink/ @AntonJansen
/bundles/org.openhab.binding.broadlinkthermostat/ @flo-02-mu /bundles/org.openhab.binding.broadlinkthermostat/ @flo-02-mu
/bundles/org.openhab.binding.bsblan/ @hypetsch /bundles/org.openhab.binding.bsblan/ @hypetsch
/bundles/org.openhab.binding.bticinosmarther/ @MrRonfo /bundles/org.openhab.binding.bticinosmarther/ @MrRonfo
@ -465,6 +465,7 @@
/bundles/org.openhab.voice.mactts/ @kaikreuzer /bundles/org.openhab.voice.mactts/ @kaikreuzer
/bundles/org.openhab.voice.marytts/ @kaikreuzer /bundles/org.openhab.voice.marytts/ @kaikreuzer
/bundles/org.openhab.voice.mimictts/ @dalgwen /bundles/org.openhab.voice.mimictts/ @dalgwen
/bundles/org.openhab.voice.openaitts/ @Artur-Fedjukevits
/bundles/org.openhab.voice.picotts/ @FlorianSW /bundles/org.openhab.voice.picotts/ @FlorianSW
/bundles/org.openhab.voice.pipertts/ @GiviMAD /bundles/org.openhab.voice.pipertts/ @GiviMAD
/bundles/org.openhab.voice.pollytts/ @openhab/add-ons-maintainers /bundles/org.openhab.voice.pollytts/ @openhab/add-ons-maintainers

View File

@ -2301,6 +2301,11 @@
<artifactId>org.openhab.voice.mimictts</artifactId> <artifactId>org.openhab.voice.mimictts</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.openhab.addons.bundles</groupId>
<artifactId>org.openhab.voice.openaitts</artifactId>
<version>${project.version}</version>
</dependency>
<dependency> <dependency>
<groupId>org.openhab.addons.bundles</groupId> <groupId>org.openhab.addons.bundles</groupId>
<artifactId>org.openhab.voice.picotts</artifactId> <artifactId>org.openhab.voice.picotts</artifactId>

View File

@ -10,7 +10,7 @@ IF %ARGC% NEQ 3 (
exit /B 1 exit /B 1
) )
SET OpenhabVersion="4.3.0-SNAPSHOT" SET OpenhabVersion="5.0.0-SNAPSHOT"
SET BindingIdInCamelCase=%~1 SET BindingIdInCamelCase=%~1
SET BindingIdInLowerCase=%BindingIdInCamelCase% SET BindingIdInLowerCase=%BindingIdInCamelCase%

View File

@ -2,7 +2,7 @@
[ $# -lt 3 ] && { echo "Usage: $0 <BindingIdInCamelCase> <Author> <GitHub Username>"; exit 1; } [ $# -lt 3 ] && { echo "Usage: $0 <BindingIdInCamelCase> <Author> <GitHub Username>"; exit 1; }
openHABVersion=4.3.0-SNAPSHOT openHABVersion=5.0.0-SNAPSHOT
camelcaseId=$1 camelcaseId=$1
id=`echo $camelcaseId | tr '[:upper:]' '[:lower:]'` id=`echo $camelcaseId | tr '[:upper:]' '[:lower:]'`

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.
@ -16,8 +16,6 @@ import java.io.Reader;
import java.util.Objects; import java.util.Objects;
import javax.script.Bindings; import javax.script.Bindings;
import javax.script.Compilable;
import javax.script.CompiledScript;
import javax.script.Invocable; import javax.script.Invocable;
import javax.script.ScriptContext; import javax.script.ScriptContext;
import javax.script.ScriptEngine; import javax.script.ScriptEngine;
@ -37,7 +35,9 @@ import org.jruby.embed.jsr223.JRubyEngine;
* @author Jimmy Tanagra - Initial contribution * @author Jimmy Tanagra - Initial contribution
*/ */
@NonNullByDefault @NonNullByDefault
public class JRubyEngineWrapper implements Compilable, Invocable, ScriptEngine { public class JRubyEngineWrapper implements Invocable, ScriptEngine {
// Don't implement Compilable because there is a bug
// in JRuby's compiled scripts: https://github.com/jruby/jruby/issues/8346
private final JRubyEngine engine; private final JRubyEngine engine;
@ -48,16 +48,6 @@ public class JRubyEngineWrapper implements Compilable, Invocable, ScriptEngine {
this.engine = Objects.requireNonNull(engine); this.engine = Objects.requireNonNull(engine);
} }
@Override
public CompiledScript compile(@Nullable String script) throws ScriptException {
return new JRubyCompiledScriptWrapper(engine.compile(script));
}
@Override
public CompiledScript compile(@Nullable Reader reader) throws ScriptException {
return new JRubyCompiledScriptWrapper(engine.compile(reader));
}
@Override @Override
public Object eval(@Nullable String script, @Nullable ScriptContext context) throws ScriptException { public Object eval(@Nullable String script, @Nullable ScriptContext context) throws ScriptException {
Object ctx = Objects.requireNonNull(context).getBindings(ScriptContext.ENGINE_SCOPE).get(CONTEXT_VAR_NAME); Object ctx = Objects.requireNonNull(context).getBindings(ScriptContext.ENGINE_SCOPE).get(CONTEXT_VAR_NAME);

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -23,25 +23,37 @@
!jdk.vm.ci.services !jdk.vm.ci.services
</bnd.importpackage> </bnd.importpackage>
<!-- Remember to check if the fix https://github.com/openhab/openhab-core/pull/4437 still works when upgrading GraalJS --> <!-- Remember to check if the fix https://github.com/openhab/openhab-core/pull/4437 still works when upgrading GraalJS -->
<graal.version>22.0.0.2</graal.version> <!-- DO NOT UPGRADE: 22.0.0.2 is the latest version working on armv7l / OpenJDK 11.0.16 & armv7l / Zulu 17.0.5+8 --> <graaljs.version>24.1.1</graaljs.version>
<oh.version>${project.version}</oh.version> <oh.version>${project.version}</oh.version>
<ohjs.version>openhab@5.8.1</ohjs.version> <ohjs.version>openhab@5.8.1</ohjs.version>
</properties> </properties>
<build> <build>
<plugins> <plugins>
<!-- exclude META-INF/services/com.oracle.truffle.api.TruffleLanguage$Provider when unpacking dependencies --> <!-- bundle the modular dependencies into an uber-JAR -->
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId> <artifactId>maven-shade-plugin</artifactId>
<version>3.6.0</version>
<executions> <executions>
<execution> <execution>
<id>embed-dependencies</id> <phase>package</phase>
<goals> <goals>
<goal>unpack-dependencies</goal> <goal>shade</goal>
</goals> </goals>
<configuration> <configuration>
<excludes>META-INF/services/com.oracle.truffle.api.TruffleLanguage$Provider</excludes> <!-- we'll provide this --> <artifactSet>
<excludes>
<exclude>org.lastnpe.eea:eea-all</exclude>
<exclude>org.apache.karaf.features:framework</exclude>
</excludes>
</artifactSet>
<createDependencyReducedPom>false</createDependencyReducedPom>
<transformers>
<!-- Transformer to merge module-info.class files, if needed -->
<transformer
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
</transformers>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>
@ -50,7 +62,7 @@
<plugin> <plugin>
<groupId>com.github.eirslett</groupId> <groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId> <artifactId>frontend-maven-plugin</artifactId>
<version>1.15.0</version> <version>1.15.1</version>
<configuration> <configuration>
<nodeVersion>v16.17.1</nodeVersion> <!-- DO NOT DOWNGRADE: NodeJS < 16 doesn't support Apple Silicon --> <nodeVersion>v16.17.1</nodeVersion> <!-- DO NOT DOWNGRADE: NodeJS < 16 doesn't support Apple Silicon -->
<workingDirectory>target/js</workingDirectory> <workingDirectory>target/js</workingDirectory>
@ -130,32 +142,29 @@
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.graalvm.sdk</groupId> <groupId>org.graalvm.polyglot</groupId>
<artifactId>graal-sdk</artifactId> <artifactId>polyglot</artifactId>
<version>${graal.version}</version> <version>${graaljs.version}</version>
</dependency>
<dependency>
<groupId>org.graalvm.truffle</groupId>
<artifactId>truffle-api</artifactId>
<version>${graal.version}</version>
</dependency> </dependency>
<!-- Graal JavaScript ScriptEngine JSR 223 support --> <!-- Graal JavaScript ScriptEngine JSR 223 support -->
<dependency> <dependency>
<groupId>org.graalvm.js</groupId> <groupId>org.graalvm.js</groupId>
<artifactId>js-scriptengine</artifactId> <artifactId>js-scriptengine</artifactId>
<version>${graal.version}</version> <version>${graaljs.version}</version>
</dependency> </dependency>
<!-- Graal TRegex engine (internally used by Graal JavaScript engine) --> <!-- Graal TRegex engine (internally used by Graal JavaScript engine) -->
<dependency> <dependency>
<groupId>org.graalvm.regex</groupId> <groupId>org.graalvm.regex</groupId>
<artifactId>regex</artifactId> <artifactId>regex</artifactId>
<version>${graal.version}</version> <version>${graaljs.version}</version>
</dependency> </dependency>
<!-- Graal JavaScript engine (depends on Graal TRegex engine, must be added after it) --> <!-- Graal JavaScript engine (depends on Graal TRegex engine, must be added after it) -->
<dependency> <dependency>
<groupId>org.graalvm.js</groupId> <groupId>org.graalvm.polyglot</groupId>
<artifactId>js</artifactId> <artifactId>js-community</artifactId>
<version>${graal.version}</version> <version>${graaljs.version}</version>
<type>pom</type>
<scope>runtime</scope>
</dependency> </dependency>
</dependencies> </dependencies>
</project> </project>

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.
@ -163,8 +163,8 @@ public class OpenhabGraalJSScriptEngine
.option("js.nashorn-compat", "true") // Enable Nashorn compat mode as openhab-js relies on .option("js.nashorn-compat", "true") // Enable Nashorn compat mode as openhab-js relies on
// accessors, see // accessors, see
// https://github.com/oracle/graaljs/blob/master/docs/user/NashornMigrationGuide.md#accessors // https://github.com/oracle/graaljs/blob/master/docs/user/NashornMigrationGuide.md#accessors
.option("js.ecmascript-version", "2022") // If Nashorn compat is enabled, it will enforce ES5 .option("js.ecmascript-version", "2024") // If Nashorn compat is enabled, it will enforce ES5
// compatibility, we want ECMA2022 // compatibility, we want ECMA2024
.option("js.commonjs-require", "true") // Enable CommonJS module support .option("js.commonjs-require", "true") // Enable CommonJS module support
.hostClassLoader(getClass().getClassLoader()) .hostClassLoader(getClass().getClassLoader())
.fileSystem(new DelegatingFileSystem(FileSystems.getDefault().provider()) { .fileSystem(new DelegatingFileSystem(FileSystems.getDefault().provider()) {

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,2 +0,0 @@
com.oracle.truffle.regex.RegexLanguageProvider
com.oracle.truffle.js.lang.JavaScriptLanguageProvider

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.
@ -14,7 +14,6 @@ package org.openhab.binding.ahawastecollection.internal;
import java.io.IOException; import java.io.IOException;
import java.time.Duration; import java.time.Duration;
import java.time.ZonedDateTime;
import java.util.Collections; import java.util.Collections;
import java.util.Date; import java.util.Date;
import java.util.Map; import java.util.Map;
@ -26,7 +25,6 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
import org.eclipse.jdt.annotation.Nullable; import org.eclipse.jdt.annotation.Nullable;
import org.openhab.binding.ahawastecollection.internal.CollectionDate.WasteType; import org.openhab.binding.ahawastecollection.internal.CollectionDate.WasteType;
import org.openhab.core.cache.ExpiringCache; import org.openhab.core.cache.ExpiringCache;
import org.openhab.core.i18n.TimeZoneProvider;
import org.openhab.core.library.types.DateTimeType; import org.openhab.core.library.types.DateTimeType;
import org.openhab.core.scheduler.CronScheduler; import org.openhab.core.scheduler.CronScheduler;
import org.openhab.core.scheduler.ScheduledCompletableFuture; import org.openhab.core.scheduler.ScheduledCompletableFuture;
@ -57,7 +55,6 @@ public class AhaWasteCollectionHandler extends BaseThingHandler {
private final Lock monitor = new ReentrantLock(); private final Lock monitor = new ReentrantLock();
private final ExpiringCache<Map<WasteType, CollectionDate>> cache; private final ExpiringCache<Map<WasteType, CollectionDate>> cache;
private final TimeZoneProvider timeZoneProvider;
private final Logger logger = LoggerFactory.getLogger(AhaWasteCollectionHandler.class); private final Logger logger = LoggerFactory.getLogger(AhaWasteCollectionHandler.class);
private @Nullable AhaCollectionSchedule collectionSchedule; private @Nullable AhaCollectionSchedule collectionSchedule;
@ -69,11 +66,10 @@ public class AhaWasteCollectionHandler extends BaseThingHandler {
private final ScheduledExecutorService executorService; private final ScheduledExecutorService executorService;
public AhaWasteCollectionHandler(final Thing thing, final CronScheduler scheduler, public AhaWasteCollectionHandler(final Thing thing, final CronScheduler scheduler,
final TimeZoneProvider timeZoneProvider, final AhaCollectionScheduleFactory scheduleFactory, final AhaCollectionScheduleFactory scheduleFactory,
@Nullable final ScheduledExecutorService executorService) { @Nullable final ScheduledExecutorService executorService) {
super(thing); super(thing);
this.cronScheduler = scheduler; this.cronScheduler = scheduler;
this.timeZoneProvider = timeZoneProvider;
this.scheduleFactory = scheduleFactory; this.scheduleFactory = scheduleFactory;
this.cache = new ExpiringCache<>(Duration.ofMinutes(5), this::loadCollectionDates); this.cache = new ExpiringCache<>(Duration.ofMinutes(5), this::loadCollectionDates);
this.executorService = executorService == null ? this.scheduler : executorService; this.executorService = executorService == null ? this.scheduler : executorService;
@ -190,9 +186,7 @@ public class AhaWasteCollectionHandler extends BaseThingHandler {
final Date nextCollectionDate = collectionDate.getDates().get(0); final Date nextCollectionDate = collectionDate.getDates().get(0);
final ZonedDateTime zonedDateTime = ZonedDateTime.ofInstant(nextCollectionDate.toInstant(), this.updateState(channel.getUID(), new DateTimeType(nextCollectionDate.toInstant()));
this.timeZoneProvider.getTimeZone());
this.updateState(channel.getUID(), new DateTimeType(zonedDateTime));
} }
} }

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.
@ -18,7 +18,6 @@ import java.util.Set;
import org.eclipse.jdt.annotation.NonNullByDefault; import org.eclipse.jdt.annotation.NonNullByDefault;
import org.eclipse.jdt.annotation.Nullable; import org.eclipse.jdt.annotation.Nullable;
import org.openhab.core.i18n.TimeZoneProvider;
import org.openhab.core.scheduler.CronScheduler; import org.openhab.core.scheduler.CronScheduler;
import org.openhab.core.thing.Thing; import org.openhab.core.thing.Thing;
import org.openhab.core.thing.ThingTypeUID; import org.openhab.core.thing.ThingTypeUID;
@ -40,7 +39,6 @@ public class AhaWasteCollectionHandlerFactory extends BaseThingHandlerFactory {
private static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Set.of(THING_TYPE_SCHEDULE); private static final Set<ThingTypeUID> SUPPORTED_THING_TYPES_UIDS = Set.of(THING_TYPE_SCHEDULE);
private final CronScheduler scheduler; private final CronScheduler scheduler;
private final TimeZoneProvider timeZoneProvider;
@Override @Override
public boolean supportsThingType(final ThingTypeUID thingTypeUID) { public boolean supportsThingType(final ThingTypeUID thingTypeUID) {
@ -48,10 +46,8 @@ public class AhaWasteCollectionHandlerFactory extends BaseThingHandlerFactory {
} }
@Activate @Activate
public AhaWasteCollectionHandlerFactory(final @Reference CronScheduler scheduler, public AhaWasteCollectionHandlerFactory(final @Reference CronScheduler scheduler) {
final @Reference TimeZoneProvider timeZoneProvider) {
this.scheduler = scheduler; this.scheduler = scheduler;
this.timeZoneProvider = timeZoneProvider;
} }
@Override @Override
@ -59,8 +55,7 @@ public class AhaWasteCollectionHandlerFactory extends BaseThingHandlerFactory {
final ThingTypeUID thingTypeUID = thing.getThingTypeUID(); final ThingTypeUID thingTypeUID = thing.getThingTypeUID();
if (THING_TYPE_SCHEDULE.equals(thingTypeUID)) { if (THING_TYPE_SCHEDULE.equals(thingTypeUID)) {
return new AhaWasteCollectionHandler(thing, this.scheduler, this.timeZoneProvider, return new AhaWasteCollectionHandler(thing, this.scheduler, AhaCollectionScheduleImpl::new, null);
AhaCollectionScheduleImpl::new, null);
} }
return null; return null;
} }

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.
@ -45,7 +45,11 @@ final class CollectionDate {
/** /**
* Light packaging. * Light packaging.
*/ */
LIGHT_PACKAGES; LIGHT_PACKAGES,
/**
* Christmas Tree.
*/
CHRISTMAS_TREES;
/** /**
* Parses the {@link WasteType} from the given Value from the Web-page. * Parses the {@link WasteType} from the given Value from the Web-page.
@ -60,6 +64,8 @@ final class CollectionDate {
return PAPER; return PAPER;
case "Leichtverpackungen": case "Leichtverpackungen":
return LIGHT_PACKAGES; return LIGHT_PACKAGES;
case "Weihnachtsbäume":
return CHRISTMAS_TREES;
default: default:
throw new IllegalArgumentException("Unknown waste type: " + value); throw new IllegalArgumentException("Unknown waste type: " + value);
} }

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.
@ -15,8 +15,6 @@ package org.openhab.binding.ahawastecollection.internal;
import static org.mockito.ArgumentMatchers.*; import static org.mockito.ArgumentMatchers.*;
import static org.mockito.Mockito.*; import static org.mockito.Mockito.*;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.util.Arrays; import java.util.Arrays;
import java.util.Date; import java.util.Date;
import java.util.Map; import java.util.Map;
@ -136,15 +134,14 @@ public class AhaWasteCollectionHandlerTest {
}).when(executorStub).execute(any(Runnable.class)); }).when(executorStub).execute(any(Runnable.class));
final AhaWasteCollectionHandler handler = new AhaWasteCollectionHandler(thing, createStubScheduler(), final AhaWasteCollectionHandler handler = new AhaWasteCollectionHandler(thing, createStubScheduler(),
ZoneId::systemDefault, new AhaCollectionScheduleStubFactory(), executorStub); new AhaCollectionScheduleStubFactory(), executorStub);
handler.setCallback(callback); handler.setCallback(callback);
handler.initialize(); handler.initialize();
return handler; return handler;
} }
private static State getDateTime(final Date day) { private static State getDateTime(final Date day) {
final ZonedDateTime zonedDateTime = ZonedDateTime.ofInstant(day.toInstant(), ZoneId.systemDefault()); return new DateTimeType(day.toInstant());
return new DateTimeType(zonedDateTime);
} }
@Test @Test

View File

@ -1,5 +1,5 @@
/** /*
* Copyright (c) 2010-2024 Contributors to the openHAB project * Copyright (c) 2010-2025 Contributors to the openHAB project
* *
* See the NOTICE file(s) distributed with this work for additional * See the NOTICE file(s) distributed with this work for additional
* information. * information.

Some files were not shown because too many files have changed in this diff Show More