[SOLVED] Astro Binding Sun Set Event not triggering

Here is a newer thread related to this astro binding problem.

And yes, this rise#event works.

My astro rules worked the last 2 weeks without problem, but today it worked not. 2 of my astro things are ok, but the 3rd one makes problems every now and then.

hi, i have a problem with the setup things channel , me channel trigger perfectly but i try to implement the earliest and latest parameter without success , please can you help me with this ? i read the doc and read many post about … .

here is the things :

astro:sun:Crepusculaire "Info Crepusculaire Ere" @ "crepusculaire" [ geolocation="50.57985513905061,3.3648933599336908", interval=60]{

Channels:

////au couche du soleil/////////

 Type rangeEvent : set#event [

            latest="22:00"

                            ] 
////au leve du soleil/////////

 Type rangeEvent : rise#event [

            earliest="07:00"            

                            ]
}

and here the rule :

rule "Ouvrir les Volets au leve du soleil Tout les jours"

    when   

                   Channel "astro:sun:Crepusculaire:rise#event" triggered START  ///leve du soleil declenche  

    then

   exc....

   end 

what wrong with my setup ? any idea ?

thanks a lot for your help

Sorry to bring this up again but I came across the exact same error in the last days. My astro events are not firing anymore:

OH Version: openHAB 2.5.4-1
Raspberry Pi 4 Raspbian GNU/Linux 10 (buster)

astro.rules:

rule "general.rules - Daylight - Start"
when
  Channel "astro:sun:homeoffset:set#event" triggered START
then
  Astro_Shutter_Rule_Timestamp.postUpdate(new DateTimeType())
  var Number executions = Astro_Shutter_Executions.state as Number
  if (executions == NULL) 
  {
    executions=0 
  }
  executions = executions +1
  Astro_Shutter_Executions.postUpdate(executions)

  vDaylight.sendCommand(OFF)
end

vDaylight remains NULL which gives me the impression the rule was never executed.

My astro.items file looks as follows:

astro:sun:home [ geolocation="48, 11", interval=300]
astro:moon:home [ geolocation="48, 11", interval=300]
astro:sun:homeoffset [ geolocation="48, 11", interval=300] {
     Channels:
         Type start : set#start [
            offset=-30
        ]
        Type rangeEvent : set#event [
            offset=-30
        ]
        Type start : rise#start [
            offset=0
        ]
        Type rangeEvent : rise#event [
            offset=0
        ]
}

Thanks in advance for your ideas!

You could always add a logInfo() to the beginning of your rule to find out.

However, Astro events should show up in your events.log

If Astro_Shutter_Executions did have state NULL when the rule ran, it would fail (and leave an error message in your openhab.log)
You cannot cast NULL to a Number.
You can test if state is NULL before trying to do that, though.

Thanks for your reply. The rule itself worked half a year without any issues, then it stopped. I have now recreated the astro thing and separated rise and set in two separate things.

Now it is working, still I dont have any idea why it stopped, though.