Holger Friedrich
1f9ba2b0ee
Remove workaround for Xtend/Java21 ( #4519 )
...
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-12-24 09:47:56 +01:00
Wouter Born
db72021460
Update Eclipse files ( #4514 )
...
Signed-off-by: Wouter Born <github@maindrain.net>
2024-12-24 07:02:47 +01:00
Jacob Laursen
12f2314a2d
Link to Java 21 documentation ( #4510 )
...
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-21 14:01:51 +01:00
Wouter Born
e078a5cd98
Fix JavaDoc build ( #4504 )
...
Signed-off-by: Wouter Born <github@maindrain.net>
2024-12-17 23:00:09 +01:00
Mark Herwege
cdc0e0f32e
[persistence] Fix UI persistence item exclude config ( #4502 )
...
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-12-17 19:53:24 +01:00
Gaël L'hopital
7492d1cd14
Warning chase in org.openhab.core.audio ( #4497 )
...
Signed-off-by: Gaël L'hopital <gael@lhopital.org>
2024-12-17 19:41:02 +01:00
Wouter Born
9f0b8d48fe
Revert LinkedTransferQueue high CPU usage workaround ( #4499 )
...
Reverts the workaround #3756 that was introduced for JDK-8301341 because it is fixed in OpenJDK 21
Signed-off-by: Wouter Born <github@maindrain.net>
2024-12-17 00:46:30 +01:00
Gaël L'hopital
576a63c0be
Warning hunt in org.openhab.core.addon.xxx ( #4489 )
...
Signed-off-by: Gaël L'hopital <gael@lhopital.org>
2024-12-16 19:04:55 +01:00
Holger Friedrich
c2d8392668
Remove Java 17 build, switch to 21 ( #4483 )
...
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-12-15 20:36:45 +01:00
Holger Friedrich
8d837f9823
Prepare for OH 5.0.0 ( #4496 )
...
* Prepare for OH 5.0.0
* Switch to 5.0.0-SNAPSHOT
* Fix spotless after unleash
* resolve itest runbundles
* Fix linux-specific pom
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-12-15 18:49:23 +01:00
openhab-bot
0f2e56f39d
[unleash-maven-plugin] Preparation for next development cycle.
2024-12-15 11:41:19 +00:00
lolodomo
a05aca6c79
Thing action REST API: allow extended scope like bindingid-xxx ( #4495 )
...
It is required for actions from the max binding.
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-12-15 11:39:57 +01:00
Gaël L'hopital
241e55f157
Add some requested new units : J/m², gr/ft³,gr ( #4467 )
...
Signed-off-by: Gaël L'hopital <gael@lhopital.org>
2024-12-10 21:00:11 +01:00
openhab-bot
31e28380e1
New Crowdin updates ( #4485 )
...
* New translations systemprofiles.properties (Catalan)
* New translations systemprofiles.properties (Czech)
* New translations systemprofiles.properties (French)
* New translations systemprofiles.properties (Danish)
* New translations systemprofiles.properties (Finnish)
* New translations systemprofiles.properties (Hebrew)
* New translations systemprofiles.properties (Hungarian)
* New translations systemprofiles.properties (Italian)
* New translations systemprofiles.properties (Dutch)
* New translations systemprofiles.properties (Norwegian)
* New translations systemprofiles.properties (Polish)
2024-12-09 20:36:18 +01:00
Mark Herwege
8e4cebdec2
[persistence] Add persistence exclusion tests ( #4482 )
...
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-12-08 18:02:54 +01:00
Jacob Laursen
b31ff66bba
[core] Switch DateTimeType
to Instant
internally for consistent time-zone handling ( #3583 )
...
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-08 16:06:29 +01:00
Mark Herwege
a35041ac7b
[persistence] Exclude items and groups ( #4468 )
...
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-12-08 12:50:37 +01:00
openhab-bot
0c93cc0456
New Crowdin updates ( #4480 )
...
* New translations addons.properties (Catalan)
* New translations addons.properties (Czech)
* New translations audio.properties (Catalan)
* New translations automation.properties (Catalan)
* New translations automation.properties (Czech)
* New translations chart.properties (Catalan)
* New translations chart.properties (Czech)
* New translations defaultsystemchannels.properties (Catalan)
* New translations defaultsystemchannels.properties (Czech)
* New translations ephemeris.properties (Catalan)
* New translations firmware.properties (Catalan)
* New translations hli.properties (Catalan)
* New translations i18n.properties (Catalan)
* New translations inbox.properties (Catalan)
* New translations jsonstorage.properties (Catalan)
* New translations jsr223.properties (Catalan)
* New translations jsr223.properties (Czech)
* New translations languagesupport.properties (Catalan)
* New translations languagesupport.properties (Portuguese)
* New translations languagesupport.properties (Portuguese, Brazilian)
* New translations lsp.properties (Catalan)
* New translations magic.properties (Catalan)
* New translations marketplace.properties (Catalan)
* New translations messages.properties (Catalan)
* New translations network.properties (Catalan)
* New translations persistence.properties (Catalan)
* New translations restauth.properties (Catalan)
* New translations scriptprofile.properties (Catalan)
* New translations scriptprofile.properties (Czech)
* New translations sitemap.properties (Catalan)
* New translations systemprofiles.properties (Catalan)
* New translations systemprofiles.properties (Czech)
* New translations systemthingstatusinfos.properties (Catalan)
* New translations tags.properties (Catalan)
* New translations units.properties (Catalan)
* New translations units.properties (Czech)
* New translations validation.properties (Catalan)
* New translations validation.properties (Czech)
* New translations voice.properties (Catalan)
* New translations voice.properties (Czech)
2024-12-08 11:45:41 +01:00
Andrew Fiddian-Green
57cf6a5d43
IP addon finder: add support for sending local mac address ( #4477 )
...
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2024-12-08 02:26:13 +01:00
openhab-bot
76daeeff12
New Crowdin updates ( #4479 )
...
* New translations addons.properties (Italian)
* New translations i18n.properties (Italian)
2024-12-08 01:33:30 +01:00
Gaël L'hopital
ed2d1962f5
A session of compile warning hunt ( #4472 )
...
Signed-off-by: Gaël L'hopital <gael@lhopital.org>
2024-12-07 23:13:45 +01:00
Wouter Born
297d54ed52
Upgrade Jollyday to 0.35.1 ( #4471 )
...
Upgrades Jollyday from 0.32.0 to 0.35.1.
For release notes, see:
* https://github.com/focus-shift/jollyday/releases/tag/v0.33.0
* https://github.com/focus-shift/jollyday/releases/tag/v0.34.0
* https://github.com/focus-shift/jollyday/releases/tag/v0.35.0
* https://github.com/focus-shift/jollyday/releases/tag/v0.35.1
Signed-off-by: Wouter Born <github@maindrain.net>
2024-12-03 21:30:59 +01:00
Florian Hotze
7005c7f15e
ConfigDescriptionParameter & Input: Add null annotations & improve JavaDoc ( #4465 )
...
* Add null annotations to org.openhab.core.automation.type.Input
* Add null annotations to org.openhab.core.config.core.ConfigDescriptionParameter
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-12-01 12:28:25 +01:00
Wouter Born
fa29f52a99
Update bnd to 7.1.0 ( #4464 )
...
For release notes, see:
https://github.com/bndtools/bnd/wiki/Changes-in-7.1.0
Signed-off-by: Wouter Born <github@maindrain.net>
2024-11-30 21:31:35 +01:00
Holger Friedrich
660102e3f9
Upgrade XStream to 1.4.21 ( #4457 )
...
* Upgrade XStream from 1.4.20 to 1.4.21, fixes CVE-2024-47072.
See changelog at https://x-stream.github.io/changes.html#1.4.21
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-11-18 23:34:06 +01:00
Mark Herwege
d7495d26fe
Fix color and icon rules ( #4449 )
...
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-11-18 19:19:55 +01:00
Holger Friedrich
aededaecc2
[DSL] Expose ColorUtil methods to DSL rules ( #4410 )
...
* [DSL] Expose ColorUtil methods to DSL rules
* Expose xyToKelvin and kelvinToXY
* Add missing throws declaration
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-11-17 10:33:19 +01:00
lolodomo
be003029b0
Add unit hint to color-temperature-abs system channel type ( #4451 )
...
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-11-17 08:58:59 +01:00
Florian Hotze
31d3434893
[rest] Fix ThingActionsResource does not accept new Thing action UIDs with hash ( #4445 )
...
* [rest] Fix ThingActionsResource does not accept new Thing action UIDs due to wrong path RegEx
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-11 09:13:25 +01:00
Florian Hotze
0d031a3b78
[automation] Ensure unique module IDs for overloaded @RuleAction
methods ( #4441 )
...
* [automation] Handle overloaded `@RuleAction`s - Append signature hash to avoid duplicate module ids.
* [automation] ThingActionsResource: Provide action visibility
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-10 14:11:24 +01:00
Florian Hotze
3bc9ae3e14
[automation] ActionInputsHelper: Enhance ZonedDateTime & Instant input support ( #4440 )
...
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-08 17:59:55 +01:00
Florian Hotze
4eec4a3e45
ScriptProfile: Recover from closed context for JS Scripting ( #4437 )
...
Co-authored-by: J-N-K <github@klug.nrw>
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-06 21:20:34 +01:00
Florian Hotze
a31e8376a4
[automation] ActionInputsHelper: Set step size to 1 for datetime & time to enable seconds ( #4436 )
...
Refs https://github.com/openhab/openhab-webui/pull/2848 .
Discussion in https://github.com/openhab/openhab-webui/issues/2847#issuecomment-2446426478 .
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-06 09:17:29 +01:00
Andrew Fiddian-Green
591d8d956a
[Units] Add MK⁻¹ unit alias ( #4433 )
...
* Add unit alias for Micro Reciprocal Kelvin
Signed-off-by: AndrewFG <software@whitebear.ch>
2024-11-04 11:01:20 +01:00
lolodomo
bc6731157c
Add support for more types as output of thing actions ( #4435 )
...
Byte
Short
Long
BigDecimal
QuantityType
LocalDate
LocalTime
LocalDateTime
ZonedDateTime
Instant
Duration
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-11-04 10:40:31 +01:00
Florian Hotze
9646607e47
[rest] VoiceResource: Return answer from /interpreters endpoint & Add annotations for answer
...
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-02 11:09:58 +01:00
Andrew Fiddian-Green
728c7376b6
[ColorUtil] kelvinToXY: Extend Colour Temperature range 1000 K .. 10000 K ( #4429 )
...
Signed-off-by: AndrewFG <software@whitebear.ch>
2024-10-29 06:23:07 +01:00
lolodomo
7d98903acb
[sitemap] Add new element Colortemperaturepicker ( #4420 )
...
Related to #3891
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-10-29 06:07:24 +01:00
Florian Hotze
7f5fbbb22f
Thing actions: Process @ActionOutput
for actions with single return value & Enforce proper annotations ( #4430 )
...
See discussion in https://github.com/openhab/openhab-addons/issues/17504#issuecomment-2439906483 .
This adds processing of the ActionOutput annotation for Thing actions with a single return value, which allows providing a label for use in the UI.
The output name for those actions is "result", which is now the default value in the @ActionOutput annotation. If a binding overrides the default name, a warning is logged.
If a Thing action returns a Map<String, Object> but does not provide the @ActionOutputs annotation, a warning is logged.
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-27 19:53:19 +01:00
Florian Hotze
922a2068c0
[automation] Synchronize script action/condition execution if engine implements Lock ( #4426 )
...
This moves the locking mechanism added in #4402 to the inheritors of AbstractScriptModuleHandler
to synchronize execution context access as well.
This fixes the problem thathttps://github.com/openhab/openhab-addons/pull/17510 worked around by using Thread.sleep.
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-26 23:26:20 +02:00
Florian Hotze
52b26baf17
ActionInputsHelper: Allow any number of decimals & Apply primitive input default values ( #4424 )
...
* ActionInputHelper: Set step site to 0 if param type decimal
This makes the UI allow any step size, i.e. entering any number of decimals.
Signed-off-by: Florian Hotze <dev@florianhotze.com>
* ActionInputHelper: Apply default values when mapping from serialised to action inputs
This has been forgotten to be implemented.
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-26 21:49:18 +02:00
Florian Hotze
4125f3d87b
ConfigDescriptionParameter: Document step size value 0 to allow any step size ( #4425 )
...
Refs https://github.com/openhab/openhab-webui/pull/2832 .
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-26 20:36:03 +02:00
Florian Hotze
ae1f763b62
ConfigDescriptionParameter: Change default format for datetime & Update context docs ( #4428 )
...
* ConfigDescriptionParameter: Change default format for datetime & Update context docs
This changes the default format for the datetime context to the ISO standard.
This context is not used by add-ons and supported by the UI, so it should be possible to change it (again after #4392.)
Also update the context docs from https://next.openhab.org/docs/developer/addons/config-xml.html#supported-contexts and the UI code.
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-26 20:31:08 +02:00
Florian Hotze
63788b061b
ActionOutput: Document QR code rendering & Fix action REST doc ( #4421 )
...
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-26 09:12:11 +02:00
Holger Friedrich
fa73d3cb49
Fix JavaDoc
...
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-10-25 08:03:46 +02:00
Wouter Born
1f8155c330
GitHub Actions upgrades and improvements ( #4422 )
...
* Use Maven 3.9.9
* Use Ubuntu 24.04
* Verify there are no changed files
Signed-off-by: Wouter Born <github@maindrain.net>
2024-10-24 20:01:28 +02:00
Wouter Born
a22349abf4
Upgrade lastnpe EEA to 2.4.0 ( #4416 )
...
For release notes, see:
https://github.com/lastnpe/eclipse-null-eea-augments/releases/tag/v2.4.0
Signed-off-by: Wouter Born <github@maindrain.net>
2024-10-20 16:03:03 +02:00
Martin
1325d80343
Parse BigInteger directly in DecimalType ( #4417 )
...
* Parse BigInteger directly in DecimalType
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
2024-10-20 16:01:59 +02:00
lolodomo
d431013198
Enhance ThingActions UI support ( #4392 )
...
* Enhance ThingActions UI support
Fixes #1745
Return config description parameters for the ActionInputs of ThingActions for the REST GET /action/{thingUID} and REST GET /module-types endpoints.
The config description parameters are only provided if all input parameters have a type that can be mapped to a config description parameter (String, boolean, Boolean, byte, Byte, short, Short, int, Integer, long, Long, float, Float, double, Double, Number, DecimalType, QuantityType<?>, LocalDateTime, LocalDate, LocalTime, ZonedDateTime, Date, Instant and Duration).
Enhance the REST POST /actions/{thingUID}/{actionUid} endpoint (allows invoking Thing actions via REST) and the AnnotationActionHandler (allows invoking Thing actions from UI-rules) in order to be more flexible regarding the type of each provided argument value and to map the value to the expected data type. Number and string values will be accepted as inputs and the expected data type will be created from this value.
This will be used by the UI's Thing page and rule editor to allow invoking Thing actions through the UI or adding them to UI-bases rules.
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-10-20 12:39:30 +02:00
Jan N. Klug
6d0a3b330c
Improve marketplace remote handling
...
Signed-off-by: Jan N. Klug <github@klug.nrw>
2024-10-16 20:52:25 +02:00