[Solved] Wrong zodiac in Astro bundle

Dear all,

I show the current zodiac in my sitemap, but my girlfriend just made me aware that the value shown there is false. It says “Aquarius” where it should be “Capricorn”. My OH Version is 2.2.0 and the date is correctly set on my OH server. Do others have this problem as well?


Is the geolocation set correctly for the thing in question?

It’s unclear to me which zodiac the binding is using, however the code indicates you should be seeing Capricorn for today:

        zodiacs.add(new SunZodiac(ZodiacSign.CAPRICORN,
                DateTimeUtils.getRange(year, Calendar.DECEMBER, 22, year + 1, Calendar.JANUARY, 19)));
        zodiacs.add(new SunZodiac(ZodiacSign.CAPRICORN,
DateTimeUtils.getRange(year - 1, Calendar.DECEMBER, 22, year, Calendar.JANUARY, 19)));

Yes, the geolocation is set correctly I would say. But nevertheless: In which part of the world would “Aquarius” be the right zodiac today? :wink:

Good point. However that means more work. Time for debug logs.

After last restart I got the following lines in the log:

23:22:27.467 [INFO ] [smarthome.event.ItemStateChangedEvent] - Sunrise_Time changed from NULL to 2017-01-24T08:21:00.000+0100
23:22:27.470 [INFO ] [smarthome.event.ItemStateChangedEvent] - Sunset_Time changed from NULL to 2018-01-06T16:39:00.000+0100
23:22:27.471 [INFO ] [smarthome.event.ItemStateChangedEvent] - Moon_Phase changed from NULL to WANING_CRESCENT
23:22:27.475 [INFO ] [smarthome.event.ItemStateChangedEvent] - Zodiac changed from NULL to AQUARIUS

What else do you need for debugging?

Sunrise_Time from January 2017 looks weird. Is your OH running in a blue police call box?

You should set the binding into debug mode and recapture the logs.

No, not running OH in the Tardis :smiley: But strange, indeed…

How do I set the binding into debug mode? Sorry for this stupid question, but I’ve never done this before…

Wow. I never really took notice of this either, but just checked mine.

And mine shows as Virgo, which would also be incorrect.

And my OH2 date and time are both accurate and I am also showing accurate Sunrise and Sunset times.

And my Ubuntu Server also shows the correct date and time.

Moon_Phase changed from NULL to WANING_CRESCENT

This also appears to be wrong, upon closer examination.

How do I set the binding into debug mode?

In the Karaf console:

log:set DEBUG org.eclipse.smarthome.binding.astro

Thank for the info! I’ve set the debug level and restartet the astro bundle. Here’s the output:

