According to:
[SOLVED] Sunset event with offset on wrong time - Setup, Configuration and Use / Scripts & Rules - openHAB Community
The thing config should look like:
astro:sun:SchinMin30 [ geolocation=“51.1222,5.875652” ] {
Channels:
Type start : set#start [
offset=-30
]
Type rangeEvent : set#event [
offset=-30
]
}
So I have used this as the basis for my things file!
astro:sun:UpHomePlus30 [ geolocation="51.49073114618457,3.911122083663941", interval=60 ] {
Channels:
Type start : rise#start [
offset=30
]
Type rangeEvent : rise#event [
offset=30
]
}
Rule:
rule "UpHomePlus30_rule"
when
Channel 'astro:sun:UpHomePlus30:rise#event' triggered START
then
executeCommandLine(Duration.ofSeconds(5),"/var/lib/openhab/print_cmd.sh","UpHomePlus30: is triggered.")
logInfo("write text1", "text geschreven in eigen file /etc/openhab/html/test.txt: UpHomePlus30: is triggered.")
end
Will see tomorrow what happend!