Commit Graph

2975 Commits (main)

Author SHA1 Message Date
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
Holger Friedrich 4f64c8d37b
Revert ConfigUtil::normalizeType and fix null annotations (#4608)
Partly reverts 8e597bde76.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-02-18 18:24:48 +01:00
Holger Friedrich 91940ef34d
Upgrade hivemq-mqtt-client to 1.3.5, Netty to 4.1.118.Final (#4604)
Upgrade hivemq-mqtt-client from 1.3.3 to 1.3.5
Changelog:
https://github.com/hivemq/hivemq-mqtt-client/releases/tag/v1.3.4
https://github.com/hivemq/hivemq-mqtt-client/releases/tag/v1.3.5

Upgrade netty from 4.1.104 to 4.1.118
Changelog:
https://netty.io/news/

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-02-18 09:57:11 +01:00
Florian Hotze e41db78804
JsonAddonService: Fix warning on startup (#4602)
When starting openHAB, I always get the following warning:

```
14:44:47.082 [WARN ] [tplace.internal.json.JsonAddonService] - JSON Addon Service invalid URL:
```

We should avoid this warning, I don't see a problem there, and we should not confuse users with unnecessary warnings.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-02-16 15:52:39 +01:00
Holger Friedrich b90e87367d
Fix JavaDoc, SAT and depreacation warnings (#4598)
* Fix SAT and depreacation warnings
* Fix JavaDoc build

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-02-16 11:37:22 +01:00
joerg1985 a94908c305
Add logging to the StartLevelService (#4577)
Signed-off-by: Jörg Sautter <joerg.sautter@gmx.net>
2025-02-15 22:15:19 +01:00
Mark Herwege d5590ff87c
Persistence restore lastState and lastStateChange on startup (#4463)
* use item methods if last state update/change not in persistence
* restore previous state and last state change date on startup

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2025-02-15 20:49:49 +01:00
Andrew Fiddian-Green a1ff21cf1a
GroupFunction calculations remove duplicate method (#4597)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2025-02-15 20:12:55 +01:00
jimtng 3b3fd3aa53
Add `getLastStateChange`, `getLastStateUpdate`, and `getLastState` to GenericItem (#4351)
* Add `getLastChange`, `getLastUpdate`, and `getPreviousState` to GenericItem
* Rename to getLastStateChange, getLastStateUpdate, getLastState

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-02-15 19:21:43 +01:00
Andrew Fiddian-Green 2d29ff5545
Fix QuantityType.toInvertibleUnit() to use system unit (#4561)
* QuantityType toInvertibleUnit fix
* Improve unit tests
* Extend JavaDoc and tests

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2025-02-15 18:08:05 +01:00
Andrew Fiddian-Green 5b28e6feb6
Fix group calculations to use GroupItem's system unit (#4563)
* QuantityType improve group calculations
* support inverse units, extend tests
* refactoring
* javadoc and code simplification
* use streams; make sums absolute

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2025-02-15 17:52:44 +01:00