I would like to let the rollershutters go UP on sunrise. When this is too early i would like to let it go up later. This should be ajustable in the Basic UI. In the Basic UI i type in the value 90 or -120 and than the shutters go up 90 minutes after sunrise or 120minutes before sunrise.
This is not going to be easy. You cannot dynamically change the offset for an Astro Thing. You cannot type a value into Basic UI.
There are ways to accomplish this though.
The problem needs to be broken down into parts.
You need Number Items and Setpoints and or Sliders on the sitemap/habpanel to choose each offset.
Create a rule that runs sometime after midnight and when OH restarts
a. in this rule create a timer that goes off at sunrise + offset and another that goes off at sunset + offset
b. the body of the timers will raise or lower the shutters respectively
You can’t do that and that is why this is not easy to accomplish and why you have to use Timers. The Astro offset, whether in the Astro 1.x binding or the Astro 2.x binding is hardcoded and cannot be changed at runtime.
But while I say it is hard, it really isn’t all that hard.
But first, before I go into putting together an example, what is it you are really trying to accomplish? Can you accomplish it using events and state (e.g. in the winter use a minus 120 minutes, in summer use a minus 30 minutes).