Delay Start [4.0.0.0;4.9.9.9]

image

System startup can be noisy and chaotic.

This is a rule that triggers at system runlevel 40 (Rule Engine Started) and again at a runlevel 100. The first time it triggers, it disables a user selected set of rules immediately. The second time it triggers it will wait a user selected amount of time and then reenable the selected rules.

Language: JS Scripting ECMAScript 2021

Dependencies:

  • openhab-js 4.1+
  • openhab_rules_tools 2.0.2+

Changelog

Version 0.2

  • rules can come and go, catch the exception if a rule no longer exists rather than blowing up.

Version 0.1

  • initial release

Sponsorship

If you want to send a tip my way or sponsor my work you can through Sponsor @rkoshak on GitHub or PayPal. It won’t change what I contribute to OH but it might keep me in coffee or let me buy hardware to test out new things.

Resources

https://raw.githubusercontent.com/rkoshak/openhab-rules-tools/main/rule-templates/ruleStartDelay/ruleStartDelay.yaml

1 Like