Commit Graph
19 Commits
Author SHA1 Message Date
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
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
Florian HotzeandGitHub f8fdd66f78 [websocket] Change EventWebSocketAdapter adapter id to events (#4540)
This is aligns the event WS name with the SSE events endpoint.
This is a breaking change for clients that have explicitly used `/ws/event-subscriber` instead of the default `/ws`.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-01-06 19:57:55 +01:00
Florian HotzeandGitHub cb4d4b8c74 Item triggers: Suggest using conditions that for comparing Item state (#4530)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-12-31 17:30:56 +01:00
Florian HotzeandGitHub 25ca43d165 [websocket] Support token authentication through header (#4515)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-12-31 17:00:40 +01:00
Florian HotzeandGitHub 7a61dc4b5b Start spifly early (#4526)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-12-28 18:35:13 +01:00
Florian HotzeandGitHub 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
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
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
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