[SOLVED] Very first steps with blockly - how is a scipt triggered?

Review the Getting Started Tutorial at Getting Started - Introduction | openHAB. Unfortunately it’s not complete and I’m working as fast as I can to get it completed and posted. The continuation of the tutorial is at Building Pages in the OH3 UI: documentation draft (1/3) and the answer to your specific question should be found on [wiki] Getting Started with OH3: rewriting the tutorial - 8. Rules.

It should also be somewhat apparent on the Rule page where you create the Rule that a Rule contains three parts.

  • When: what events occur to cause the rule to run, i.e. triggers the rule. Can be time based or events on Items of Things. For example, when SmarthomeKalender_TitelaktuellerEintrag changes state.

  • Then: what to do when the rule is triggered. This is where your Blockly code would go

  • But only if: what conditions must be true to allow the rule to run even if it’s been triggered.