Commit Graph

2885 Commits (main)

Author SHA1 Message Date
jimtng 089961ac43
Allow multiple default values to contain an escaped comma (#4657)
* Allow multiple default values to contain an escaped comma

An comma character can be a part of the value when escaped with a backslash.
The backslash will be removed, i.e. `\,` -> `,`

To have an actual backslash and comma, add an extra backslash, i.e. `\\,` -> `\,`

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-04-03 21:34:27 +02:00
lolodomo 2aa19c73d0
Introduce YAML configuration version 2 (#4648)
* Introduce YAML configuration version 2

Version 2 uses map to store elements while version 1 uses table.
Version 1 is still supported.

Unit tests have been extended to cover version 1 and 2.

Related to #3666

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2025-04-03 21:22:44 +02:00
jimtng 5fcee65236
Generate valid tags in thing-description-1.0.0.xsd (#4626)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-04-03 21:17:59 +02:00
Andrew Fiddian-Green 75e0a2dd33
Semantic Tags: Added PROPERTY tags (#4695)
* add property tags
* remove spaces

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2025-04-03 21:12:34 +02:00
Andrew Fiddian-Green 85d539c35b
Semantic Tags: set EQUIPMENT tags on Things (#4617)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Co-authored-by: Holger Friedrich <mail@holger-friedrich.de>
2025-04-03 21:10:13 +02:00
Holger Friedrich 1c33c03cd4
Upgrade plugins (#4641)
* maven-clean-plugin to 3.4.1
https://github.com/apache/maven-clean-plugin/releases/tag/maven-clean-plugin-3.4.1
* maven-compiler-plugin to 3.14.0
https://github.com/apache/maven-compiler-plugin/releases/tag/maven-compiler-plugin-3.14.0
* maven-deploy-plugin to 3.1.4
https://github.com/apache/maven-deploy-plugin/releases/tag/maven-deploy-plugin-3.1.4
* maven-intstall-plugin to 3.1.4
https://github.com/apache/maven-install-plugin/releases/tag/maven-install-plugin-3.1.4
* i18n-plugin:
  * upgrade maven-plugin-api to 3.9.6
  * upgrade maven-plugin-annotations to 3.15.1
* remove unused property

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-04-03 17:46:30 +02:00
Holger Friedrich 1e0b2f030c
Fix JavaDoc build (#4693)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-04-03 08:10:31 +02:00
Holger Friedrich d7383d9d5e Fix ThreadPool monitoring
* Base UnstoppableExecutorService on ThreadPoolExecutor which is
  supported by ExecutorServiceMetrics of micrometer-core
* Fix handling of references to ExecutorServiceMetrics to avoid garbage
  collection removing the instances
* Remove duplicate registration of ThreadPools

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-04-02 22:14:15 +02:00
Holger Friedrich 2a12cd63c3 [io.monitor] Upgrade dependencies
* metrics-core from 4.0.7 to 4.2.30

Release notes:
https://github.com/dropwizard/metrics/releases

* micrometer-core from 1.6.3 to 1.14.5

Release notes:
https://github.com/micrometer-metrics/micrometer/releases

* HdrHistogram from 2.1.12 to 2.2.2

Release notes:
https://github.com/HdrHistogram/HdrHistogram/releases/tag/HdrHistogram-2.2.1
https://github.com/HdrHistogram/HdrHistogram/releases/tag/HdrHistogram-2.2.2

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-04-02 22:14:15 +02:00
Andrew Fiddian-Green e05185e407
Semantic Tags: validate POINT/PROPERTY tags on Channel Types (#4615)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2025-04-02 22:09:10 +02:00
jimtng e3166cdab8
Create static constants for the default semantic tags (#4622)
* Create static constants for the default semantic tags

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-04-02 22:03:33 +02:00
jimtng 9cd72164f5
Add `lastStateUpdate`, `lastStateChange` to `ItemStateUpdatedEvent`/`ItemStateChangedEvent` (#4606)
* Add `lastStateUpdate`, `lastStateChange` to `ItemStateUpdatedEvent`/`ItemStateChangedEvent`

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-04-02 21:59:16 +02:00
jimtng 40d9a67e53
Log warnings when an Item's semantic structure is incorrect (#4613)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-04-02 21:54:40 +02:00
openhab-bot 5c8b18dcc6
New Crowdin updates (#4683)
* New translations tags.properties (Italian)
* New translations scriptprofile.properties (Czech)
* New translations units.properties (Norwegian)
* New translations voice.properties (Finnish)
* New translations chart.properties (Italian)
* New translations tags.properties (Finnish)
* New translations tags.properties (Hebrew)
* New translations automation.properties (Italian)
* New translations automation.properties (Hebrew)
2025-04-02 21:25:22 +02:00
jimtng 0e4a064d82
Allow using '*' and '?' as wildcards in Item state and command triggers (#4646)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-04-02 21:19:19 +02:00
Mark Herwege 69aaf40e0c
Persistence filters allow unquoted units (#4681)
* allow filters without quotes around units

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2025-04-02 20:07:52 +02:00
jimtng a670ddf2ef
Fix i18n:generate-default-translations on add-on config other than bindings (#4650)
* Fix i18n:generate-default-translations on add-on config other than bindings
* translate all xml config descriptions

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-04-02 20:03:37 +02:00
Yug Vajani 6e87152b90
Fixed a few non deterministic tests in the repository (#4475)
Signed-off-by: Yug Vajani <yvajani2@illinois.edu>
2025-04-02 20:01:21 +02:00
Gaël L'hopital a259a549d3
Some other non null annotations (#4593)
* Some other non null annotations and small code enhancements in org.openhab.core

Signed-off-by: gael@lhopital.org <gael@lhopital.org>
2025-04-02 19:56:10 +02:00
Holger Friedrich 96f9721afd
Speedup Build (#4687)
* Speedup Build

* GitHub Action for build and test is split up:
  * build: spotless, build, test, itest
  * sat: build, sat (checkstyle, pmd, spotbugs)
  * javadoc: build javadoc to make sure it does not break

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-04-02 19:53:55 +02:00
jimtng 04b3890d03
Allow startlevel to increase past 80 when a bridge is disabled (#4640)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-04-02 01:06:21 +02:00
Andrew Fiddian-Green 1960646a6d
prevent concurrent token read / refresh (#4686)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2025-03-29 18:09:33 +01:00
Holger Friedrich 0f354e63f3
Improve GitHub Actions (#4660)
* pin external action stCarolas/setup-maven to specific SHA
* set global timeout
* comments
* restore broken registration of problem matchers

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-03-26 08:40:58 +01:00
Holger Friedrich 0b9a8929f2
Adjust dependencies to fix JavaDoc build (#4680)
* remove duplicate import
* add apiguardian-api, a transitive dependeny of junit, to
  compile bom to avoid JavaDoc warning

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-03-26 08:37:30 +01:00
Mark Herwege f171ecc19c
Persistence Extensions: Riemann Sums (#4461)
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2025-03-24 19:44:08 +01:00
Mark Herwege a9a289e3f2
Sitemap interpolation parameter for charts (#4610)
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2025-03-24 19:31:43 +01:00
Holger Friedrich 1465a16b3b
Upgrade plexus-compiler-eclipse and ecj (#4664)
* Upgrade plexus-compiler-eclipse from 2.12.1 to 2.15.0
  https://github.com/codehaus-plexus/plexus-compiler/releases
* Require maven 3.9.6, this is enforced as required by plexus-compiler
* Upgrade ecj from 3.39.0 to 3.41.0
* Minor adaption of ThingManagerImpl to allow for ecj > 3.39

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-03-23 20:29:27 +01:00
Holger Friedrich 72cf4c1109
Upgrade dependencies (#4663)
* Upgrade jose4j for 0.9.5 to 0.9.6
  https://bitbucket.org/b_c/jose4j/wiki/Release%20Notes
* Upgrade commons-io from 2.17.0 to 2.18.0
  https://commons.apache.org/proper/commons-io/changes-report.html#a2.18.0
* Upgrade commons-net from 3.9.0 to 3.11.1
  https://commons.apache.org/proper/commons-net/changes-report.html#a3.11.1
* upgradetool: Upgrade commons-cli from 1.5.0 to 1.9.0

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-03-23 17:05:58 +01:00
Holger Friedrich f972e95c6b
Upgrade glassfish hk2 to 3.1.1, upgrade units (#4658)
* Upgrade glassfish hk2 from 2.4.0-b34 to 3.1.1
* Upgrade jakarta.inject-api from 2.0.0 to 2.0.1
  https://github.com/jakartaee/inject/releases/tag/2.0.1
* Upgrade jakarta.annotation-api from 2.0.0 to 2.1.1
* Upgrade si.uom:si-units and si-quantity from 2.1 to 2.2, including
  transition from jakarta.annotation-api 1.3.4 to 2.0.0
* Upgrade tech.units.indriya from 2.2 to 2.2.2
* Adapt test to inriya >2.2 (year, yr)
* Resolve bundles
* Upgrade glassfish hk2 osgi-resource-locator to 3.0.0
* Upgrade osgi-resource-locator from 1.0.3 to 3.0.0

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-03-23 17:03:31 +01:00
Holger Friedrich 328aa7e4a5
Document use of older nrjavaserial in compile bom (#4665)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-03-23 13:15:21 +01:00
jimtng 184be289ca
Add `Airflow`, `Application`, `Channel`, and `Mode` Semantic Properties (#4616)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-03-23 09:07:18 +01:00
jimtng 0cf3e2963a
Provide Karaf Session object inside OSGiConsole (#4635)
The Karaf `Session` enables ConsoleCommandExtensions to prompt for user input.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-03-23 00:26:59 +01:00
Holger Friedrich baf79c5f27
Fix Xtend warnings (#4638)
* Handle deprecation of JvmTypesBuilder::newTypeRef

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-03-18 21:53:30 +01:00
Mark Herwege c90b45c68b
fix restoring nested group items (#4651)
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2025-03-18 21:51:50 +01:00
Mark Herwege 25f3becef6
revert iterating over history on restore (#4654)
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2025-03-18 21:48:57 +01:00
Mark Herwege 195cc3d54d
revert iterating over history on restore (#4654)
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2025-03-18 21:48:19 +01:00
Andrew Fiddian-Green 2eec58a95f
OAuth RFC-8628 Device Code Grant Flow (#4632)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2025-03-17 00:40:07 +01:00
Holger Friedrich 8de8b4d4b4
Upgrade JUnit to 5.12.1 (#4642)
* Upgrade JUnit from 5.11.4 to 5.12.1
https://junit.org/junit5/docs/5.12.1/release-notes/#release-notes-5.12.1

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-03-16 22:40:06 +01:00
Holger Friedrich 767fcb329f
Replace GH Action from tj-actions by custom code (#4647)
The GitHub Actions build workflow includes external Actions from
3rd party repositories.
The functionality of tj-actions/verify-changed-files was used to
detect modifications of files during the build process.
The external action is removed and replaced by custom code.
This is less flexible, but does not require an external action in the
build toolchain.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-03-16 22:01:43 +01:00
jimtng 41720b4f0c
Fix a minor typo in ProfileCallbackImpl.java (#4644)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-03-14 17:39:39 +01:00
Holger Friedrich 9644d4b411
Upgrade XChart to 3.8.8 (#4628)
Upgrade XChart from 3.1.0 to 3.8.8
See changelog:
https://knowm.org/open-source/xchart/xchart-change-log/

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-03-09 17:30:33 +01:00
Holger Friedrich 2e36985ffd
Fix JavaDoc build (#4637)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-03-09 16:31:18 +01:00
lolodomo 8efa024632
File format generator: do not change order of thing channels (#4636)
Keep original order of channels

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2025-03-09 15:12:29 +01:00
lolodomo 3af47e9c30
[DSL generator] Handle config parameter value of type Double (#4629)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2025-03-09 10:51:09 +01:00
lolodomo 67303fa5f3
[REST] New REST APIs to generate DSL syntax for items and things (#4569)
* [REST] New REST APIs to generate DSL syntax for items and things

Related to #4509

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2025-03-02 11:11:01 +01:00
jimtng e16b52d601
Upgrade Groovy to 3.0.23 (#4621)
* Upgrade Groovy to 3.0.23
* Update header generation to match the new format

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-02-26 18:54:32 +01:00
Wouter Born 343470d98a
Upgrade Jollyday to 1.5.0 (#4620)
Upgrades Jollyday from 1.4.0 to 1.5.0.

For release notes, see:

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

Signed-off-by: Wouter Born <github@maindrain.net>
2025-02-24 20:25:29 +01:00
Wouter Born 6bf59605bd
Use Spotless sortpom plug-in (#4618)
This simplifies the sortpom configuration and also allows for checking and reformatting them using the spotless:check and spotless:apply Maven goals.

Signed-off-by: Wouter Born <github@maindrain.net>
2025-02-23 19:04:47 +01:00
Mark Herwege fd53c4cb1d
Persistence aliases (#4363)
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2025-02-18 18:30:49 +01:00
jimtng 3458e9fba3
Add a quicker build instruction in README (#4609)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-02-18 18:27:11 +01:00