Astro binding issue?

Hello!
When loading openhab 2 in the log:

2017-03-10 15:38:18.782 [INFO ] [ding.astro.handler.AstroThingHandler] - Scheduled astro job-daily-sun at midnight for thing astro:sun:local
2017-03-10 15:38:18.822 [INFO ] [ding.astro.handler.AstroThingHandler] - Scheduled astro job-positional with interval of 300 seconds for thing astro:sun:local
2017-03-10 15:38:18.861 [INFO ] [ding.astro.handler.AstroThingHandler] - Scheduled astro job-daily-sun at midnight for thing astro:sun:local
2017-03-10 15:38:18.866 [INFO ] [ding.astro.handler.AstroThingHandler] - Scheduled astro job-positional with interval of 300 seconds for thing astro:sun:local
2017-03-10 15:38:19.554 [ERROR] [.astro.internal.job.AbstractDailyJob] - Unable to store Job : 'astro:sun:local.job-event-start-set#event', because one already exists with this identification.
org.quartz.ObjectAlreadyExistsException: Unable to store Job : 'astro:sun:local.job-event-start-set#event', because one already exists with this identification.
	at org.quartz.simpl.RAMJobStore.storeJob(RAMJobStore.java:279)[106:org.eclipse.smarthome.core.scheduler:0.9.0.201703060943]
	at org.quartz.simpl.RAMJobStore.storeJobAndTrigger(RAMJobStore.java:251)[106:org.eclipse.smarthome.core.scheduler:0.9.0.201703060943]
	at org.quartz.core.QuartzScheduler.scheduleJob(QuartzScheduler.java:886)[106:org.eclipse.smarthome.core.scheduler:0.9.0.201703060943]
	at org.quartz.impl.StdScheduler.scheduleJob(StdScheduler.java:249)[106:org.eclipse.smarthome.core.scheduler:0.9.0.201703060943]
	at org.openhab.binding.astro.internal.job.AbstractDailyJob.schedule(AbstractDailyJob.java:105)[208:org.openhab.binding.astro:2.1.0.201703092339]
	at org.openhab.binding.astro.internal.job.AbstractDailyJob.scheduleEvent(AbstractDailyJob.java:72)[208:org.openhab.binding.astro:2.1.0.201703092339]
	at org.openhab.binding.astro.internal.job.AbstractDailyJob.scheduleRange(AbstractDailyJob.java:58)[208:org.openhab.binding.astro:2.1.0.201703092339]
	at org.openhab.binding.astro.internal.job.DailyJobSun.schedulePlanetEvents(DailyJobSun.java:33)[208:org.openhab.binding.astro:2.1.0.201703092339]
	at org.openhab.binding.astro.internal.job.AbstractDailyJob.executeJob(AbstractDailyJob.java:47)[208:org.openhab.binding.astro:2.1.0.201703092339]
	at org.openhab.binding.astro.internal.job.AbstractBaseJob.execute(AbstractBaseJob.java:40)[208:org.openhab.binding.astro:2.1.0.201703092339]
	at org.quartz.core.JobRunShell.run(JobRunShell.java:202)[106:org.eclipse.smarthome.core.scheduler:0.9.0.201703060943]
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)[106:org.eclipse.smarthome.core.scheduler:0.9.0.201703060943]
2017-03-10 15:38:19.669 [ERROR] [.astro.internal.job.AbstractDailyJob] - Unable to store Job : 'astro:sun:local.job-event-end-set#event', because one already exists with this identification.
org.quartz.ObjectAlreadyExistsException: Unable to store Job : 'astro:sun:local.job-event-end-set#event', because one already exists with this identification.
	at org.quartz.simpl.RAMJobStore.storeJob(RAMJobStore.java:279)[106:org.eclipse.smarthome.core.scheduler:0.9.0.201703060943]

The first and second lines are repeated twice.
Errors about events do not appear at every boot,
For the test, rebooted 3 times, 2 times error, 1 not.
Tried an astro to add through a file and through the paperUI. The result is the same.

astro.things:

astro:sun:local [geolocation="52.4546,103.8195", interval=60]

astro.items:

Group gAstro

