Skip to content

Conversation

@dilyanpalauzov
Copy link
Contributor

This clarifies when SimpleRule.execute(Action module, Map<String, ?> inputs) is called, how the content of inputs is built, in general and concrete for TriggerBuilder.withTypeUID("timer.DateTimeTrigger" or "core.ItemStateChangeTrigger").build() triggers.

As noted at dalgwen/openhab-addons#17 (comment) there is per Automation Add-On documentation, how the inputs from fired triggers are presented, but there is no documentation on the OH-JSR223 page, valid for all JSR 223 add-on.

@netlify
Copy link

netlify bot commented Oct 6, 2025

Thanks for your pull request to the openHAB documentation! The result can be previewed at the URL below (this comment and the preview will be updated if you add more commits).

Built without sensitive environment variables

Name Link
🔨 Latest commit 18092b6
🔍 Latest deploy log https://app.netlify.com/projects/openhab-docs-preview/deploys/68f7cbfbd4e6b30008649844
😎 Deploy Preview https://deploy-preview-2582--openhab-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@dilyanpalauzov dilyanpalauzov force-pushed the jsr233_execute_inputs branch 8 times, most recently from 1911923 to 347b3fa Compare October 10, 2025 11:41
@dilyanpalauzov dilyanpalauzov changed the title jsr233: Describe parameter of SimpleRule.execute(Map inputs) based on trigger jsr223: Describe parameter of SimpleRule.execute(Map inputs) based on trigger Oct 10, 2025
@dilyanpalauzov dilyanpalauzov force-pushed the jsr233_execute_inputs branch 7 times, most recently from fa7dfdb to 640d804 Compare October 14, 2025 13:20
@stefan-hoehn
Copy link
Contributor

Please ask these questions first in the forum before creating a PR.

@dilyanpalauzov
Copy link
Contributor Author

Why does http://127.0.0.1:8080/rest/module-types/timer.DateTimeTrigger under outputs not contain event, but http://127.0.0.1:8080/rest/module-types/core.ItemStateChangeTrigger under outputs contains event?

Also https://127.0.0.1:8080/rest/module-types/core.ItemStateChangeTrigger contains under outputs : lastStateUpdate and lastStateChange, but https://demo.openhab.org/rest/module-types/core.ItemStateChangeTrigger misses these fields.

The above questions are irrelevant for the current change.

@stefan-hoehn
Copy link
Contributor

If the questions are irrelevant for the change, then please remove them from the description.

@dilyanpalauzov
Copy link
Contributor Author

I have deleted a comment, but I do not see big value in deleting such comments.

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.

2 participants