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
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
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
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
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
joerg1985
af35487155
Extend HistoricItem to work with Instant instead of ZonedDateTime ( #4384 )
...
Signed-off-by: Jörg Sautter <joerg.sautter@gmx.net>
2024-10-16 12:29:55 +02:00
Florian Hotze
389f6a3434
[rest] Persistence: Optionally add current Item state to response ( #4394 )
...
* [rest] Persistence endpoint: Optionally add current Item state to response
This new optional parameter gives the UI additional possibilities for charts.
E.g. it is now possible to display a bar chart with monthly energy consumption, where the consumption is only persisted at the end of the month, that includes the data from this month.
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-10-09 19:32:31 +02:00
openhab-bot
963a8d1a5f
New Crowdin updates ( #4408 )
...
* New translations tags.properties (Hungarian)
* New translations addons.properties (Spanish)
* New translations units.properties (Spanish)
* New translations validation.properties (Norwegian)
* New translations addons.properties (Norwegian)
* New translations voice.properties (Norwegian)
* New translations systemprofiles.properties (Norwegian)
* New translations chart.properties (Norwegian)
* New translations defaultsystemchannels.properties (Norwegian)
* New translations i18n.properties (Finnish)
* New translations i18n.properties (Norwegian)
* New translations automation.properties (Hebrew)
* New translations languagesupport.properties (Portuguese)
* New translations languagesupport.properties (Portuguese, Brazilian)
2024-10-08 01:28:25 +02:00
Cody Cutrer
ea5480d12b
Add ColorUtil.xyToDuv ( #4401 )
...
Signed-off-by: Cody Cutrer <cody@cutrer.us>
2024-10-08 00:02:25 +02:00
lsiepel
d9e5df0cd9
Extend NetUtils for network range scanning ( #4375 )
...
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
2024-10-07 23:54:51 +02:00
Florian Hotze
d012d36bba
[automation] Add support for synchronized execution of compiled scripts ( #4402 )
...
* [automation] Synchronize execution of compiled scripts if ScriptEngine implements Lock interface
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-10-06 19:20:30 +02:00
Holger Friedrich
49199a4d86
Disable XbaseGenerated annotation where necessary
...
Workaround for issue in xtext code generator in xtext 2.36, see
eclipse/xtext#3182 .
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-10-05 10:46:40 +02:00
Holger Friedrich
c25d67a65b
[persistence] Allow negative filter boundaries ( #4400 )
...
Modify xtext file for textual configuration of persistence.
Fixes #4396 .
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-10-05 09:49:59 +02:00
jimtng
3a79871072
Ensure timeseries entries have unique timestamps ( #4397 )
...
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-10-02 00:07:55 +02:00
Florian Hotze
c454ee2241
Fix input parameter not enabled if label/description provided for discovery services ( #4393 )
...
Fixes an issue from #4389 .
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-30 17:51:35 +02:00
lolodomo
b8b3ec9df0
Add a new optional input parameter to discovery services ( #4389 )
...
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2024-09-29 14:08:29 +02:00