Commit Graph
2689 Commits
Author SHA1 Message Date
Holger FriedrichandGitHub 40d079ae80 Java 21 language features (#4535)
* Java 21 language features

* use getFirst and getLast methods
* replace new Locale by Locale.of
* replace Paths.get by Path.of
* use ThreadLocalRandom.current().nextDouble()
* add @Serial annotations

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-01-06 23:22:43 +01:00
Florian HotzeandGitHub f8fdd66f78 [websocket] Change EventWebSocketAdapter adapter id to events (#4540)
This is aligns the event WS name with the SSE events endpoint.
This is a breaking change for clients that have explicitly used `/ws/event-subscriber` instead of the default `/ws`.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-01-06 19:57:55 +01:00
Gaël L'hopitalandGitHub 13eeea96e8 Another warning hunting session (#4484)
* Another warning hunting session, focusing on Potential null pointer access

Signed-off-by: Gaël L'hopital <gael@lhopital.org>
2025-01-06 18:49:45 +01:00
Holger FriedrichandGitHub 1e0b3c2410 Upgrade plugins (#4536)
* sortpom-maven-plugin to 4.0.0 (breaking change)
https://github.com/Ekryd/sortpom?tab=readme-ov-file#news
* maven-clean-plugin to 3.4.0
https://github.com/apache/maven-clean-plugin/releases/tag/maven-clean-plugin-3.4.0
* maven-deploy-plugin to 3.1.3
https://github.com/apache/maven-deploy-plugin/releases/tag/maven-deploy-plugin-3.1.3
* maven-enforcer-plugin to 3.5.0
https://github.com/apache/maven-enforcer/releases
* maven-install-plugin to 3.1.3
https://github.com/apache/maven-install-plugin/releases
* maven-plugin-plugin to 3.15.1
* license-maven-plugin to 4.6
https://github.com/mathieucarbou/license-maven-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-archetype-plugin to 3.3.1
* maven-dependency-plugin to 3.8.1
* maven-javadoc-plugin to 3.11.2
* maven-release-plugin to 3.1.1
* maven-shade-plugin to 3.6.0
* maven-site-plugin to 3.21.0
* maven-surefire-plugin to 3.5.2
* build-helper-maven-plugin
https://github.com/mojohaus/build-helper-maven-plugin/releases/tag/3.6.0
* i18n-maven-plugin to latest OH release 4.3.1

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-01-04 09:48:42 +01:00
Wouter BornandGitHub 979e4a7409 Update license headers to 2025 (#4532)
Signed-off-by: Wouter Born <github@maindrain.net>
2025-01-01 16:40:04 +01:00
Florian HotzeandGitHub cb4d4b8c74 Item triggers: Suggest using conditions that for comparing Item state (#4530)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-12-31 17:30:56 +01:00
Florian HotzeandGitHub 25ca43d165 [websocket] Support token authentication through header (#4515)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-12-31 17:00:40 +01:00
Jacob LaursenandGitHub 139a2e20a1 Remove deprecated DateTimeType methods toLocaleZone and toZone (#4522)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-31 12:50:51 +01:00
jimtngandGitHub 321d3a5f04 Add sharedCache and privateCache to file-based RulesDSL (#4525)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-12-31 12:39:24 +01:00
J-N-KandGitHub fe730b3918 Fix config normalization in addon configuration (#4528)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2024-12-31 08:44:31 +01:00
Jacob LaursenandGitHub 1a91ef2b44 Enhance DateTimeType to parse ZonedDateTime with time-zone ID (#4516)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-29 12:42:06 +01:00
Florian HotzeandGitHub 7a61dc4b5b Start spifly early (#4526)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-12-28 18:35:13 +01:00
jimtngandGitHub 8b68aa7441 Clean up arguments after executing Script Transformation (#4524)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-12-28 12:28:36 +01:00
Holger FriedrichandGitHub 1f9ba2b0ee Remove workaround for Xtend/Java21 (#4519)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-12-24 09:47:56 +01:00
Wouter BornandGitHub db72021460 Update Eclipse files (#4514)
Signed-off-by: Wouter Born <github@maindrain.net>
2024-12-24 07:02:47 +01:00
Jacob LaursenandGitHub 12f2314a2d Link to Java 21 documentation (#4510)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-21 14:01:51 +01:00
Wouter BornandGitHub e078a5cd98 Fix JavaDoc build (#4504)
Signed-off-by: Wouter Born <github@maindrain.net>
2024-12-17 23:00:09 +01:00
Mark HerwegeandGitHub cdc0e0f32e [persistence] Fix UI persistence item exclude config (#4502)
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-12-17 19:53:24 +01:00
Gaël L'hopitalandGitHub 7492d1cd14 Warning chase in org.openhab.core.audio (#4497)
Signed-off-by: Gaël L'hopital <gael@lhopital.org>
2024-12-17 19:41:02 +01:00
Wouter BornandGitHub 9f0b8d48fe Revert LinkedTransferQueue high CPU usage workaround (#4499)
Reverts the workaround #3756 that was introduced for JDK-8301341 because it is fixed in OpenJDK 21

Signed-off-by: Wouter Born <github@maindrain.net>
2024-12-17 00:46:30 +01:00
Gaël L'hopitalandGitHub 576a63c0be Warning hunt in org.openhab.core.addon.xxx (#4489)
Signed-off-by: Gaël L'hopital <gael@lhopital.org>
2024-12-16 19:04:55 +01:00
Holger FriedrichandGitHub c2d8392668 Remove Java 17 build, switch to 21 (#4483)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-12-15 20:36:45 +01:00
Holger FriedrichandGitHub 8d837f9823 Prepare for OH 5.0.0 (#4496)
* Prepare for OH 5.0.0

* Switch to 5.0.0-SNAPSHOT
* Fix spotless after unleash
* resolve itest runbundles
* Fix linux-specific pom

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-12-15 18:49:23 +01:00
openhab-bot 0f2e56f39d [unleash-maven-plugin] Preparation for next development cycle. 2024-12-15 11:41:19 +00:00
lolodomoandGitHub a05aca6c79 Thing action REST API: allow extended scope like bindingid-xxx (#4495)
It is required for actions from the max binding.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-12-15 11:39:57 +01:00
Gaël L'hopitalandGitHub 241e55f157 Add some requested new units : J/m², gr/ft³,gr (#4467)
Signed-off-by: Gaël L'hopital <gael@lhopital.org>
2024-12-10 21:00:11 +01:00
openhab-botandGitHub 31e28380e1 New Crowdin updates (#4485)
* New translations systemprofiles.properties (Catalan)
* New translations systemprofiles.properties (Czech)
* New translations systemprofiles.properties (French)
* New translations systemprofiles.properties (Danish)
* New translations systemprofiles.properties (Finnish)
* New translations systemprofiles.properties (Hebrew)
* New translations systemprofiles.properties (Hungarian)
* New translations systemprofiles.properties (Italian)
* New translations systemprofiles.properties (Dutch)
* New translations systemprofiles.properties (Norwegian)
* New translations systemprofiles.properties (Polish)
2024-12-09 20:36:18 +01:00
Mark HerwegeandGitHub 8e4cebdec2 [persistence] Add persistence exclusion tests (#4482)
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-12-08 18:02:54 +01:00
Jacob LaursenandGitHub b31ff66bba [core] Switch DateTimeType to Instant internally for consistent time-zone handling (#3583)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-08 16:06:29 +01:00
Mark HerwegeandGitHub a35041ac7b [persistence] Exclude items and groups (#4468)
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-12-08 12:50:37 +01:00
openhab-botandGitHub 0c93cc0456 New Crowdin updates (#4480)
* New translations addons.properties (Catalan)
* New translations addons.properties (Czech)
* New translations audio.properties (Catalan)
* New translations automation.properties (Catalan)
* New translations automation.properties (Czech)
* New translations chart.properties (Catalan)
* New translations chart.properties (Czech)
* New translations defaultsystemchannels.properties (Catalan)
* New translations defaultsystemchannels.properties (Czech)
* New translations ephemeris.properties (Catalan)
* New translations firmware.properties (Catalan)
* New translations hli.properties (Catalan)
* New translations i18n.properties (Catalan)
* New translations inbox.properties (Catalan)
* New translations jsonstorage.properties (Catalan)
* New translations jsr223.properties (Catalan)
* New translations jsr223.properties (Czech)
* New translations languagesupport.properties (Catalan)
* New translations languagesupport.properties (Portuguese)
* New translations languagesupport.properties (Portuguese, Brazilian)
* New translations lsp.properties (Catalan)
* New translations magic.properties (Catalan)
* New translations marketplace.properties (Catalan)
* New translations messages.properties (Catalan)
* New translations network.properties (Catalan)
* New translations persistence.properties (Catalan)
* New translations restauth.properties (Catalan)
* New translations scriptprofile.properties (Catalan)
* New translations scriptprofile.properties (Czech)
* New translations sitemap.properties (Catalan)
* New translations systemprofiles.properties (Catalan)
* New translations systemprofiles.properties (Czech)
* New translations systemthingstatusinfos.properties (Catalan)
* New translations tags.properties (Catalan)
* New translations units.properties (Catalan)
* New translations units.properties (Czech)
* New translations validation.properties (Catalan)
* New translations validation.properties (Czech)
* New translations voice.properties (Catalan)
* New translations voice.properties (Czech)
2024-12-08 11:45:41 +01:00
Andrew Fiddian-GreenandGitHub 57cf6a5d43 IP addon finder: add support for sending local mac address (#4477)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2024-12-08 02:26:13 +01:00
openhab-botandGitHub 76daeeff12 New Crowdin updates (#4479)
* New translations addons.properties (Italian)
* New translations i18n.properties (Italian)
2024-12-08 01:33:30 +01:00
Gaël L'hopitalandGitHub ed2d1962f5 A session of compile warning hunt (#4472)
Signed-off-by: Gaël L'hopital <gael@lhopital.org>
2024-12-07 23:13:45 +01:00
Wouter BornandGitHub 297d54ed52 Upgrade Jollyday to 0.35.1 (#4471)
Upgrades Jollyday from 0.32.0 to 0.35.1.

For release notes, see:

* https://github.com/focus-shift/jollyday/releases/tag/v0.33.0
* https://github.com/focus-shift/jollyday/releases/tag/v0.34.0
* https://github.com/focus-shift/jollyday/releases/tag/v0.35.0
* https://github.com/focus-shift/jollyday/releases/tag/v0.35.1

Signed-off-by: Wouter Born <github@maindrain.net>
2024-12-03 21:30:59 +01:00
Florian HotzeandGitHub 7005c7f15e ConfigDescriptionParameter & Input: Add null annotations & improve JavaDoc (#4465)
* Add null annotations to org.openhab.core.automation.type.Input
* Add null annotations to org.openhab.core.config.core.ConfigDescriptionParameter

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-12-01 12:28:25 +01:00
Wouter BornandGitHub fa29f52a99 Update bnd to 7.1.0 (#4464)
For release notes, see:

https://github.com/bndtools/bnd/wiki/Changes-in-7.1.0

Signed-off-by: Wouter Born <github@maindrain.net>
2024-11-30 21:31:35 +01:00
Holger FriedrichandGitHub 660102e3f9 Upgrade XStream to 1.4.21 (#4457)
* Upgrade XStream from 1.4.20 to 1.4.21, fixes CVE-2024-47072.
  See changelog at https://x-stream.github.io/changes.html#1.4.21

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-11-18 23:34:06 +01:00
Mark HerwegeandGitHub d7495d26fe Fix color and icon rules (#4449)
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-11-18 19:19:55 +01:00
Holger FriedrichandGitHub aededaecc2 [DSL] Expose ColorUtil methods to DSL rules (#4410)
* [DSL] Expose ColorUtil methods to DSL rules

* Expose xyToKelvin and kelvinToXY
* Add missing throws declaration

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-11-17 10:33:19 +01:00
lolodomoandGitHub be003029b0 Add unit hint to color-temperature-abs system channel type (#4451)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-11-17 08:58:59 +01:00
Florian HotzeandGitHub 31d3434893 [rest] Fix ThingActionsResource does not accept new Thing action UIDs with hash (#4445)
* [rest] Fix ThingActionsResource does not accept new Thing action UIDs due to wrong path RegEx

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-11 09:13:25 +01:00
Florian HotzeandGitHub 0d031a3b78 [automation] Ensure unique module IDs for overloaded @RuleAction methods (#4441)
* [automation] Handle overloaded `@RuleAction`s - Append signature hash to avoid duplicate module ids.
* [automation] ThingActionsResource: Provide action visibility

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-10 14:11:24 +01:00
Florian HotzeandGitHub 3bc9ae3e14 [automation] ActionInputsHelper: Enhance ZonedDateTime & Instant input support (#4440)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-08 17:59:55 +01:00
4eec4a3e45 ScriptProfile: Recover from closed context for JS Scripting (#4437)
Co-authored-by: J-N-K <github@klug.nrw>
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-06 21:20:34 +01:00
Florian HotzeandGitHub a31e8376a4 [automation] ActionInputsHelper: Set step size to 1 for datetime & time to enable seconds (#4436)
Refs https://github.com/openhab/openhab-webui/pull/2848.
Discussion in https://github.com/openhab/openhab-webui/issues/2847#issuecomment-2446426478.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-06 09:17:29 +01:00
Andrew Fiddian-GreenandGitHub 591d8d956a [Units] Add MK⁻¹ unit alias (#4433)
* Add unit alias for Micro Reciprocal Kelvin

Signed-off-by: AndrewFG <software@whitebear.ch>
2024-11-04 11:01:20 +01:00
lolodomoandGitHub bc6731157c Add support for more types as output of thing actions (#4435)
Byte
Short
Long
BigDecimal
QuantityType
LocalDate
LocalTime
LocalDateTime
ZonedDateTime
Instant
Duration

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-11-04 10:40:31 +01:00
Florian HotzeandWouter Born 9646607e47 [rest] VoiceResource: Return answer from /interpreters endpoint & Add annotations for answer
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-02 11:09:58 +01:00
Andrew Fiddian-GreenandGitHub 728c7376b6 [ColorUtil] kelvinToXY: Extend Colour Temperature range 1000 K .. 10000 K (#4429)
Signed-off-by: AndrewFG <software@whitebear.ch>
2024-10-29 06:23:07 +01:00