[SOLVED] Astro-Binding seems to ignore Auto Ignore from Paper UI OH 2.5 M1

Hi All,
i’m using Astro-Binding with Things declared in a .things-File. If using another name than local (e.g. home) i get this message
astro
in the inbox. When changing to local the hint in inbox is not present anymore.

Even using local i get starting information twice in the logger, like here:

2019-02-03 22:59:35.587 [INFO ] [thome.binding.astro.internal.job.Job] - Scheduled Astro event-jobs for thing astro:moon:local
2019-02-03 22:59:35.607 [INFO ] [ding.astro.handler.AstroThingHandler] - Scheduled Positional job astro:moon:local every 300 seconds
2019-02-03 22:59:35.760 [INFO ] [thome.binding.astro.internal.job.Job] - Scheduled Astro event-jobs for thing astro:moon:local
2019-02-03 22:59:35.769 [INFO ] [ding.astro.handler.AstroThingHandler] - Scheduled Positional job astro:moon:local every 300 seconds
2019-02-03 22:59:37.678 [INFO ] [thome.binding.astro.internal.job.Job] - Scheduled Astro event-jobs for thing astro:sun:local
2019-02-03 22:59:37.700 [INFO ] [ding.astro.handler.AstroThingHandler] - Scheduled Positional job astro:sun:local every 300 seconds
2019-02-03 22:59:37.821 [INFO ] [thome.binding.astro.internal.job.Job] - Scheduled Astro event-jobs for thing astro:sun:local
2019-02-03 22:59:37.869 [INFO ] [ding.astro.handler.AstroThingHandler] - Scheduled Positional job astro:sun:local every 300 seconds

Auto Ignore is enabled in Paper UI. So it seems a “little error” in the binding, or am i wrong ?

Thx in advance for hints.

Cheers Peter

I can’t say at this point where the problem is. But the fact that you end up with two schedules when you use the local ID in your .things file points to there potentially being a bug. I’d file an issue on the openhab2-addons repo.

Hi Rich,
thx for reply. I’m happy for your help. As i’m no programmer and without experince in this stuff, but very nosy, i found here this code snippets

public static final String BINDING_ID = "astro";

    public static final String SUN = "sun";
    public static final String MOON = "moon";
    public static final String LOCAL = "local";

    // things
    public static final ThingTypeUID THING_TYPE_SUN = new ThingTypeUID(BINDING_ID, SUN);
    public static final ThingTypeUID THING_TYPE_MOON = new ThingTypeUID(BINDING_ID, MOON);

and there those snippets

private static final ThingUID SUN_THING = new ThingUID(THING_TYPE_SUN, LOCAL);
    private static final ThingUID MOON_THING = new ThingUID(THING_TYPE_MOON, LOCAL);

    /**
     * Creates a AstroDiscoveryService with enabled autostart.
     */

Hope this can help or is a spoor, and if not, don’t hesitate to tell me the whole truth :wink:, as i’m a big boy :sob:

thx in advance.

Cheers - Peter

if there is a problem in the binding, I don’t think it’s going to be obvious just from looking at it and if still pending involve some interaction between the binding and the core.

1 Like

thx for support.

Cheers Peter