Commit Graph

2938 Commits (5.0.x)

Author SHA1 Message Date
openhab-bot 09f67680be [unleash-maven-plugin] Preparation for next development cycle. 2025-08-19 14:26:11 +00:00
Holger Friedrich ad430a7716
Fix upgradetool dependencies, regression of #4855 (#4924)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-08-16 15:40:49 +02:00
maniac103 6cb98a5331
Map chart interpolation parameter into sitemap JSON response (#4917)
This was missed in #4610 / commit a9a289e3f2

Signed-off-by: Danny Baumann <dannybaumann@web.de>
2025-08-16 15:34:19 +02:00
Florian Hotze d1587fe885
[rest] Remove faulty caching from add-on resource (#4925)
Fixes #4834.
Partly reverts #4107.

The caching of the add-on resource is faulty, e.g. changes to the community marketplace settings don't invalidate the cache.
As Main UI now better handles add-on store loading, caching is no more needed there.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-08-15 18:36:05 +02:00
Florian Hotze c566840acd
AbstractScriptModuleHandler: Recompile scripts on dependency change (#4922)
* AbstractScriptModuleHandler: Recompile scripts on dependency change

When a script's dependency changes, it should recompile the compiled script similarly to resetting the engine for uncompiled scripts.
Fixing this behaviour fixes an issue where compiled scripts stopped working after a dependency changed.

This also simplifies the code a bit.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-08-15 18:35:34 +02:00
Kai Kreuzer f255cf6400 Bump version to 5.0.1-SNAPSHOT 2025-07-21 22:25:06 +02:00
openhab-bot d2b87e6fe6 Preparation for tag creation (Tag name: '5.0.0'). 2025-07-21 07:16:58 +00:00
openhab-bot 0dd5c4c050
New Crowdin updates (#4915)
* New translations defaultsystemchannels.properties (Italian)
* New translations defaultsystemchannels.properties (French)
2025-07-20 00:07:24 +02:00
openhab-bot b05cdfd235
New Crowdin updates (#4914)
* New translations defaultsystemchannels.properties (German)
* New translations defaultsystemchannels.properties (Danish)
2025-07-18 23:34:10 +02:00
Christoph Weitkamp 5711db7fb1
Fix translations for system-channel-type electric:energy (#4912)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2025-07-18 22:43:37 +02:00
openhab-bot cfdb31c517
New translations tags.properties (German) (#4908) 2025-07-17 15:25:49 +02:00
jimtng 07503c2b70
Allow extended unit names for days, hours, minutes, seconds, milliseconds and allow spaces before the unit in expire duration parser (#4873)
* Allow extended unit names for days, hours, minutes, seconds, milliseconds in expire duration parser

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-07-17 14:47:38 +02:00
jimtng a010cdb128
Yaml Model Repository: skip non-existent paths during the initial scan instead of logging a warning (#4899)
* Yaml Model Repository: skip non-existent paths during the initial scan instead of logging a warning

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-07-17 14:46:30 +02:00
Nadahar a6ea26f8f5
Prevent file system access for WatchService DELETE events in FolderObserver (#4907)
Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
2025-07-17 12:10:13 +02:00
openhab-bot 2ae969431c
New translations tags.properties (French) (#4906) 2025-07-16 13:41:16 +02:00
Kai Kreuzer 3d2f10d770
Restrict CORS logging to a single time (#4905)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2025-07-16 10:11:57 +02:00
lolodomo cd26f6feaf
Registry: Avoid warn log when adding ActionType/Metadata several times (#4900)
Fix openhab/openhab-addons#18945
Regression from #4880

For Metadata, it was reported on the community forum, it occured when an item is linked to several channels.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2025-07-15 22:56:52 +02:00
openhab-bot b1a68d0012
New Crowdin updates (#4901)
* New translations audio.properties (Portuguese)
* New translations audio.properties (Portuguese, Brazilian)
* New translations automation.properties (German)
* New translations chart.properties (German)
* New translations defaultsystemchannels.properties (German)
* New translations ephemeris.properties (Portuguese)
* New translations ephemeris.properties (Portuguese, Brazilian)
* New translations firmware.properties (Portuguese)
* New translations firmware.properties (Portuguese, Brazilian)
* New translations inbox.properties (Portuguese)
* New translations inbox.properties (Portuguese, Brazilian)
* New translations jsonstorage.properties (Portuguese)
* New translations jsonstorage.properties (Portuguese, Brazilian)
* New translations jsr223.properties (French)
* New translations jsr223.properties (German)
* New translations languagesupport.properties (Portuguese)
* New translations languagesupport.properties (Portuguese, Brazilian)
* New translations messages.properties (German)
* New translations network.properties (Portuguese)
* New translations network.properties (Portuguese, Brazilian)
* New translations persistence.properties (Portuguese, Brazilian)
* New translations scriptprofile.properties (German)
* New translations sitemap.properties (Portuguese)
* New translations sitemap.properties (Portuguese, Brazilian)
* New translations systemprofiles.properties (German)
* New translations tags.properties (French)
* New translations tags.properties (German)
* New translations units.properties (German)
* New translations units.properties (Portuguese, Brazilian)
* New translations validation.properties (German)
* New translations voice.properties (German)
2025-07-15 15:22:05 +02:00
lolodomo ff1156566b
Fix ready marker not set for model when folder is missing (#4897)
Related to #3823
Replaces #4444

If the sub-folder where models are supposed to be found does not exist, the service is marked as ready anyway.
If not, start level 100 could be never reached at OH startup.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2025-07-13 17:16:47 +02:00
ea21fd6 20610fbd97
Fix persistence threshold filter with UoM (#4881)
* Add tests with UoM conversion

For `PersistenceThresholdFilter` add a test case that fails when
using temperatures in °C and a threshold in Kelvin. The threshold
should ignore the offset (0 °C = 273,15 K).

Add another test with length to increase coverage.

Signed-off-by: Christoph Gehrke <cgdev@duck.com>

* Fix PersistenceThresholdFilter UoM conversion

Use `toUnitRelative()` instead of `toUnit()` for delta (the difference
of old and current state). In particular for temperatures an offset
of different units (like °C and K) should be ignored when considering
the delta.

Signed-off-by: Christoph Gehrke <cgdev@duck.com>

---------

Signed-off-by: Christoph Gehrke <cgdev@duck.com>
2025-07-13 12:28:54 +02:00
lolodomo cc95a6d045
Fix NPE in FolderObserver (#4896)
Fix #4890

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2025-07-13 09:49:58 +02:00
Mark Herwege 69bb634ba6
Item REST endpoint include item parents (#4861)
* parents in item DTO

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2025-07-12 23:48:26 +02:00
Florian Hotze d83d35cd00
[automation] Add logging to script actions/conditions pre-compilation (#4893)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-07-11 19:17:47 +02:00
Holger Friedrich a625d848a4
SAT: Reduce warnings, add suppressions (#4863)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-07-10 19:13:49 +02:00
openhab-bot ff2e108a95
New translations tags.properties (Danish) (#4891) 2025-07-10 19:12:24 +02:00
jimtng 2ed2a3aba3
Log the link in the ScriptProfile execution error message (#4888)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-07-08 06:56:37 +02:00
Jimmy Tanagra ccd36dd298 Fix some conflicting synonyms: App/Application, Heating, Ventilation, A/C, Air Conditioning, Lights, Lighting, Lamps
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-07-07 20:20:06 +02:00
Jimmy Tanagra 77bbd46a80 Raise an error when tags conflict with label or synonyms
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-07-07 20:20:06 +02:00
Andrew Fiddian-Green 1767a0a2ca
Add property tag for lock state (#4882)
* add lock state property

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2025-07-07 20:12:16 +02:00
dependabot[bot] 13ce3a16c9
Bump org.apache.maven.plugins:maven-enforcer-plugin from 3.5.0 to 3.6.0 (#4887)
Bumps [org.apache.maven.plugins:maven-enforcer-plugin](https://github.com/apache/maven-enforcer) from 3.5.0 to 3.6.0.
- [Release notes](https://github.com/apache/maven-enforcer/releases)
- [Commits](https://github.com/apache/maven-enforcer/compare/enforcer-3.5.0...enforcer-3.6.0)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-enforcer-plugin
  dependency-version: 3.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-07 08:24:15 +02:00
dependabot[bot] 1ebdfe7c24
Bump org.codehaus.gmavenplus:gmavenplus-plugin from 4.2.0 to 4.2.1 (#4886)
Bumps [org.codehaus.gmavenplus:gmavenplus-plugin](https://github.com/groovy/GMavenPlus) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/groovy/GMavenPlus/releases)
- [Commits](https://github.com/groovy/GMavenPlus/compare/4.2.0...4.2.1)

---
updated-dependencies:
- dependency-name: org.codehaus.gmavenplus:gmavenplus-plugin
  dependency-version: 4.2.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-07-07 08:23:18 +02:00
Jacob Laursen 81d0e55137
Remove deprecated method from interface (#4884)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2025-07-06 15:16:11 +02:00
Jacob Laursen 7329ce7acf
Remove deprecated discovery methods (#4883)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2025-07-06 06:54:56 +02:00
Jacob Laursen cdfd652ce2
Refactor timestamps to `Instant` in discovery methods (#4866)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2025-07-05 16:18:50 +02:00
Kai Kreuzer ec08f6963c
Fix streaming of m3u audio streams (#4879)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2025-07-05 11:16:30 +02:00
lolodomo b48e1632aa
WARN log when an object with same ID is added to a registry by a seco… (#4880)
* WARN log when an object with same ID is added to a registry by a second provider

Log was existing but at DEBUG level, meaning the general user was not informed that he defined the same object (thing, item, ...) at different places (providers) like for example an item in Main UI and an item in config file with same name.

Fix #4810

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2025-07-01 16:25:03 +02:00
Florian Hotze 77530fe2eb
[thing] Add SemverVersion type to be used by bindings (#4875)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-07-01 08:31:31 +02:00
jimtng 1922550faa
AbstractRegistry: hide exception stacktrace on IAE when adding an element (#4877)
Hide the scary stacktrace from user. The message is sufficient to describe the problem.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-06-30 22:50:17 +02:00
Wouter Born 5c29932f1f
Remove base-fixes bundle (#4876)
It was used by the workaround reverted in #4499.

Signed-off-by: Wouter Born <github@maindrain.net>
2025-06-29 23:08:05 +02:00
jimtng a045b3c601
Move expire's Duration parser to a separate utility class and support `ms` for milliseconds (#4868)
* Move expire's Duration parser to a separate utility class so it can be used elsewhere
* Support `ms` in Duration parser

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-06-29 11:34:21 +02:00
Florian Hotze 80d20d1f3e
[automation] Extend provider script extension for metadata & ItemChannelLinks (#4865)
* [automation] Move provider script extension to a new bundle
* [automation] Add ProviderRegistryDelegate interface and improve ProviderScriptExtension code
* [automation] Add ScriptedMetadataProvider & ProviderMetadataRegistryDelegate
* Rename ProviderRegistryDelegate.java to ProviderRegistry.java
* [automation] Add ScriptedItemChannelLinkProvider & ProviderItemChannelLinkRegistry
* [automation] Implement ProviderItemChannelLinkRegistry::purge

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-06-29 11:32:10 +02:00
jimtng 9efdc0401c
Yaml Model: restrict the watched folders to `things`, `items`, `tags`, and `yaml`; support both '.yaml' and '.yml' extensions (#4798)
* Yaml Model: restrict the watched folders to `things`, `items`, `tags`, and `yaml`
* Support `.yml` and `.yaml` extensions

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-06-28 19:04:57 +02:00
Mark Herwege 565294b9c6
Semantics health REST endpoint (#4827)
* semantics health REST endpoint

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2025-06-28 19:03:11 +02:00
Florian Hotze 6bd830af24
[rest] Add editable field to metadata (#4874)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-06-28 18:51:25 +02:00
Holger Friedrich f26c542429
Fix upgradetool dependencies, regression of #4855 (#4871)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-06-25 22:38:19 +02:00
dependabot[bot] 663951cd95
Bump com.mycila:license-maven-plugin from 4.6 to 5.0.0 (#4800)
Bumps [com.mycila:license-maven-plugin](https://github.com/mathieucarbou/license-maven-plugin) from 4.6 to 5.0.0.
- [Release notes](https://github.com/mathieucarbou/license-maven-plugin/releases)
- [Commits](https://github.com/mathieucarbou/license-maven-plugin/compare/license-maven-plugin-4.6...v5.0.0)

---
updated-dependencies:
- dependency-name: com.mycila:license-maven-plugin
  dependency-version: 5.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-22 12:14:30 +02:00
Wouter Born 3d0996bf83
Upgrade Jollyday to 1.5.4 (#4862)
Upgrades Jollyday from 1.5.0 to 1.5.4.

For release notes, see:

https://github.com/focus-shift/jollyday/releases

Signed-off-by: Wouter Born <github@maindrain.net>
2025-06-21 13:49:20 +02:00
openhab-bot 35dc698215
New Crowdin updates (#4858)
* New translations tags.properties (Danish)
* New translations jsr223.properties (Spanish)
* New translations tags.properties (Hebrew)
* New translations automation.properties (Italian)
* New translations jsr223.properties (Hebrew)
* New translations firmware.properties (Portuguese, Brazilian)
* New translations languagesupport.properties (Portuguese)
* New translations languagesupport.properties (Portuguese, Brazilian)
* New translations audio.properties (Portuguese, Brazilian)
* New translations inbox.properties (Portuguese, Brazilian)
* New translations ephemeris.properties (Portuguese, Brazilian)
* New translations jsonstorage.properties (Portuguese, Brazilian)
* New translations network.properties (Portuguese, Brazilian)
* New translations sitemap.properties (Portuguese, Brazilian)
2025-06-21 08:56:43 +02:00
Holger Friedrich e17577c7c5
Reduce SAT warnings (#4860)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-06-21 07:10:58 +02:00
Holger Friedrich 6eb7d0c9a6
Clean up POM dependencies (#4855)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-06-18 20:23:10 +02:00