See here my complete Astro-Thing:
// Astro - Binding Geo-Position geolocation="45.33654,3.45678,502"
// astronomische Jahreszeiten (Tag- und Nachtgleiche)
Thing astro:sun:local "Sonnen Daten" [geolocation="45.33654,9.8709123,502", interval=300]
Thing astro:moon:local "Mond Daten" [geolocation="45.33654,9.8709123,502", interval=300]
// Meteorologische Jahreszeiten
Thing astro:sun:localmet "Sonnen Daten meteorologisch" [geolocation="45.33654,9.8709123,502", interval=300, useMeteorologicalSeason=true]
Thing astro:sun:stowing4 "Offset 50" [geolocation="45.33654,9.8709123,502", interval=300]{
Channels:
Type rangeEvent : set#event [
offset=50
]
Type start : set#start [
offset=50
]
Type end : set#end [
offset=50
]
Type rangeEvent : astroDusk#event [
offset=50
]
Type rangeEvent : night#event [
offset=50
]
Type rangeEvent : noon#event [
offset=50
]
Type start : noon#start [
offset=50
]
Type start : noon#end [
offset=50
]
Type rangeEvent : rise#event [
offset=50
]
Type start : rise#start [
offset=50
]
Type end : rise#end [
offset=50
]
}
You will see several Things for the different purposes. One of them (the fourth) is for offset use and a rule which works with those offset events.
rule "Sunset_50 Start"
when
Channel 'astro:sun:stowing4:set#event' triggered START
then
logInfo("astro-rules" + '_03', " Sunset_50 Start. START")
//EG_gEG_Kind2_Licht.sendCommand(ON)
end
//===============================================================================
rule "Sunset_50 Ende"
when
Channel 'astro:sun:stowing4:set#event' triggered END
then
logInfo("astro-rules" + '_04', " Sunset_50 Ende. END")
//EG_gEG_Kind2_Licht.sendCommand(ON)
end
//===============================================================================
and the log for those events:
2022-03-23 19:25:00.006 [INFO ] [hab.core.model.script.astro-rules_03] - Sunset_50 Start. START
2022-03-23 19:28:00.006 [INFO ] [hab.core.model.script.astro-rules_04] - Sunset_50 Ende. END
So from what I can see, your Rule looks quite ok, but the Action-Type “sendCommand” only seems to accept Strings, as i understand:
....
sendCommand(Light_applique, "OFF")
.....
Please have a look in the docs here