Skip to content

Conversation

florian-h05
Copy link
Contributor

Comparable to #3155.

JSR-223 automation add-ons often use the script actions from the org.openhab.core.model.script bundle. The downside is that the actions are tied to XText or at least use some hacks to provide static access to OSGi services.

This refactors the BusEvent actions, making them available as ScriptExtension via import-preset ScriptAction. The actions are wrapped for DSL rules, to stay backward compatible.

@florian-h05 florian-h05 requested a review from a team as a code owner October 7, 2025 23:15
Comparable to openhab#3155.

JSR-223 automation add-ons often use the script actions from the org.openhab.core.model.script bundle.
The downside is that the actions are tied to XText or at least use some hacks to provide static access to OSGi services.

This refactors the BusEvent actions, making them available as ScriptExtension via import-preset ScriptAction.
The actions are wrapped for DSL rules, to stay backward compatible.

Signed-off-by: Florian Hotze <[email protected]>
@florian-h05 florian-h05 marked this pull request as draft October 7, 2025 23:16
@florian-h05
Copy link
Contributor Author

@ccutrer I would like to get this merged before implementing support for sending event source through BusEvent actions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant