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
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.
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.