Commit Graph

2242 Commits (main)

Author SHA1 Message Date
Holger Friedrich 8988589ed3
[addonservice] Use valid component name (#4848)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-06-15 19:17:33 +02:00
Wouter Born 8becc209f1
Skip antlr-generator-3.2.0-patch.jar download (#4849)
Uses antlr-generator-3.2.0-patch.jar in the repository as it currently can no longer be downloaded causing builds to fail.

See also: https://github.com/eclipse-xtext/xtext/issues/3443

Signed-off-by: Wouter Born <github@maindrain.net>
2025-06-15 15:51:55 +02:00
jimtng 98e3b13c71
Add ValueCache.compute method (#4704)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-06-14 14:52:34 +02:00
Florian Hotze f695acfc4c
[automation] Add provider script extension (#4513)
* [automation] Add provider script extension

This new script extension allow scripts to provide openHAB entities like Items without needing to manually handle the lifecycle of those.
First, we will only provide an itemRegistry, but this can easily be extended later.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-06-14 14:46:59 +02:00
maxx-ukoo 48e20d660a
Fix calculate readOnly field in stateDescription for items with more than one linked channel (#4838) (#4845)
Signed-off-by: Maksym Krasovskyi <maxx@maxx.net.ua>
2025-06-09 21:57:27 +02:00
Holger Friedrich e72a7905e3
Use gmavenplus-plugin (#4843)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-06-08 16:58:46 +02:00
dependabot[bot] 9eb13a517c
Bump org.codehaus.mojo:exec-maven-plugin from 3.5.0 to 3.5.1 (#4835)
Bumps [org.codehaus.mojo:exec-maven-plugin](https://github.com/mojohaus/exec-maven-plugin) from 3.5.0 to 3.5.1.
- [Release notes](https://github.com/mojohaus/exec-maven-plugin/releases)
- [Commits](https://github.com/mojohaus/exec-maven-plugin/compare/3.5.0...3.5.1)

---
updated-dependencies:
- dependency-name: org.codehaus.mojo:exec-maven-plugin
  dependency-version: 3.5.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-06-02 06:26:56 +02:00
dependabot[bot] 592deb2ec0
Bump org.codehaus.groovy:groovy-all from 3.0.24 to 3.0.25 (#4837)
Bumps [org.codehaus.groovy:groovy-all](https://github.com/apache/groovy) from 3.0.24 to 3.0.25.
- [Commits](https://github.com/apache/groovy/commits)

---
updated-dependencies:
- dependency-name: org.codehaus.groovy:groovy-all
  dependency-version: 3.0.25
  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-06-02 06:26:03 +02:00
Florian Hotze 5126166611
[rest] Add timezone information to root resource (#4826)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-05-30 03:12:10 +02:00
Holger Friedrich 07ad5b52b2
Tweak x-axis labels of charts (#4830)
* More tuning to avoid overlapping of labels,
      follow-up to #4733

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-05-30 03:10:53 +02:00
Andrew Fiddian-Green cce185af64
UPNP don't notify embedded child devices by default (#4735)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2025-05-29 10:02:00 +02:00
Nadahar 5b12280f5b
Regenerate rules from templates (#4718)
* Rule template regeneration support

Signed-off-by: Ravi Nadahar <nadahar@rediffmail.com>
2025-05-26 22:53:17 +02:00
lolodomo fb62bf33cd
YAML config: fix user defined channels creation when binding loads late (#4823)
While things can now be loaded even when the binding is not yet available, channel types for user defined channels could be not yet in the registry when these channels are first created.
So when the binding is finally available, the thing is updated and user defined channels are now created again to retrieve properties from channel types.

This fix avoids warnings at startup regarding missing channel types.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2025-05-25 21:18:17 +02:00
lolodomo 26c2631296
YAML model loading: WARN log when an element is not a container object (#4824)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2025-05-25 21:17:01 +02:00
openhab-bot c53a6a9e61
New Crowdin updates (#4819)
* New translations tags.properties (Danish)
* New translations messages.properties (French)
* New translations tags.properties (Danish)
* New translations messages.properties (Danish)
2025-05-20 21:31:39 +02:00
Holger Friedrich 3211e2012d
Tweak x-axis labels of charts (#4733)
* Avoid overlapping of labels

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-05-19 08:58:15 +02:00
lolodomo cb42343c3e
YAML item proviuder: fix method isVersionSupported (#4820)
Required after the merge of PR #4807 and PR #4776

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2025-05-18 21:57:02 +02:00
lolodomo bc62a202ee
YAML configuration: add support for items/metadata/channel links (#4776)
* YAML configuration: add support for items/metadata/channel links

This PR adds the support of items in the YAML configuration file.
It also includes the support of items metadata and items channel links.

Related to #3666

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2025-05-18 20:46:18 +02:00
lolodomo 53ddb0c29c
YAML model repository: supports only version 1 with elements as map (#4807)
* YAML model repository: supports only version 1 with elements as map

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2025-05-18 20:44:31 +02:00
jimtng 6ecd6c3891
Fix inconsistent payload field name for ItemStateUpdatedEvent lastUpdate -> lastStateUpdate (#4752)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-05-18 19:19:23 +02:00
jimtng 825def252d
Refactor to avoid possible null pointer dereference in YamlModelRepositoryImpl (#4788)
* Refactor to avoid possible null pointer dereference in YamlModelRepositoryImpl
* add null check

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-05-18 19:12:24 +02:00
lolodomo d6fb61d0c7
YAML config: add "description" field to channel for things (#4795)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2025-05-18 18:57:43 +02:00
Andrew Fiddian-Green c4c2c4c431
Semantic tags: Apply description texts for Point/Property/Equipment (#4750)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Co-authored-by: jimtng <2554958+jimtng@users.noreply.github.com>
2025-05-18 18:03:30 +02:00
Mark Herwege d346509a2a
Enable semantic tag description translations (#4746)
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2025-05-18 08:20:39 +02:00
openhab-bot e9700f85ec
New Crowdin updates (#4787)
* New translations messages.properties (Italian)

* New translations validation.properties (Portuguese)

* New translations firmware.properties (Portuguese)

* New translations systemprofiles.properties (Portuguese)

* New translations audio.properties (Portuguese)

* New translations inbox.properties (Portuguese)

* New translations ephemeris.properties (Portuguese)

* New translations restauth.properties (Portuguese)

* New translations addons.properties (Portuguese)

* New translations jsonstorage.properties (Portuguese)

* New translations chart.properties (Portuguese)

* New translations i18n.properties (Portuguese)

* New translations network.properties (Portuguese)

* New translations sitemap.properties (Portuguese)

* New translations marketplace.properties (Portuguese)

* New translations systemthingstatusinfos.properties (Portuguese)

* New translations units.properties (Portuguese)

* New translations jsr223.properties (Portuguese)

* New translations automation.properties (Hebrew)

* New translations tags.properties (Hebrew)

* New translations messages.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-05-11 13:12:47 +02:00
dependabot[bot] 1ef1cabcf0
Bump org.apache.ivy:ivy from 2.5.2 to 2.5.3 (#4806)
Bumps org.apache.ivy:ivy from 2.5.2 to 2.5.3.

---
updated-dependencies:
- dependency-name: org.apache.ivy:ivy
  dependency-version: 2.5.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-11 13:00:49 +02:00
dependabot[bot] 24b8c32d30
Bump org.codehaus.groovy:groovy-all from 3.0.23 to 3.0.24 (#4801)
Bumps [org.codehaus.groovy:groovy-all](https://github.com/apache/groovy) from 3.0.23 to 3.0.24.
- [Commits](https://github.com/apache/groovy/commits)

---
updated-dependencies:
- dependency-name: org.codehaus.groovy:groovy-all
  dependency-version: 3.0.24
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-11 12:59:54 +02:00
lolodomo 3df33758d4
YAML things provider: create things even if binding is not yet installed (#4753)
Makes it consistent with managed thing provider.

Removes the OSGi reference between YamlThingProvider and YamlModelRepository and as consequence removes the circular reference.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2025-05-11 12:57:21 +02:00
jimtng c40c258e04
WatchService: use absolute path in processWatchEvent (#4796)
* WatchService: use absolute path in processWatchEvent

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>

* update interface and use a consistent name `fullPath`

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>

---------

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-05-10 16:13:03 +02:00
Florian Hotze 8ff69a3f50
[rest] Support sending Item command/state as JSON (#4760)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-05-09 22:32:38 +02:00
lolodomo 8d3c3575a2
[REST] Fix API to get file format when applied to a subset of elements (#4786)
Fix #4778

Things and items are now sorted in output only when all elements are requested.
If the API is requested only for a subset of elements (things or items), the output respects the input order of elements.

DSL generator for things and items is also fixed to avoid a crash when called with 0 element.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2025-05-06 20:16:24 +02:00
jimtng 3fb76c9fae
Create API Token: add regex validation to html input (#4782)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-05-03 07:46:22 +02:00
lolodomo a65b9a4b83
YAML things: clean map when removing the last elements for a model (#4763)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2025-04-30 22:14:13 +02:00
lolodomo 3404384c47
YAML parser: filter unexpected part from the parse exception message (#4759)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2025-04-30 22:11:16 +02:00
lolodomo 003c6e18e1
YAML things: adjustment of messages when checking a thing element (#4761)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2025-04-30 06:42:08 +02:00
jimtng 0b89fbd2cd
YAML Model Repository: Fix premature unknown element warning (#4755)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-04-30 06:31:57 +02:00
jimtng 22db52ecc4
Add YamlModelRepository test for removal of version or element type (#4758)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-04-28 11:13:29 +02:00
Holger Friedrich 7820dc45bd
Cleanup: Java21, SAT (#4757)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-04-28 08:55:53 +02:00
openhab-bot 8fbea76834
New translations tags.properties (Danish) (#4756) 2025-04-27 08:28:29 +02:00
Andrew Fiddian-Green 4167c02239
Add property.info tag for media channel types (#4754)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2025-04-27 07:29:36 +02:00
Andrew Fiddian-Green 5a097ed270
Semantic tags: Just a few more (#4745)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Co-authored-by: jimtng <2554958+jimtng@users.noreply.github.com>
2025-04-26 22:52:53 +02:00
jimtng f5f8921e14
Yaml Model Repository: Remove elements no longer in model (#4749)
This fix two scenarios:
- When the new model is missing `version:` key but the old model had one, the file is considered invalid, but the previously loaded elements didn't get removed
- When the new model has a valid `version:` key, but the entire element type, e.g. `thing:` is removed, the previously loaded elements (e.g. things) didn't get removed.

Additionally, log a warning when an unknown element type is encountered.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-04-26 08:16:47 +02:00
jimtng 9cc4a05486
include .yaml extension in the model name (#4747)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-04-26 08:07:55 +02:00
jimtng dfe4615912
YAMLThing: fix typo and minor refactor (#4748)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-04-26 08:00:44 +02:00
jimtng 685264295c
FileFormatResource: accept multiple ids in a single request (#4734)
* FileFormatResource: accept multiple ids in a single request
* Change from GET endpoints to POST

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-04-23 19:09:25 +02:00
lolodomo 46dcfa674d
[DSL generator] Consider a bridge thing as bridge if it contains things (#4740)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2025-04-23 19:05:12 +02:00
openhab-bot d0308a2348
New translations tags.properties (Danish) (#4741) 2025-04-23 19:03:20 +02:00
lolodomo 2a4b0735fc
[DSL generator] Avoid injecting the state pattern in label if already present in stateDescription metadata (#4730)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2025-04-23 18:49:17 +02:00
Mark Herwege 9741434f61
Fix GroupItem restore (#4743)
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2025-04-23 18:42:57 +02:00
Andrew Fiddian-Green aa8e05f877
Semantic tags: add zones, move battery (#4738)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2025-04-22 21:05:09 +02:00