I used OH2 years ago. Now I’m starting playing with OH3. I’m wondering why there are settings for:
Rules
Scripts
Schedule
Rules and Schedule have totally identical sub-menues. Why is this meeningful? It just leads to confusion and gives the posibility to mix them up.
Instead I would have expected, the Astro Binding to have become a core component:
Schedule => Time => Sunset => - 30 Min.
In my opinion it fundamental, to have these simple functions on hand right away. I expected a great step forward in terms of usability to significantly increase the community. My first attempt starts frustrating today.
How to set up this simple function to turn on the garden lights, when it gets dark?
Sorry for this slightly negative post. I appreciate very much what you are doing. I’m fan of openHAB since 1.x, but I’m not the IT-guy and hoped to get a more easy approach with 3.0.
Rules are fully fledged rules that have triggers and actions.
Scripts are “naked” rules. No triggers, no conditions, just a Script Action. Since rules can call other rules these can be a powerful way to structure you code, particularly if you have some common code that needs to be used by multiple different rules.
Once you have at least one Rule that is tagged with “Schedule”, the “Schedule” entry will show a calendar showing you when those Rules are scheduled to run.
thank you very much for the detailed explanation. Great! Thank you so much! It worked. Just had sunset:
Quite easy but still not as intuitive as it could be. In my view it is still a schedule. …and I still have no idea how to make an offset: 30 minutes before sunset (- 30 Min).
…and I am wondering, why I get multiple events in the developer sidebar.
Click on the channel you want to add the offset to and then select “Configure Channel”.
Don’t be afraid to click on things. It often becomes apparent how to do things when you just click on something or even hover your mouse over certain elements.