Light Switch depending on Astro SUN

Dear all,

my OpenHAB2 installation has an Astro Binding. I have two items:
astro:sun:home:civilDawn and astro:sun:home:civilDusk

What I am trying now to reach is:

I have a light switch and if this switch is turned ON by the user but the sun is still shining (for example 11:00) then the light will NOT turn on. But if the sun will goes down at 21:00 and the user is trying to switch on the light at 20:00 then everything is fine and the light will turn on.

Any idea how I can configure this?

I am not looking for an automatically light on switch. What I want is that I block this switch between some time.

You need a Proxy Item to represent the light. When the proxy is toggled, that triggers a Rule. In the Rule, only forward the ON command to the Light if it is after your civilDusk Item (are you using Simple Mode? Those look more like a Thing ID than an Item name).

Note, there is nothing you can do to prevent the light from being turned on physically at the light.