Astro channel rule trigger doesn't work

  • Platform information:
    • Hardware: rpi3
    • OS: openHabian
    • Java Runtime Environment: v17
    • openHAB version: 4.0.2

I am trying to trigger a rule based on a Astro event, but nothing happens. Astro thing is created in text file, but channels and items were created on the UI. I don’t remember exactly why I choose this mixed way, but I think textual channel definition didn’t work. I prefer to define things and items in text files if possible.

Things file

// Astro 
astro:sun:home [ geolocation="47.xxxxx,18.xxxxx,200", interval=60 ] {

Rules file

rule "Blinds - at dusk"
    Channel "astro:sun:home:civilDusk#start" triggered START
    logInfo("rules", "zsaluziák leeresztse triggerelve")
    // nothing logged or hppen here

Channel configuration on GUI. The channel exists and has value, so I don’t really understan what do I wrong.

Thank you,

civilDusk#start is a DateTIme field. I believe you want the event. Try


It’s simply the wrong channel.
Please be aware that there are different type of channels. e.g. for civilDusk:


where start is date and time of civil dusk start, end is date and time of civil dusk end, duration is time in minutes between start and end, and finally event is the trigger channel.

event will trigger START and END (at the date and time which is displayed through the other two channels.)

1 Like

Thank you, you are right I should add “#event” to the rule. I don’t know how I missed it. :slight_smile:
You are writing that the #event will trigger the rule on both, Start and End, right? it is possible to trigger the rule only on Start? Should I use Time is ITEM in such case?

Thank you,

The event channel will trigger START for the start time and END for the end time.

So a rule with trigger

Channel "astro:sun:home:civilDusk#event" triggered START

will only run when civil dusk starts, while

Channel "astro:sun:home:civilDusk#event" triggered END

will only trigger, when civil dusk ends.

Thank you. How come that I haven’t recognized it. :man_facepalming: :smiley: