Commit Graph
3041 Commits
Author SHA1 Message Date
dependabot[bot]andGitHub 8e1aea5c1f Bump org.apache.maven.plugins:maven-plugin-plugin from 3.15.1 to 3.15.2 (#5097)
Bumps [org.apache.maven.plugins:maven-plugin-plugin](https://github.com/apache/maven-plugin-tools) from 3.15.1 to 3.15.2.
- [Release notes](https://github.com/apache/maven-plugin-tools/releases)
- [Commits](https://github.com/apache/maven-plugin-tools/compare/maven-plugin-tools-3.15.1...maven-plugin-tools-3.15.2)

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-24 22:45:27 +02:00
dependabot[bot]andGitHub f7b9b71dfa Bump actions/upload-artifact from 4 to 5 (#5096)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 5.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v5)

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-24 22:44:34 +02:00
Cody CutrerandGitHub 934431cdb4 Set event source for updates and commands from bindings according to new standards (#5073)
* Set event source for updates and commands from bindings according to new standards

In particular, prefix the channel UID with the package (org.openhab.core.thing), and
the channel UID becomes the actor.

Extends ProfileCallback to allow profiles to explicitly specify a source, and then
uses the new delegation syntax to append the channel UID source component in that
case.

Signed-off-by: Cody Cutrer <cody@cutrer.us>
2025-10-24 06:09:32 +02:00
NadaharandGitHub d10530817f IP add-on finder: resolve source IP before broadcast scan (#5090)
Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
2025-10-24 00:40:27 +02:00
Cody CutrerandGitHub 7efff5b374 Send source for console commands to items (#5079)
Signed-off-by: Cody Cutrer <cody@cutrer.us>
2025-10-24 00:21:41 +02:00
Cody CutrerandGitHub 26a59793b3 Set event source for restoring item states from persistence (#5082)
Signed-off-by: Cody Cutrer <cody@cutrer.us>
2025-10-24 00:20:22 +02:00
Cody CutrerandGitHub e1a1d6c166 Add helpers for constructing event sources (#5078)
Signed-off-by: Cody Cutrer <cody@cutrer.us>
2025-10-24 00:01:37 +02:00
Cody CutrerandGitHub 32868df4d4 Pass event sources through item state update/change events (#5081)
Signed-off-by: Cody Cutrer <cody@cutrer.us>
2025-10-23 23:57:47 +02:00
Cody CutrerandGitHub 6f6ba7d4ec Include source with item event descriptions when present (#5080)
Signed-off-by: Cody Cutrer <cody@cutrer.us>
2025-10-23 23:36:55 +02:00
lo92frandGitHub dcb1d014dd [upnp] Fix event handling for embeded devices (#5076)
Signed-off-by: Laurent ARNAL <laurent@clae.net>
2025-10-23 22:29:44 +02:00
dependabot[bot]andGitHub e72baac1fb Bump org.apache.groovy:groovy-all from 5.0.1 to 5.0.2 (#5088)
Bumps [org.apache.groovy:groovy-all](https://github.com/apache/groovy) from 5.0.1 to 5.0.2.
- [Commits](https://github.com/apache/groovy/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-20 20:05:48 +02:00
dependabot[bot]andGitHub 1226a71f47 Bump org.codehaus.mojo:exec-maven-plugin from 3.6.1 to 3.6.2 (#5087)
Bumps [org.codehaus.mojo:exec-maven-plugin](https://github.com/mojohaus/exec-maven-plugin) from 3.6.1 to 3.6.2.
- [Release notes](https://github.com/mojohaus/exec-maven-plugin/releases)
- [Commits](https://github.com/mojohaus/exec-maven-plugin/compare/3.6.1...3.6.2)

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-20 20:04:48 +02:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2c6fdb3ee4 Bump org.apache.maven.plugins:maven-archetype-plugin from 3.4.0 to 3.4.1 (#5071)
Bumps [org.apache.maven.plugins:maven-archetype-plugin](https://github.com/apache/maven-archetype) from 3.4.0 to 3.4.1.
- [Release notes](https://github.com/apache/maven-archetype/releases)
- [Commits](https://github.com/apache/maven-archetype/compare/maven-archetype-3.4.0...maven-archetype-3.4.1)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-archetype-plugin
  dependency-version: 3.4.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-10-11 11:15:09 +02:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
21335699e6 Bump org.apache.maven.archetype:archetype-packaging from 3.4.0 to 3.4.1 (#5070)
Bumps [org.apache.maven.archetype:archetype-packaging](https://github.com/apache/maven-archetype) from 3.4.0 to 3.4.1.
- [Release notes](https://github.com/apache/maven-archetype/releases)
- [Commits](https://github.com/apache/maven-archetype/compare/maven-archetype-3.4.0...maven-archetype-3.4.1)

---
updated-dependencies:
- dependency-name: org.apache.maven.archetype:archetype-packaging
  dependency-version: 3.4.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-10-11 11:14:43 +02:00
NadaharandGitHub 191b62df7f Fix ActionHandler.execute() nullness annotation (#4974)
Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
2025-10-11 08:35:39 +02:00
lolodomoandGitHub 6282298b15 [YAML provider] Fix check of syntax for item names (#5065)
Closes #4903

Makes check consistent with what was done for DSL in #4928

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2025-10-10 23:32:33 +02:00
Florian HotzeandGitHub 26015ff8c5 ScriptTransformationService: Handle engine removal through ScriptEngineManager (#5063)
* ScriptTransformationService: Fix engine closed too early

Currently, there are two issues:

When a ScriptRecord is cleared from the cache,
the ScriptTransformationService currently closes the ScriptEngine itself, without involving the ScriptEngineManager.
If a transformation script is invoked again after it has been cleared from the scriptCache, the ScriptEngineManager::createScriptEngine call makes the ScriptEngineManager first remove the old engine from its internal "store",
which includes invoking the scriptUnloaded hook. This invocation can cause an exception because the engine is already closed (by ScriptTransformationService) and hence function/method invocations inside the engine are not possible anymore.

Ff the engine implement Compilable, it is even closed two times by ScriptTransformationService, possibly causing an exception if the ScriptEngine doesn't handle multiple close() calls gracefully.

These issues are fixed by properly notifying the ScriptEngineManager when an engine should be removed and leaving the removal handling to the ScriptEngineManager.

The issues were discovered while working on #5062.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-10-10 23:30:56 +02:00
Florian HotzeandGitHub 508f1f61cc ScriptTransformationService: Implement missing script dependency tracking (#5062)
Closes #5046.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-10-10 23:26:34 +02:00
NadaharandGitHub 5972b1ea31 Make TimerImpl thread-safe (#5051)
Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
2025-10-10 23:24:43 +02:00
NadaharandGitHub aa73ac8171 Isolate discovery result registrations from binding threads (#5032)
By using the discovery thread pool to do the actual registrations in AbstractDiscoveryService, binding threads won't have to wait for the registration to complete, which can be slow.

In addition, some thread-safety fixes have been done in AbstractDiscoveryService and DiscoveryServiceRegistryImpl, both to avoid contention and to ensure isolation of mutable objects.

Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
2025-10-10 23:19:14 +02:00
NadaharandGitHub 9d679718ed Fix AddonSuggestionService configuration (#5042)
AddonSuggestionService has had a delayed application of configuration because it was based on a timer that refreshed it every minute. This led to various issue where "wrong decision" were made based on stale information. This addresses the root cause for why the configuration wasn't delivered in a timely manner by OSGi, and removes the scheduled configuration refresh.

For the configuration to be accessible to multiple bundles, its "location" must be "a region". This must be configured before any bundle tries to use the configuration. To do this very early, it has been attached to the Activator of the "main core bundle". It doesn't have to be there, as long as it will always run very early during startup.

Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
2025-10-08 20:30:06 +02:00
NadaharandGitHub 9aa597249a Add tests for rules and rule templates JSON parser (#4910)
Additionally, change HashSet to LinkedHashSet in classes RuleGSONParser and TemplateGSONParser
to make iteration order predictable.

Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
2025-10-08 19:04:22 +02:00
Cody CutrerandGitHub 71692e7b36 Add item overloads for providing source (#5040)
* Add item overloads for providing source

Signed-off-by: Cody Cutrer <cody@cutrer.us>
2025-10-07 22:39:40 +02:00
dependabot[bot]andGitHub 1517cc36ea Bump org.codehaus.mojo:exec-maven-plugin from 3.6.0 to 3.6.1 (#5060)
Bumps [org.codehaus.mojo:exec-maven-plugin](https://github.com/mojohaus/exec-maven-plugin) from 3.6.0 to 3.6.1.
- [Release notes](https://github.com/mojohaus/exec-maven-plugin/releases)
- [Commits](https://github.com/mojohaus/exec-maven-plugin/compare/3.6.0...3.6.1)

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-06 07:25:29 +02:00
Florian HotzeandGitHub f600c8dcba [automation] AbstractScriptModuleHandler: Inject module type ID early (#5058)
Follow-up for #5054.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-10-05 20:50:35 +02:00
Gaël L'hopitalandGitHub 4459088265 Semantics file correction (#5050)
* Correction of a small mistake on AirConditioner that puts synonyms in label

Signed-off-by: gael@lhopital.org <gael@lhopital.org>
2025-10-05 10:49:26 +02:00
Florian HotzeandGitHub 86e8adb42e [automation] AbstractScriptModuleHandler: Inject module type ID into context (#5054)
* [automation] AbstractScriptModuleHandler: Inject module type ID into context

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-10-03 19:43:23 +02:00
dependabot[bot]andGitHub 3ed9b08744 Bump org.apache.maven.plugins:maven-dependency-plugin (#5052)
Bumps [org.apache.maven.plugins:maven-dependency-plugin](https://github.com/apache/maven-dependency-plugin) from 3.8.1 to 3.9.0.
- [Release notes](https://github.com/apache/maven-dependency-plugin/releases)
- [Commits](https://github.com/apache/maven-dependency-plugin/compare/maven-dependency-plugin-3.8.1...maven-dependency-plugin-3.9.0)

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-03 16:45:06 +02:00
dependabot[bot]andGitHub c10f7b23d5 Bump org.apache.maven.plugins:maven-enforcer-plugin from 3.6.1 to 3.6.2 (#5053)
Bumps [org.apache.maven.plugins:maven-enforcer-plugin](https://github.com/apache/maven-enforcer) from 3.6.1 to 3.6.2.
- [Release notes](https://github.com/apache/maven-enforcer/releases)
- [Commits](https://github.com/apache/maven-enforcer/compare/enforcer-3.6.1...enforcer-3.6.2)

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-03 16:44:11 +02:00
dependabot[bot]andGitHub 51110e96cb Bump org.codehaus.mojo:exec-maven-plugin from 3.5.1 to 3.6.0 (#5049)
Bumps [org.codehaus.mojo:exec-maven-plugin](https://github.com/mojohaus/exec-maven-plugin) from 3.5.1 to 3.6.0.
- [Release notes](https://github.com/mojohaus/exec-maven-plugin/releases)
- [Commits](https://github.com/mojohaus/exec-maven-plugin/compare/3.5.1...3.6.0)

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-01 20:40:43 +02:00
Holger FriedrichandGitHub cb5354ecd2 Fix ConcurrentModificationException during format conversion (#5045)
Regression from #4793

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-10-01 08:35:24 +02:00
openhab-botandGitHub a6a9a07691 New Crowdin updates (#5047)
* New translations addons.properties (Italian)
* New translations addons.properties (Danish)
* New translations addons.properties (German)
2025-09-30 23:45:36 +02:00
Andrew Fiddian-GreenandGitHub 9448de46d0 Apply default semantic tags from linked channels to items (#4913)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2025-09-28 20:52:56 +02:00
Mark HerwegeandGitHub 3f9eca44ea MQTT transport: add cleanSession/cleanStart parameter (#5030)
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2025-09-28 07:25:36 +02:00
NadaharandGitHub f5d2746c04 SDDP clarification (#5031)
* Clarify that SDDP isn't SSDP

Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
2025-09-27 15:51:02 +02:00
dependabot[bot]andGitHub 46f81a000d Bump org.apache.maven.plugins:maven-compiler-plugin (#5036)
Bumps [org.apache.maven.plugins:maven-compiler-plugin](https://github.com/apache/maven-compiler-plugin) from 3.14.0 to 3.14.1.
- [Release notes](https://github.com/apache/maven-compiler-plugin/releases)
- [Commits](https://github.com/apache/maven-compiler-plugin/compare/maven-compiler-plugin-3.14.0...maven-compiler-plugin-3.14.1)

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-22 06:50:45 +02:00
dependabot[bot]andGitHub 44abd31b18 Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.11.2 to 3.12.0 (#5035)
Bumps [org.apache.maven.plugins:maven-javadoc-plugin](https://github.com/apache/maven-javadoc-plugin) from 3.11.2 to 3.12.0.
- [Release notes](https://github.com/apache/maven-javadoc-plugin/releases)
- [Commits](https://github.com/apache/maven-javadoc-plugin/compare/maven-javadoc-plugin-3.11.2...maven-javadoc-plugin-3.12.0)

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-22 06:28:18 +02:00
Holger FriedrichandGitHub b68a58dbe0 Fix tests when having spaces in path (#5034)
Regression of #4991

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-09-21 14:36:41 +02:00
jimtngandGitHub 7c848bf891 DSL Items Parser: Fix incorrect parsing of keywords encountered in the wrong context (#4928)
* DSL Items Parser: Fix incorrect parsing of keywords encountered in the wrong context

When specifying tag names that match one of the valid item types, e.g. `Switch`, the parser incorrectly treated it as a new start of an item definition.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-09-21 14:14:24 +02:00
lolodomoandGitHub 00b6a476a7 [REST] New API for conversion between file format and JSON (#4793)
* [REST] New API for conversion between file format and JSON

Related to #4585

This PR supports conversion of things and items.
It supports DSL and YAML file formats.

A first new API (POST /file-format/create) allows to create a file format (DSL or YAML) from a JSON object.
A second new API (POST /file-format/parse) allows to parse a file format (DSL or YAML) to a JSON object.

These 2 APIs should help Main UI displaying DSL and YAML file formats for things.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2025-09-21 11:48:33 +02:00
Andrew Fiddian-GreenandGitHub 0f7049347d Apply blocked task logging to scheduled executor service (#4969)
* log dead tasks
* do log when tasks are scheduled and/or run

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2025-09-21 11:38:54 +02:00
Mark HerwegeandGitHub 32f08c2a28 Persistence extensions query optimization (#4967)
* remove double query to persistence
* call internal method
* remove double calls to now

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2025-09-20 21:26:30 +02:00
lolodomoandGitHub 9c6d304b7d Fix enabling/disabling of addons suggestors at OH startup (#5020)
Before this fix, the AddonSuggestionService service was started and an incomplete configuration was considered, a configuration containing none of the user settings defining if each suggestion finder should be enabled or disabled.
Later, when AddonFinderService service was added, the same incomplete configuration was reused.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2025-09-20 20:54:34 +02:00
Mark HerwegeandGitHub 75ceb0fcd0 Fix persistence extensions test reliability (#4964)
* Fix persistence extensions test reliability
* remove now dependency from irregular timespans tests

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2025-09-16 22:07:01 +02:00
NadaharandGitHub 44a9bb3280 Marketplace fixes (#4929)
* Remove forum compatibility range from add-on title
* Fix and unify error handling of missing content in community marketplace add-on handlers

Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
2025-09-16 22:02:03 +02:00
Gwendal RoulleauandGitHub e993cd8972 Details cause message in ui transformation when a script is the cause. (#5028)
Use ScripProfile.java (executeScript) method as a reference.

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
2025-09-16 21:46:33 +02:00
dependabot[bot]andGitHub ab76c6b33b Bump org.apache.groovy:groovy-all from 4.0.28 to 5.0.1 (#5026)
Bumps [org.apache.groovy:groovy-all](https://github.com/apache/groovy) from 4.0.28 to 5.0.1.
- [Commits](https://github.com/apache/groovy/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-15 18:50:59 +02:00
dependabot[bot]andGitHub 50c0cf3404 Bump org.apache.maven.plugins:maven-surefire-plugin from 3.5.3 to 3.5.4 (#5024)
Bumps [org.apache.maven.plugins:maven-surefire-plugin](https://github.com/apache/maven-surefire) from 3.5.3 to 3.5.4.
- [Release notes](https://github.com/apache/maven-surefire/releases)
- [Commits](https://github.com/apache/maven-surefire/compare/surefire-3.5.3...surefire-3.5.4)

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-15 18:47:54 +02:00
dependabot[bot]andGitHub f2bb57281e Bump org.apache.maven.plugins:maven-shade-plugin from 3.6.0 to 3.6.1 (#5025)
Bumps [org.apache.maven.plugins:maven-shade-plugin](https://github.com/apache/maven-shade-plugin) from 3.6.0 to 3.6.1.
- [Release notes](https://github.com/apache/maven-shade-plugin/releases)
- [Commits](https://github.com/apache/maven-shade-plugin/compare/maven-shade-plugin-3.6.0...v3.6.1)

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-15 18:45:37 +02:00
NadaharandGitHub e39fb12112 Make REST endpoints accept more logger name characters (#4983)
Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
2025-09-14 16:56:16 +02:00