Skip to content

Conversation

@dilyanpalauzov
Copy link
Contributor

No description provided.

@netlify
Copy link

netlify bot commented Oct 5, 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 e35c43c
🔍 Latest deploy log https://app.netlify.com/projects/openhab-docs-preview/deploys/68f8ac3db6129700089fb7d1
😎 Deploy Preview https://deploy-preview-2576--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.

Copy link
Contributor

@rkoshak rkoshak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blockly depends on the JS Scripting add-on (since OH 4) so Rules DSL is the only default.

As you recall from the previous page, one of the four types of conditions are Script Conditions and one of the four types of actions are Script Actions.
Choosing either of those presents you with a choice of language to use.
By default there are only three choices: Blockly, ECMAScript, and Rules DSL.
By default there are only two choices: Blockly and Rules DSL.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blockly requires JS Scripting so really Rules DSL is the only default

See the docs for the chosen language for details on how to write rules in files for that language.

openHAB comes with three languages by default (Rules DSL, ECMAScript 5.1, and Blockly) and has a number of [automation add-ons](/addons/#automation) to add more.
openHAB comes with two languages by default (Rules DSL and Blockly) and has a number of [automation add-ons](/addons/#automation) to add more.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

openHAB comes with one language by default (Rules DSL) and has ...

@dilyanpalauzov
Copy link
Contributor Author

Blockly depends on the JS Scripting add-on (since OH 4) so Rules DSL is the only default.

I wanted to make minimally invasive changes.

As you recall from the previous page, one of the four types of conditions are Script Conditions and one of the four types of actions are Script Actions.
Choosing either of those presents you with a choice of language to use.
By default there are only three choices: Blockly, ECMAScript, and Rules DSL.
By default only Rules DSL is available.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is the case, you should also mention that for this tutorial to work, the reader has to install blockly as well and explain or link to a page how this can be achieved.

See the docs for the chosen language for details on how to write rules in files for that language.

openHAB comes with three languages by default (Rules DSL, ECMAScript 5.1, and Blockly) and has a number of [automation add-ons](/addons/#automation) to add more.
openHAB comes one language for automation (Rules DSL) and has a number of [automation add-ons](/addons/#automation) to add more.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-> openHAB comes with one language ... by default
(it in fact comes with more languages which may just not installed by default)

@dilyanpalauzov
Copy link
Contributor Author

As tutorials/getting_started/rules_introduction.md contains “For this tutorial we will be using Blockly, which requires installing the JavaScript Scripting add-on.”, I do not repeat the same information at tutorials/getting_started/rules_blockly.md .

There are in fact ten types of Conditions shown in MainUI, if one clicks on “Show all”. So I have removed the number of available conditions.

Likewise, there are nine type of actions (when mqtt is installed), so I have removed the number of available actions.

“Script Action” means selecting in the UI “Inline Script”. I have replaced once “Script Action” with “Inline Script”, leaving “Script Action” on other places.

@florian-h05 florian-h05 changed the title ECMAScript 5.1 is not available by default Correct that ECMAScript 5.1 is not available by default Oct 27, 2025
@florian-h05 florian-h05 added this to the 5.1 milestone Oct 27, 2025
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.

4 participants