02:54:27.526 [DEBUG] [org.eclipse.smarthome.binding.astro  ] - BundleEvent STARTING - org.eclipse.smarthome.binding.astro
02:54:27.540 [DEBUG] [org.eclipse.smarthome.binding.astro  ] - BundleEvent STARTED - org.eclipse.smarthome.binding.astro
02:54:27.631 [INFO ] [smarthome.event.ThingUpdatedEvent    ] - Thing 'astro:sun:home' has been updated.
02:54:27.635 [INFO ] [smarthome.event.ThingUpdatedEvent    ] - Thing 'astro:moon:home' has been updated.
02:54:27.638 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'astro:sun:home' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
02:54:27.638 [DEBUG] [nding.astro.handler.AstroThingHandler] - Initializing thing astro:sun:home
02:54:27.643 [DEBUG] [nding.astro.handler.AstroThingHandler] - AstroThingConfig[thing=astro:sun:home,geolocation=50.804939, 6.800870,altitude=<null>,interval=60,systemTimezone=Europe/Berlin (CET +0100),daylightSavings=false]
02:54:27.647 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'astro:sun:home' changed from INITIALIZING to ONLINE
02:54:27.647 [DEBUG] [nding.astro.handler.AstroThingHandler] - Restarting jobs for thing astro:sun:home
02:54:27.651 [DEBUG] [nding.astro.handler.AstroThingHandler] - Stopping scheduled jobs for thing astro:sun:home
02:54:27.665 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled Daily job sun astro:sun:home at midnight
02:54:27.682 [DEBUG] [nding.astro.handler.AstroThingHandler] - Publishing planet Sun for thing astro:sun:home
02:54:27.693 [INFO ] [rthome.binding.astro.internal.job.Job] - Scheduled Astro event-jobs for thing astro:sun:home
02:54:27.708 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled org.eclipse.smarthome.binding.astro.internal.job.CompositeJob@7665cba in 20432303ms (at 2018-01-07T08:35:00)
02:54:27.711 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled org.eclipse.smarthome.binding.astro.internal.job.CompositeJob@73d7f885 in 20672289ms (at 2018-01-07T08:39:00)
02:54:27.715 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled org.eclipse.smarthome.binding.astro.internal.job.CompositeJob@4fa81f81 in 49532285ms (at 2018-01-07T16:40:00)
02:54:27.719 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled org.eclipse.smarthome.binding.astro.internal.job.CompositeJob@4749c00 in 49832281ms (at 2018-01-07T16:45:00)
02:54:27.722 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled org.eclipse.smarthome.binding.astro.internal.job.CompositeJob@1449010 in 35132278ms (at 2018-01-07T12:40:00)
02:54:27.726 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled org.eclipse.smarthome.binding.astro.internal.job.CompositeJob@337b55cb in 35192274ms (at 2018-01-07T12:41:00)
02:54:27.729 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled org.eclipse.smarthome.binding.astro.internal.job.CompositeJob@666768eb in 57032271ms (at 2018-01-07T18:45:00)
02:54:27.733 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled org.eclipse.smarthome.binding.astro.internal.job.CompositeJob@66842497 in 13172267ms (at 2018-01-07T06:34:00)
02:54:27.737 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled org.eclipse.smarthome.binding.astro.internal.job.CompositeJob@4dad7471 in 13172263ms (at 2018-01-07T06:34:00)
02:54:27.740 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled org.eclipse.smarthome.binding.astro.internal.job.CompositeJob@42d74912 in 15572260ms (at 2018-01-07T07:14:00)
02:54:27.744 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled org.eclipse.smarthome.binding.astro.internal.job.CompositeJob@7789aaa7 in 15572256ms (at 2018-01-07T07:14:00)
02:54:27.747 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled org.eclipse.smarthome.binding.astro.internal.job.CompositeJob@9f5ec9d in 18092253ms (at 2018-01-07T07:56:00)
02:54:27.751 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled org.eclipse.smarthome.binding.astro.internal.job.CompositeJob@68f9ba69 in 18092249ms (at 2018-01-07T07:56:00)
02:54:27.754 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled org.eclipse.smarthome.binding.astro.internal.job.CompositeJob@2a1b069a in 20432246ms (at 2018-01-07T08:35:00)
02:54:27.758 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled org.eclipse.smarthome.binding.astro.internal.job.CompositeJob@22d62230 in 54632242ms (at 2018-01-07T18:05:00)
02:54:27.761 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled org.eclipse.smarthome.binding.astro.internal.job.CompositeJob@385bccc2 in 57032239ms (at 2018-01-07T18:45:00)
02:54:27.765 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled org.eclipse.smarthome.binding.astro.internal.job.CompositeJob@634c4172 in 52112235ms (at 2018-01-07T17:23:00)
02:54:27.768 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled org.eclipse.smarthome.binding.astro.internal.job.CompositeJob@7e8c830d in 54632232ms (at 2018-01-07T18:05:00)
02:54:27.772 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled org.eclipse.smarthome.binding.astro.internal.job.CompositeJob@4eb47ec0 in 49832228ms (at 2018-01-07T16:45:00)
02:54:27.775 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled org.eclipse.smarthome.binding.astro.internal.job.CompositeJob@77c663f9 in 52112225ms (at 2018-01-07T17:23:00)
02:54:27.779 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled org.eclipse.smarthome.binding.astro.internal.job.CompositeJob@42cf33c7 in 57032221ms (at 2018-01-07T18:45:00)
02:54:27.783 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled org.eclipse.smarthome.binding.astro.internal.job.CompositeJob@2b3aa02f in 20672218ms (at 2018-01-07T08:39:00)
02:54:27.786 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled org.eclipse.smarthome.binding.astro.internal.job.CompositeJob@3f4be9a7 in 49532214ms (at 2018-01-07T16:40:00)
02:54:27.790 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled Sun phase job astro:sun:home/SUN_RISE in 20432211ms (at 2018-01-07T08:35:00)
02:54:27.793 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled Sun phase job astro:sun:home/SUN_SET in 49532207ms (at 2018-01-07T16:40:00)
02:54:27.796 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled Sun phase job astro:sun:home/NIGHT in 57032204ms (at 2018-01-07T18:45:00)
02:54:27.798 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled Sun phase job astro:sun:home/DAYLIGHT in 20672202ms (at 2018-01-07T08:39:00)
02:54:27.801 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled Sun phase job astro:sun:home/ASTRO_DAWN in 13172199ms (at 2018-01-07T06:34:00)
02:54:27.804 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled Sun phase job astro:sun:home/NAUTIC_DAWN in 15572196ms (at 2018-01-07T07:14:00)
02:54:27.807 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled Sun phase job astro:sun:home/CIVIL_DAWN in 18092193ms (at 2018-01-07T07:56:00)
02:54:27.810 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled Sun phase job astro:sun:home/ASTRO_DUSK in 54632190ms (at 2018-01-07T18:05:00)
02:54:27.813 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled Sun phase job astro:sun:home/NAUTIC_DUSK in 52112187ms (at 2018-01-07T17:23:00)
02:54:27.815 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled Sun phase job astro:sun:home/CIVIL_DUSK in 49832185ms (at 2018-01-07T16:45:00)
02:54:27.819 [DEBUG] [nding.astro.handler.AstroThingHandler] - Thing astro:sun:home initialized ONLINE
02:54:27.822 [DEBUG] [nding.astro.handler.AstroThingHandler] - Initializing thing astro:moon:home
02:54:27.825 [DEBUG] [nding.astro.handler.AstroThingHandler] - AstroThingConfig[thing=astro:moon:home,geolocation=50.804939, 6.800870,altitude=<null>,interval=60,systemTimezone=Europe/Berlin (CET +0100),daylightSavings=false]
02:54:27.831 [DEBUG] [nding.astro.handler.AstroThingHandler] - Restarting jobs for thing astro:moon:home
02:54:27.832 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'astro:moon:home' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to INITIALIZING
02:54:27.835 [DEBUG] [nding.astro.handler.AstroThingHandler] - Stopping scheduled jobs for thing astro:moon:home
02:54:27.839 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'astro:moon:home' changed from INITIALIZING to ONLINE
02:54:27.847 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled Daily job moon astro:moon:home at midnight
02:54:27.861 [DEBUG] [nding.astro.handler.AstroThingHandler] - Publishing planet Moon for thing astro:moon:home
02:54:27.867 [INFO ] [rthome.binding.astro.internal.job.Job] - Scheduled Astro event-jobs for thing astro:moon:home
02:54:27.873 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled org.eclipse.smarthome.binding.astro.internal.job.CompositeJob@840d963 in 75092127ms (at 2018-01-07T23:46:00)
02:54:27.883 [DEBUG] [nding.astro.handler.AstroThingHandler] - Scheduled org.eclipse.smarthome.binding.astro.internal.job.CompositeJob@706e2c99 in 31892117ms (at 2018-01-07T11:46:00)
02:54:27.888 [DEBUG] [nding.astro.handler.AstroThingHandler] - Thing astro:moon:home initialized ONLINE

I don’t see anything obviously wrong with any of that, but I also don’t see the zodiac changed events that you previously posted.

Can you show your astro thing configurations?

Found the problem! I copy and pasted the channels long time ago and now saw that they have changed! Zodiac seemed to be a subchannel of astro:moon and is now a subchannel of astro:sun. Furthermore I had “local” in my channel definition where there should be “home”. The wrong values I saw today didn’t come from the astro binding, but were loaded from the persistence-db… :-/
Thanks A LOT for your help!


Good catch, and I had the same thing. Changing that over to Sun fixed me as well.

Dear all
I‘m using astro:sun. I‘m using local instead of home within binding configuration.
I have the following situation: the zodiac signs switch one day too early. Today is last lion from my point of view (August 23), but today my openHAB already shows maiden.
On the other hand I can find zodiac descriptions where lion ends August 22.
What is correct?
Or does lion switch to maiden during the day at a certain hour of the day?
Thanks and regards