Skip to content

Commit

Permalink
Update rules-dsl.md (openhab#2187)
Browse files Browse the repository at this point in the history
* Update rules-dsl.md

Learnings from conversation with Rich added:
https://community.openhab.org/t/ecma-rule-to-trigger-after-system-fully-functional/152091/6

Signed-off-by: Jens Hauser<[email protected]>

Signed-off-by: Jens Hauser <[email protected]>

* Update rules-dsl.md

Thanks for your comments, Stefan.
Adjusted text

Signed-off-by: Jens Hauser <[email protected]>

---------

Signed-off-by: Jens Hauser <[email protected]>
  • Loading branch information
JensHauser authored Dec 31, 2023
1 parent ed50303 commit 22123c0
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions configuration/rules-dsl.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,23 @@ In openHAB version 3 the System-based Trigger for startlevel had been added, val

Startlevels less than 40 are not available as triggers because the rule engine needs to start up first before it can execute any rules.

A rule that triggers for a start level and is saved during development is reloaded, if the expected startlevel (or higher) has been reached.
The reason behind is that updated rules are considered as new rules.

Writing rules with quite low startlevels might be too early, as for instance not all things are online yet.

Example:

```java
rule "Start level reload"
when
System reached start level 70
then
logInfo("StartLevelTest", "triggered a second time, if active rule being edited and saved another time.")
logInfo("StartLevelTest", "You won´t realize this behaviour under regular run conditions, each start level is reached exactly once.")
end
```

### Thing-based Triggers

Your rules can take actions based upon status updates or status changes generated by Things.
Expand Down

0 comments on commit 22123c0

Please sign in to comment.