Number		sun_elevation		"elevation [%.2f Ā°]"						<sun>		(gAstro)	{ channel="astro:sun:local:position#elevation" }
DateTime	sun_astrodawn		"astrodawn[%1$tH:%1$tM]"					<sunrise>	(gAstro)	{ channel="astro:sun:local:astroDawn#start" }
DateTime	sun_rise			"rise[%1$tH:%1$tM]"							<sunrise>	(gAstro)	{ channel="astro:sun:local:rise#start" }
DateTime	sun_noon			"noon[%1$tH:%1$tM]"							<sun>		(gAstro)	{ channel="astro:sun:local:noon#start" }
DateTime	sun_set				"set[%1$tH:%1$tM]"							<sunset>	(gAstro)	{ channel="astro:sun:local:set#start" }
DateTime	sun_night			"night[%1$tH:%1$tM]"						<moon>		(gAstro)	{ channel="astro:sun:local:night#start" }

String		season_name			"season name [MAP(season.map):%s]"						(gAstro)	{ channel="astro:sun:local:season#name" }
DateTime	season_spring		"spring [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	<rain>		(gAstro)	{ channel="astro:sun:local:season#spring" }
DateTime	season_summer		"summer [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	<garden>	(gAstro)	{ channel="astro:sun:local:season#summer" }
DateTime	season_autumn		"autumn [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	<wind>		(gAstro)	{ channel="astro:sun:local:season#autumn" }
DateTime	season_winter		"winter [%1$td.%1$tm.%1$tY %1$tH:%1$tM]"	<climate-on>(gAstro)	{ channel="astro:sun:local:season#winter" }

Help get rid of errors.
Thank you!

Hi I have recently tried to upgrade from openhab1 to openhab2. After a while I finally made it. But still there are some issues regarding the astro binding:

  1. Offsets work for Event Channels but not for normal Channels
  2. Earliest/Latest does not work at all

My configuration:

astro.things:

astro:sun:now [ geolocation="51.434973,6.261548", interval=300 ] { }

astro:sun:before [ geolocation="51.434973,6.261548", interval=300 ] {
    Channels:
        Type rangeEvent : rise#event [
            offset=-15
        ]
        Type rangeEvent : set#event [
            offset=-15
        ]
}

astro:sun:after [ geolocation="51.434973,6.261548", interval=300 ] {
    Channels:
        Type rangeEvent : rise#event [
            offset=15
        ]
        Type rangeEvent : set#event [
            offset=15
        ]
        Type start : rise#start [
            offset=15
        ]
        Type end : rise#end [
            offset=15
        ]
        Type start : set#start [
            offset=15
        ]        
        Type end : set#end [
            offset=15
        ]        
}

astro:sun:afterlatest [ geolocation="51.434973,6.261548", interval=300 ] {
    Channels:
        Type rangeEvent : rise#event [
            offset=15,
            latest="08:00"
        ]
        Type rangeEvent : set#event [
            offset=15,
            latest="20:00"
        ]
}

astro.items:

DateTime Sunrise_Time       "Sunrise [%1$tH:%1$tM]"         <sun>        (PersistDaily)        { channel="astro:sun:now:rise#start" }
DateTime Sunset_Time        "Sunset [%1$tH:%1$tM]"          <sun>        (PersistDaily)        { channel="astro:sun:after:rise#start" }

Today, both ā€˜astro:sun:now:rise#startā€™ and ā€˜astro:sun:after:rise#startā€™ show 5:26h AM which is in fact the time without any offset included.

I also defined some logging rules to see the event triggering with the following result:

2017-05-30 21:22:01.566 [INFO ] [pse.smarthome.model.script.fritzdect] - astro:sun:before:set#event SUCCESS
2017-05-30 21:37:00.049 [INFO ] [pse.smarthome.model.script.fritzdect] - astro:sun:now:set#event SUCCESS
2017-05-30 21:52:00.028 [INFO ] [pse.smarthome.model.script.fritzdect] - astro:sun:afterlatest:set#event SUCCESS
2017-05-30 21:52:00.032 [INFO ] [pse.smarthome.model.script.fritzdect] - astro:sun:after:set#event SUCCESS

Offsets are used but according to the definition ā€˜latest=ā€œ20:00ā€ā€™ the ā€˜astro:sun:afterlatest:set#eventā€™ should not occour at 21:52h but at 20:00h.

one addition:

via PaperUI I am able to maintain offsets only for range events but not for channels.
the latest/earliest cannot be entered at all. So the GUI does not offer me the functionality that I am trying to use via config files.

Is that not yet included in openhab 2.0? The dosumentation of the binding does not tell anything about this so I assumed that it should be in 2.0

Best regards
Alex

You canā€™t change settings through Paper UI when the setting is defined through a config-file, i.e. either use Paper UI to define the thing(s) or use the things-file to change settings :slight_smile:

I know that this is not possible. I just wanted to state that those options I wanted to use (and do not work) are not offered by the UI even if I setup everything via UI.