Commit Graph
2752 Commits
Author SHA1 Message Date
Holger FriedrichandGitHub 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 HerwegeandGitHub 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 FriedrichandGitHub 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
lolodomoandGitHub 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 HotzeandGitHub 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 HotzeandGitHub 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 HotzeandGitHub 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
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 HotzeandGitHub 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-GreenandGitHub 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
lolodomoandGitHub 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 HotzeandWouter Born 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-GreenandGitHub 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
lolodomoandGitHub 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 HotzeandGitHub 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 HotzeandGitHub 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 HotzeandGitHub 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 HotzeandGitHub 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 HotzeandGitHub 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 HotzeandGitHub 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 FriedrichandWouter Born fa73d3cb49 Fix JavaDoc
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-10-25 08:03:46 +02:00
Wouter BornandGitHub 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 BornandGitHub 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
MartinandGitHub 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
lolodomoandGitHub 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. KlugandWouter Born 6d0a3b330c Improve marketplace remote handling
Signed-off-by: Jan N. Klug <github@klug.nrw>
2024-10-16 20:52:25 +02:00
joerg1985andGitHub 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 HotzeandGitHub 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-botandGitHub 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 CutrerandGitHub ea5480d12b Add ColorUtil.xyToDuv (#4401)
Signed-off-by: Cody Cutrer <cody@cutrer.us>
2024-10-08 00:02:25 +02:00
lsiepelandGitHub 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 HotzeandGitHub 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
Wouter BornandGitHub 9eef587c89 Upgrade Jollyday to 0.32.0 (#4403)
Upgrades Jollyday from 0.30.0 to 0.32.0.

For release notes, see:

https://github.com/focus-shift/jollyday/releases/tag/v0.31.0
https://github.com/focus-shift/jollyday/releases/tag/v0.32.0

Signed-off-by: Wouter Born <github@maindrain.net>
2024-10-05 17:19:46 +02:00
Holger FriedrichandWouter Born 22eec8c593 Upgrade Xtext/Xtend to 2.36.0
* Upgrade Xtext/Xtend from 2.35.0 to 2.36.0, see release notes:
  https://eclipse.dev/Xtext/releasenotes.html#/releasenotes/2024/08/25/version-2-36-0
  https://eclipse.dev/Xtext/xtend/releasenotes.html#/releasenotes/2024/08/25/version-2-36-0
* Upgrade dependencies
  * Guava from 33.2.0 to 33.3.0
  * Classgraph from 4.8.172 to 4.8.174

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-10-05 10:46:40 +02:00
Holger FriedrichandWouter Born 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 FriedrichandGitHub 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
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
c7955e9577 Bump org.apache.maven.plugins:maven-archetype-plugin (#4390)
Bumps [org.apache.maven.plugins:maven-archetype-plugin](https://github.com/apache/maven-archetype) from 3.2.1 to 3.3.0.
- [Release notes](https://github.com/apache/maven-archetype/releases)
- [Commits](https://github.com/apache/maven-archetype/compare/maven-archetype-3.2.1...maven-archetype-3.3.0)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-archetype-plugin
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-02 06:50:03 +02:00
jimtngandGitHub 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 HotzeandGitHub 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
lolodomoandGitHub 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
Mark HerwegeandGitHub 47284e5521 [sitemap] Buttongrid with Button components available for main UI configuration (#4377)
* buttongrid with buttons for UI defined sitemap

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-09-28 21:34:07 +02:00
F. VollmannandGitHub a5c488d8c8 Add XOR ArithmeticGroupFunction (#4386)
* #4385 add XOR ArithmeticGroupFunction (1 of n)

Signed-off-by: Fabian Vollmann <surmise-metro.0c@icloud.com>
2024-09-26 08:28:08 +02:00
Florian HotzeandGitHub 437a885d82 [thing] Add toString overrides to ThingImpl & BridgeImpl (#4382)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-19 18:53:26 +02:00
Andrew Fiddian-GreenandGitHub 5f14cd1c5f [ColorUtil] New methods kelvinToXY and xyToKelvin (#4367)
Signed-off-by: AndrewFG <software@whitebear.ch>
2024-09-17 01:01:51 +02:00
jimtngandGitHub 3c7b4b89b1 Add offset and timeOnly config in TimerEvent payload (#4378)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-09-15 21:20:29 +02:00
openhab-botandGitHub 92f5baea10 New Crowdin updates (#4379)
* New translations defaultsystemchannels.properties (Italian)
* New translations i18n.properties (Italian)
2024-09-15 21:14:45 +02:00
Florian HotzeandGitHub e027bb5cb1 [rest] Add caching for transformation resource (#4376)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-13 08:54:50 +02:00
jimtngandGitHub bcda209ec9 RulesDSL: add DateTimeTrigger offset (#4272)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-09-10 21:20:57 +02:00
jimtngandGitHub 83b069d970 Revert "Insert context keys before compiling UI scripts (#4372)" (#4373)
This reverts commit 6e6f000800.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-09-10 07:52:16 +02:00
J-N-KandGitHub 53889cdcdb Add a PersistenceService bundle tracker (#4324)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2024-09-09 20:06:15 +02:00