Rollershutter down at 1 hours after END of sunset

Hi,
i am just a beginner but managed to let my Velux shutters to go up and down at specific time.
But now i want to make it more dynamic, i want to close my shutter 1 hour after sunset END.
could anyone tell me if below example in my rules file should work ? in it.
when i put it there without the offset it is working, but i want the delay in it.

[rule “Astro trigger Down rule”
when
Channel ‘astro:sun:home:set#event,offset=60’ triggered END
then
sendCommand(GF_Keuken_Shutter, DOWN)
logInfo(“info”,"Is Keuken Rolluik dicht ? ")
end]

That won’t work. You need to define an Astro Thing with the offset defined. Then use that Thing to trigger your Rule.

Hi,
sorry i did not tel you that i have a things file see below, but i dont know if that is oke

[ astro:moon:home [ geolocation=“51.7510552,4.149249800000007”, interval=3600 ]
astro:sun:home [ geolocation=“51.7510552,4.149249800000007,100”, interval=3600 ]{
Channels:
Type start : rise#start [
offset=20
]

    Type end : set#end [
        offset=60
    ]

}]

Assuming that Thing is defined correctly (I use PaperUI now for all Things), then you trigger your Rule just like it says in the docs.

Channel 'astro:sun:home:set#event' triggered END

If you want the #event trigger to be offset by 60mins, you’d need to put that in your Channels as well. events and start/ends are different channels.

I prefer to keep a ‘standard’ astro Thing and add another Thing for offsets.

astro:sun:local   [ geolocation="56.9, -3.9", interval=600 ]
{
    Channels:
        Type rangeEvent : rise#event [
            offset=5
        ]
        Type rangeEvent : set#event [
            offset=-5
        ]
}
/* forward 6hrs */
astro:sun:earlier   [ geolocation="56.9, -3.9", interval=600 ]
{
    Channels:
        Type start : rise#start [
            offset=-360
        ]
        Type end : set#start [
            offset=-360
        ]
        Type rangeEvent : rise#event [
            offset=-360
        ]
        Type rangeEvent : set#event [
            offset=-360
        ]
}