Commit Graph
2143 Commits
Author SHA1 Message Date
Mark HerwegeandGitHub 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 HerwegeandGitHub 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-GreenandGitHub 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
jimtngandGitHub 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 FriedrichandGitHub 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 FriedrichandGitHub 2e36985ffd Fix JavaDoc build (#4637)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-03-09 16:31:18 +01:00
lolodomoandGitHub 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
lolodomoandGitHub 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
lolodomoandGitHub 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
jimtngandGitHub 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 BornandGitHub 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 HerwegeandGitHub fd53c4cb1d Persistence aliases (#4363)
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2025-02-18 18:30:49 +01:00
Holger FriedrichandGitHub 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
Florian HotzeandGitHub 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 FriedrichandGitHub 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
joerg1985andGitHub 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 HerwegeandGitHub 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-GreenandGitHub a1ff21cf1a GroupFunction calculations remove duplicate method (#4597)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2025-02-15 20:12:55 +01:00
jimtngandGitHub 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-GreenandGitHub 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-GreenandGitHub 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
jimtngandGitHub 3a30c7a44a Call unregisterCommand instead of registerCommand (#4596)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-02-15 17:29:44 +01:00
Arne SeimeandGitHub fe9af132aa Rule Template installation fixes (#4591)
* Fix file based rule templates
* Add YAML Template parser
* Refactor marketplace rule template parsing
* Prevent file system access for WatchService DELETE events

Trying to check if deleted files are hidden, are readable or are directories will result in IOExceptions on many file systems, so that no action will be taken for deletions.

Signed-off-by: Arne Seime <arne.seime@gmail.com>
2025-02-15 17:28:46 +01:00
Mark HerwegeandGitHub 3018a8b0f1 Persistence extensions, calculate QuantityType sums in absolute values (#4575)
* make persistence sum calculations absolute
* correct units for variance and deviation quantity type calculations

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2025-02-15 17:15:39 +01:00
jimtngandGitHub 7177759791 Add IntervalConditionHandler (#4583)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-02-15 16:53:22 +01:00
Mark HerwegeandGitHub 38a13807ee Fix comparing QuantityType with inverted dimensions (#4571)
* fix comparing inverted dimensions
* remove tolerance
* use BigDecimal in comparison
* remove comparing inverted dimensions
* equals, add tests

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2025-02-15 16:49:37 +01:00
Gaël L'hopitalandGitHub b5f862c543 Enabling the usage of records for configuration files. (#4508)
Signed-off-by: gael@lhopital.org <gael@lhopital.org>
2025-02-15 16:45:16 +01:00
Gaël L'hopitalandGitHub 8e597bde76 Adding null annotations to config.core.internal.normalization (#4505)
* Adding null annotations to config.core.internal.normalization

Signed-off-by: gael@lhopital.org <gael@lhopital.org>
2025-02-15 16:36:26 +01:00
Andrew Fiddian-GreenandGitHub f66720a30e add toString method (#4592)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2025-02-15 16:33:09 +01:00
jimtngandGitHub aa6d82e786 Revert "Fix addon name localisation before installation (#3908)" (#4573)
* Revert "Fix addon name localisation before installation (#3908)"

This reverts commit 708a954081
but with some modifications

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-02-15 16:32:17 +01:00
Chris JacksonandGitHub 07616d150f Update logger to provide history and improve performance (#4570)
Signed-off-by: Chris Jackson <chris@cd-jackson.com>
2025-02-15 16:27:43 +01:00
Holger FriedrichandGitHub 52e1185e41 Fix Xtend warnings (#4578)
* Fix Xtend warnings

* Remove unused imports and unnecessary private modifiers
* Use === when comparing to null
* Replace deprecated initializeLater

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-02-15 16:24:48 +01:00
Holger FriedrichandGitHub ab870d73df Reduce SAT warnings (#4567)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-02-15 16:23:24 +01:00
Florian HotzeandGitHub 4ec2b3c457 Add topic filter for event WebSocket (#4550)
* Add topic filter for event WebSocket

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-02-15 16:20:41 +01:00
Gaël L'hopitalandGitHub 94bd3fcf7c Some non null annotations (#4486)
Signed-off-by: Gaël L'hopital <gael@lhopital.org>
2025-02-09 14:55:45 +01:00
NadaharandGitHub d3cfba562b Fix managed transformations retrieval (#4574) 2025-02-05 15:15:03 +01:00
Andrew Fiddian-GreenandGitHub fb5ecab356 IP addon finder mac address format tweak (#4481)
* mac address format tweaks

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2025-01-27 22:48:10 +01:00
Holger FriedrichandWouter Born 4da70a2ed8 Upgrade Karaf from 4.4.6 to 4.4.7
* Sync runtime dependencies with Karaf 4.4.7, most notably:
   * PaxWeb 8.0.30
   * Jetty 9.4.57.v20241219
   * BouncyCastle 1.78.1
   * CXF 3.6.4
   * Jackson 2.18.2
   * JNA 5.16.0
   * JAXB 2.3.9
   * commons-io 2.17.0
   * commons-lang3 3.17.0
   * XBean 4.26
   * ASM 9.7.1
   * PaxLogging 2.2.8
 * Resolve itest runbundles

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-01-26 15:15:29 +01:00
Holger FriedrichandGitHub 7548f26db6 Remove RegistryHook (#4568)
Remove RegistryHook which is not longer used. Remove related methods
from ItemRegistry and ItemUiRegistry.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-01-26 14:55:08 +01:00
VitaandGitHub 6922d60fd9 Extends updateThing method warning message. (#4558)
Fixes #4557

Signed-off-by: Vita Tucek <vita.tucek@seznam.cz>
2025-01-19 12:19:09 +01:00
Gaël L'hopitalandGitHub 15eb5cccd3 Clear warnings in org.openhab.core.id (#4498)
Signed-off-by: Gaël L'hopital <gael@lhopital.org>
2025-01-14 21:52:34 +01:00
Chris JacksonandGitHub 1b203d1b79 Avoid stack overflow - don't log a message within the log handler (#4556)
* Avoid stack overflow - don't log a message within the log handler

Signed-off-by: Chris Jackson <chris@cd-jackson.com>

* Don't log error

Signed-off-by: Chris Jackson <chris@cd-jackson.com>

---------

Signed-off-by: Chris Jackson <chris@cd-jackson.com>
2025-01-14 09:07:25 +01:00
Mark HerwegeandGitHub 9ad83bada4 Remove calls to deprecated URL constructor (#4551)
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2025-01-12 22:18:10 +01:00
jimtngandGitHub 229d87263f Improve cron exception handling (#4553)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-01-11 09:14:54 +01:00
Dan CunninghamandGitHub f8d34d9882 Ensure sitemap subscriptions are updated on Group Items (#4552)
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
2025-01-11 08:41:05 +01:00
Mark HerwegeandGitHub 6dffaa6a8c HttpUtil: fix invalid URI (#4546)
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2025-01-11 00:47:47 +01:00
jimtngandGitHub a7b8c1a9b3 Prevent infinite loop in CronAdjuster with invalid date combinations (#4548)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-01-11 00:39:20 +01:00
Wouter BornandGitHub f00c7700cb Start license headers with /* instead of /** (#4544)
Prevents JavaDoc tooling issues because these tools check comments starting with `/**`.

Signed-off-by: Wouter Born <github@maindrain.net>
2025-01-07 21:48:56 +01:00
Holger FriedrichandGitHub 98552a4d88 Upgrade plugins (#4537)
* exec-maven-plugin to 3.5.0
https://github.com/mojohaus/exec-maven-plugin/releases
* maven-dependency-plugin to 3.8.1
* maven-plugin-plugin to 3.15.1

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-01-07 18:22:30 +01:00
Holger FriedrichandGitHub 40d079ae80 Java 21 language features (#4535)
* Java 21 language features

* use getFirst and getLast methods
* replace new Locale by Locale.of
* replace Paths.get by Path.of
* use ThreadLocalRandom.current().nextDouble()
* add @Serial annotations

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-01-06 23:22:43 +01:00