Commit Graph
3143 Commits
Author SHA1 Message Date
Holger FriedrichandKai Kreuzer 8bfcf0d6dd Upgrade Maven used by mvnw to 3.9.12
* Upgrade Maven from 3.9.11 to 3.9.12
  Release notes: https://maven.apache.org/docs/3.9.12/release-notes.html

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2026-01-10 22:35:06 +01:00
Дилян ПалаузовandGitHub bd4412dcd8 Karaf features: Update supported schema versions (#5254) 2026-01-08 22:30:34 +01:00
Florian HotzeandGitHub a90149b3a4 Add support for RegEx expressions in event WebSocket topic filter (#5116)
* Add support for RegEx expressions in event WebSocket topic filter

Closes #4600.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2026-01-06 18:30:51 +01:00
lolodomoandGitHub fdf8d6589c Normalize thing/channel config in response of /file-format/parse API (#5242)
This PR normalizes thing/channel configuration before producing the response.
It allows having proper types for config parameters in the JSON response of the API.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2026-01-06 18:13:38 +01:00
lolodomoandGitHub 58a0cc06b1 [YAML provider] Add special handling to thing/channel config param of… (#5248)
* [YAML provider] Add special handling to thing/channel config param of type text

Related to openhab/openhab-webui#3696

For configuration parameter of type text only, if the value in YAML is an unquoted number (value is then of type BigDecimal after loading and mapping in our DTO) and there is no decimal, we convert it to an integer and return a String from that integer.
Value 1 in YAML is converted into String "1"
Value 1.0 in YAML is converted into String "1"
Value 1.5 in YAML is untouched
Value "1" in YAML is untouched
Value "1.0" in YAML is untouched
Value "1.5" in YAML is untouched

All this is to avoid that 1 filled in YAML without quotes finally results in string "1.0" after configuration normalization.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2026-01-05 22:52:58 +01:00
Florian HotzeandGitHub 2ddd30929a MediaScriptScopeProvider: Minor code enhancement (#5246)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2026-01-05 10:41:07 +01:00
lolodomoandGitHub 448fe6516f [YAML] Use quotes for numbers stored as strings when generating YAML (#5241)
Related to openhab/openhab-webui#3696

We setup our YAML generator library to use quotes for strings when the value is a number.
Strings being not a number will still be generated without quotes.
It avoids later when parsing the generated YAML to retrieve a BigDecimal type instead of a String type when the DTO is defined with a Java Object type (that is the case for thing/channel configuration in particular).

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2026-01-05 09:13:32 +01:00
Cody CutrerandGitHub a259c44e3c Allow cross-binding bridges when generating code for a thing (#5244)
Signed-off-by: Cody Cutrer <cody@cutrer.us>
2026-01-03 22:03:55 +01:00
Holger FriedrichandKai Kreuzer 5f074e3c98 Remove JUnit @Execuion annotations
Remove @Execution annotations where JUnit default SAME_THREAD
is used.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-12-29 09:43:34 +01:00
Ravi NadaharandKai Kreuzer 452a68858c Upgrade SAT to 0.18.0
Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
2025-12-29 09:43:34 +01:00
Ravi NadaharandKai Kreuzer 5a0477872b Suppress PMD rules SetDefaultTimeZone and SetDefaultLocale for selected tests
Ideally these should be rewritten to avoid relying on setting the defaults, but for now an effort is done to make sure that the initial value is restored after testing, and that
these tests don't run in parallel with other tests.

Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
2025-12-29 09:43:34 +01:00
Дилян ПалаузовandGitHub bad5f94ef4 ChannelTransformation: log exact syntax errors in transformations (#5043) 2025-12-28 00:19:02 +01:00
joerg1985andGitHub 2fc75f61ba [persistence] use Instant instead of ZonedDateTime in Riemann sum methods (#5101)
Signed-off-by: Jörg Sautter <joerg.sautter@gmx.net>
2025-12-28 00:10:03 +01:00
Дилян ПалаузовandGitHub df64ab2a75 script: Remove unused ScriptEngine.executeScript (#5105) 2025-12-28 00:07:26 +01:00
Kai KreuzerandGitHub d4e6c97e67 Remove outdated import (#5228)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2025-12-27 23:50:33 +01:00
Дилян ПалаузовandGitHub 8e4324121c bundles/*core.model/bnd.bnd: Require-Bundle: remove dependency on xtend.lib (#5176) 2025-12-27 23:43:15 +01:00
Holger FriedrichandGitHub f499ee46e0 Upgrade Karaf to 4.4.9 (#5195)
* Upgrade Karaf to 4.4.9

Upgrade Karaf from 4.4.8 to 4.4.9.
This includes upgrades for the following libraries:
* jetty from 9.4.57.v20241219 to 9.4.58.v20250814
* pax-web from 8.33 to 8.34
* asm from 9.8 to 9.9
* bouncycastle/bcprov from 1.81 to 1.83
* classgraph from 4.8.180 to 4.8.184
* commons-cli from 1.9.0 to 1.10.0
* commons-io from 2.20.0 to 2.21.0
* commons-lang3 from 3.18.0 to 3.20.0
* cxf from 3.6.8 3.6.9
* guava from 33.4.8-jre to 33.5.0-jre
* jackson-annotations from 2.19.2 to 2.20
* jackson from 2.19.2 to 2.20.1
* jna from 5.17.0 to 5.18.1
* ws.xmlschema from 2.3.1 to 2.3.2
* xbean from 4.27 to 4.28
* xtext/xtend from 2.40.0 to 2.41.0

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-12-27 23:12:30 +01:00
Hans BöhmandGitHub 8277a33720 [uom] add metric area/volume units (#5184)
* add metric volume units

Signed-off-by: Hans Böhm <h.boehm@gmx.at>
2025-12-27 23:10:37 +01:00
Дилян ПалаузовandGitHub 6e3d23f9ce core.model.persistence/bnd.bnd: avoid exporting non-existent package (#5209) 2025-12-27 22:56:58 +01:00
Florian HotzeandGitHub cd5390993f [rest] Fix UIResource GET endpoints do not require auth if implicit user role is disabled (#5226)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-12-27 22:25:16 +01:00
dea60ca1e0 Switch to using asynchronous send with Jetty websockets (#5225)
Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
Co-authored-by: Ravi Nadahar <nadahar@rediffmail.com>
2025-12-27 22:17:24 +01:00
lolodomoandGitHub bda83d8a85 Fix checkstyle findings in config.discovery.usbserial.windowsregistry (#5223)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2025-12-24 13:19:11 +01:00
lolodomoandGitHub 76da187921 [REST] Add missing media type for output of /links/orphans API (#5216)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2025-12-23 00:33:14 +01:00
dependabot[bot]andGitHub c9b3e7f8eb Bump org.codehaus.mojo:exec-maven-plugin from 3.6.2 to 3.6.3 (#5219)
Bumps [org.codehaus.mojo:exec-maven-plugin](https://github.com/mojohaus/exec-maven-plugin) from 3.6.2 to 3.6.3.
- [Release notes](https://github.com/mojohaus/exec-maven-plugin/releases)
- [Commits](https://github.com/mojohaus/exec-maven-plugin/compare/3.6.2...3.6.3)

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-23 00:32:13 +01:00
Holger FriedrichandGitHub 4084fec56b Prepare for OH 5.2.0 (#5220)
* Fix spotless after unleash
* Resolve itest runbundles

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-12-22 22:01:01 +01:00
openhab-bot f6c7ea6490 [unleash-maven-plugin] Preparation for next development cycle. 2025-12-22 15:00:02 +00:00
lolodomoandGitHub 19f5ad7569 [REST] Fix /links/orphans API (return of the result) (#5214)
Closes #5207

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2025-12-20 15:37:14 +01:00
Florian HotzeandGitHub 05ba25e5ee Persistence upgrader: Fix unmanaged config not respected (#5213)
* Persistence upgrader: Fix unmanaged config not respected

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-12-20 14:15:28 +01:00
a221c4fa41 Persistence upgrader: Create default persistence settings if no configuration so far (#5212)
* fix persistence upgrade

Signed-off-by: Florian Hotze <dev@florianhotze.com>
Co-authored-by: Mark Herwege <mark.herwege@telenet.be>
2025-12-19 21:06:37 +01:00
openhab-botandGitHub 1ea34bf464 New Crowdin updates (#5205)
* New translations automation.properties (Czech)
* New translations messages.properties (Czech)
* New translations messages.properties (Dutch)
* New translations automation.properties (Dutch)
* New translations defaultsystemchannels.properties (Czech)
* New translations addons.properties (Czech)
2025-12-18 20:52:48 +01:00
Kai KreuzerandGitHub 2b594e0944 Upgrade JUPnP to 3.0.4 (#5201)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2025-12-17 00:58:45 +01:00
Mark HerwegeandGitHub 3e494bb0f4 fix upgrade error message if no managed persistence config exists (#5202)
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2025-12-17 00:42:51 +01:00
Florian HotzeandGitHub cbf43fdc9c Update path for persistence health endpoint (#5198)
See https://github.com/openhab/openhab-core/pull/4682#discussion_r2619044396.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-12-16 22:50:05 +01:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
cdfd56484b Bump org.apache.maven.plugins:maven-release-plugin from 3.3.0 to 3.3.1 (#5193)
Bumps [org.apache.maven.plugins:maven-release-plugin](https://github.com/apache/maven-release) from 3.3.0 to 3.3.1.
- [Release notes](https://github.com/apache/maven-release/releases)
- [Commits](https://github.com/apache/maven-release/compare/maven-release-3.3.0...maven-release-3.3.1)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-release-plugin
  dependency-version: 3.3.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-16 19:40:10 +01:00
Jacob LaursenandGitHub 43fd4ef6bd Fix copy'n'paste/typos (#5197)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2025-12-16 17:32:01 +01:00
Cody CutrerandGitHub 46b9cf8f0a Perform simple escaping when building event sources (#5196)
Bundle cannot contain the actor separator ($) or the
delegation separator (=>), and actor cannot contain the delegation
separator.

Also rename the package parameter to bundle, to make it clearer they
shouldn't be any more specific than the full bundle package name.

Signed-off-by: Cody Cutrer <cody@cutrer.us>
2025-12-16 17:22:41 +01:00
Holger FriedrichandGitHub c3deec6d21 Add tests for gson (#5182)
* Add tests for gson

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-12-15 22:33:25 +01:00
Jeff JamesandGitHub b45a3b1203 Fixed issue where EnrichedSemanticTagDTO members were not listed in openapi spec given they were not public (#5194)
Signed-off-by: Jeff James <jeff@james-online.com>
2025-12-15 22:23:08 +01:00
NadaharandGitHub fd00c77ff5 Refactor websocket concurrency handling (#5165)
* Refactor websocket concurrency handling
* Modify web socket buffering logic to ensure FIFO and avoid blocking the logger thread
* Use a dedicated executor that is guaranteed not to log anything
* Logging tweak

Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
2025-12-14 22:14:42 +01:00
Kai KreuzerandGitHub 9c3907da2c Add PersistenceUpgrader (#5190)
This accidentially got lost in https://github.com/openhab/openhab-core/commit/cea82896242c290941a62c519c618d4b702b260f

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2025-12-14 18:23:49 +01:00
Mark HerwegeandGitHub 361d71433d Persistence no default strategies and persistence configuration health check (#4682)
* no default strategy and persistence health
* upgradetool

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2025-12-14 17:28:26 +01:00
openhab-botandGitHub 636c476d3e New Crowdin updates (#5188)
* New translations addons.properties (French)
* New translations tags.properties (French)
2025-12-14 13:11:44 +01:00
CopilotGitHubcopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>kaikreuzer
ed1a094a40 Add missing 400 response documentation to REST API endpoints (#5144)
* Add missing 400 API response documentation to REST endpoints

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kaikreuzer <3244965+kaikreuzer@users.noreply.github.com>
2025-12-13 16:52:19 +01:00
Cody CutrerandGitHub 839581898b Add HomieAddonUpgrader to upgradetool (#5180)
Signed-off-by: Cody Cutrer <cody@cutrer.us>
2025-12-13 14:48:01 +01:00
dependabot[bot]andGitHub 4d8adbfffe Bump actions/upload-artifact from 5 to 6 (#5185)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 5 to 6.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v5...v6)

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-13 09:52:05 +01:00
dependabot[bot]andGitHub dfb7e24741 Bump actions/cache from 4 to 5 (#5186)
Bumps [actions/cache](https://github.com/actions/cache) from 4 to 5.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v4...v5)

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-13 09:01:43 +01:00
Andrew Fiddian-GreenandGitHub c0cd523e8c Lower the log level for useTags (#5142)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2025-12-13 08:24:43 +01:00
lolodomoandGitHub 2789e69d5e [YAML thing provider] Handles properly channels with group (#5181)
Fix openhab/openhab-webui#3562

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2025-12-12 08:45:42 +01:00
Holger Friedrich 82ed8b3d05 Revert "Bump org.eclipse.jdt:ecj from 3.43.0 to 3.44.0 (#5179)"
This reverts commit e05bf6169e.
2025-12-11 01:21:08 +01:00
NadaharandGitHub 409ab79101 Use dedicated executor for long-running SDDP discovery tasks (#5174)
Some of the SDDP tasks are long-running by design, the background scan task in particular runs indefinitely (until interrupted). This clashes with the idea in #4969, and perhaps with the envisioned use of OH's shared thread pools in general, in that pools are small and tasks are expected to be short-lived. When setting logging to DEBUG, the log will be constantly "spammed" with complaints about the SDDP discovery task taking more than 5 seconds, which it is in fact designed to do.

Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
2025-12-09 22:51:04 +01:00