No events from Astro binding

Podman running openhab:latest. I used to have astro stuff and rules configured in files but it stopped working for some reason after I migrated bare-metal to container so now trying to do it strictly from the UI and failing.

  1. Deleted all things and binding from files and uninstalled binding

  2. Re-installed binding and configured coordinates

  3. Sun and Moon things were discovered and added as things. Channels are populated



  4. Log level for the binding set to debug

It seems to have installed just fine and it initializes on restart but I am seeing nothing in the event log after initialization:

2025-03-01 07:44:18.118 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'astro:moon:local' changed from UNINITIALIZED (NOT_YET_READY) to INITIALIZING
2025-03-01 07:44:18.120 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'astro:moon:local' changed from INITIALIZING to ONLINE
2025-03-01 07:44:18.164 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'astro:sun:local' changed from UNINITIALIZED (NOT_YET_READY) to INITIALIZING
2025-03-01 07:44:18.165 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'astro:sun:local' changed from INITIALIZING to ONLINE
[crickets]

I’ve tried to create a simple test rule and it doesn’t fire either:

I must be missing something obvious since I can’t seem to find others posts with these symptoms but what? I’ve done everything via the UI.

Mvh.

Torkil

Here’s an openhab.log snippet from this mornings restart

2025-03-01 07:44:18.120 [DEBUG] [o.internal.handler.AstroThingHandler] - Initializing thing astro:moon:local
2025-03-01 07:44:18.120 [DEBUG] [o.internal.handler.AstroThingHandler] - org.openhab.binding.astro.internal.config.AstroThingConfig@1a32dc3d
2025-03-01 07:44:18.120 [DEBUG] [o.internal.handler.AstroThingHandler] - Restarting jobs for thing astro:moon:local
2025-03-01 07:44:18.120 [DEBUG] [o.internal.handler.AstroThingHandler] - Stopping scheduled jobs for thing astro:moon:local
2025-03-01 07:44:18.129 [DEBUG] [o.internal.handler.AstroThingHandler] - Publishing planet Moon for thing astro:moon:local
2025-03-01 07:44:18.129 [DEBUG] [enhab.binding.astro.internal.job.Job] - Scheduled Astro event-jobs for thing astro:moon:local
2025-03-01 07:44:18.135 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:moon:local/set#event/END in 44561870ms (at 2025-03-01T20:07:00)
2025-03-01 07:44:18.136 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:moon:local/perigee#event/PERIGEE in 52541864ms (at 2025-03-01T22:20:00)
2025-03-01 07:44:18.136 [DEBUG] [o.internal.handler.AstroThingHandler] - Thing astro:moon:local initialized ONLINE
2025-03-01 07:44:18.161 [DEBUG] [g.astro.internal.action.AstroActions] - bundle org.openhab.binding.astro:4.3.3 (339)[org.openhab.binding.astro.internal.action.AstroActions(435)] : ServiceFactory.getService()
2025-03-01 07:44:18.162 [DEBUG] [g.astro.internal.action.AstroActions] - bundle org.openhab.binding.astro:4.3.3 (339)[org.openhab.binding.astro.internal.action.AstroActions(435)] : This thread collected dependencies
2025-03-01 07:44:18.162 [DEBUG] [g.astro.internal.action.AstroActions] - bundle org.openhab.binding.astro:4.3.3 (339)[org.openhab.binding.astro.internal.action.AstroActions(435)] : getService (ServiceFactory) dependencies collected.
2025-03-01 07:44:18.162 [DEBUG] [g.astro.internal.action.AstroActions] - bundle org.openhab.binding.astro:4.3.3 (339)[org.openhab.binding.astro.internal.action.AstroActions(435)] : Querying state active
2025-03-01 07:44:18.162 [DEBUG] [g.astro.internal.action.AstroActions] - bundle org.openhab.binding.astro:4.3.3 (339)[org.openhab.binding.astro.internal.action.AstroActions(435)] : For dependency osgi.ds.satisfying.condition, optional: false; to bind: [[RefPair: ref: [{org.osgi.service.condition.Condition}={service.id=6, service.bundleid=0, service.scope=singleton, service.pid=0.org.osgi.service.condition.ConditionImpl, osgi.condition.id=true}] service: [null]]]
2025-03-01 07:44:18.162 [DEBUG] [g.astro.internal.action.AstroActions] - Astro actions service instanciated
2025-03-01 07:44:18.162 [DEBUG] [g.astro.internal.action.AstroActions] - bundle org.openhab.binding.astro:4.3.3 (339)[org.openhab.binding.astro.internal.action.AstroActions(435)] : Changed state from active to active
2025-03-01 07:44:18.165 [DEBUG] [o.internal.handler.AstroThingHandler] - Initializing thing astro:sun:local
2025-03-01 07:44:18.165 [DEBUG] [o.internal.handler.AstroThingHandler] - org.openhab.binding.astro.internal.config.AstroThingConfig@3f126fe9
2025-03-01 07:44:18.165 [DEBUG] [o.internal.handler.AstroThingHandler] - Restarting jobs for thing astro:sun:local
2025-03-01 07:44:18.165 [DEBUG] [o.internal.handler.AstroThingHandler] - Stopping scheduled jobs for thing astro:sun:local
2025-03-01 07:44:18.175 [DEBUG] [o.internal.handler.AstroThingHandler] - Publishing planet Sun for thing astro:sun:local
2025-03-01 07:44:18.176 [DEBUG] [enhab.binding.astro.internal.job.Job] - Scheduled Astro event-jobs for thing astro:sun:local
2025-03-01 07:44:18.176 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/set#event/START in 35861824ms (at 2025-03-01T17:42:00)
2025-03-01 07:44:18.176 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/set#event/END in 36101824ms (at 2025-03-01T17:46:00)
2025-03-01 07:44:18.176 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/noon#event/START in 16841824ms (at 2025-03-01T12:25:00)
2025-03-01 07:44:18.176 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/noon#event/END in 16901824ms (at 2025-03-01T12:26:00)
2025-03-01 07:44:18.176 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/night#event/START in 43481824ms (at 2025-03-01T19:49:00)
2025-03-01 07:44:18.177 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/astroDusk#event/START in 40841823ms (at 2025-03-01T19:05:00)
2025-03-01 07:44:18.177 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/astroDusk#event/END in 43481823ms (at 2025-03-01T19:49:00)
2025-03-01 07:44:18.177 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/nauticDusk#event/START in 38321823ms (at 2025-03-01T18:23:00)
2025-03-01 07:44:18.177 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/nauticDusk#event/END in 40841823ms (at 2025-03-01T19:05:00)
2025-03-01 07:44:18.177 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/civilDusk#event/START in 36101823ms (at 2025-03-01T17:46:00)
2025-03-01 07:44:18.177 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/civilDusk#event/END in 38321823ms (at 2025-03-01T18:23:00)
2025-03-01 07:44:18.178 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/eveningNight#event/START in 43481823ms (at 2025-03-01T19:49:00)
2025-03-01 07:44:18.178 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/daylight#event/END in 35861822ms (at 2025-03-01T17:42:00)
2025-03-01 07:44:18.179 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Sun phase job astro:sun:local/SUN_SET in 35861821ms (at 2025-03-01T17:42:00)
2025-03-01 07:44:18.179 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Sun phase job astro:sun:local/NIGHT in 43481821ms (at 2025-03-01T19:49:00)
2025-03-01 07:44:18.179 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Sun phase job astro:sun:local/ASTRO_DUSK in 40841821ms (at 2025-03-01T19:05:00)
2025-03-01 07:44:18.179 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Sun phase job astro:sun:local/NAUTIC_DUSK in 38321821ms (at 2025-03-01T18:23:00)
2025-03-01 07:44:18.179 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Sun phase job astro:sun:local/CIVIL_DUSK in 36101821ms (at 2025-03-01T17:46:00)
2025-03-01 07:44:18.179 [DEBUG] [o.internal.handler.AstroThingHandler] - Thing astro:sun:local initialized ONLINE

So there should have been a noon event at 1225 right? But it is not in the event log.

Mvh.

Torkil

If there’s nothing listening for it there won’t be an event. Your rule listens for civlDawn and rise so I would only expect to see those two events anywhere.

And I’m not sure that Thing event channel events get logged to events.log by default so you might not even see them at all unless you change the lower level of openhab.events.ChsnnelEvent (if I recall correctly). It might be possible channel events don’t go on the event bus at all.

The events are scheduled at the same time as the Items are updated. If you link a state channel to an item, does the Item get a state or dues it remain NULL?

I removed the LogReader binding and restarted openhab because I found an old ticket where that binding interfered so that may or may not have helped:

tail: 'userdata/logs/events.log' has become inaccessible: No such file or directory
tail: 'userdata/logs/events.log' has appeared;  following new file
2025-03-01 16:44:15.573 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'astro:moon:local' changed from UNINITIALIZED (NOT_YET_READY) to INITIALIZING
2025-03-01 16:44:15.574 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'astro:moon:local' changed from INITIALIZING to ONLINE
2025-03-01 16:44:15.609 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'astro:sun:local' changed from UNINITIALIZED (NOT_YET_READY) to INITIALIZING
2025-03-01 16:44:15.611 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'astro:sun:local' changed from INITIALIZING to ONLINE

[me making a few line breaks]

2025-03-01 17:42:00.888 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:local:daylight#event triggered END
2025-03-01 17:42:00.889 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:local:set#event triggered START
2025-03-01 17:46:03.264 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:local:civilDusk#event triggered START
2025-03-01 17:46:03.264 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:local:set#event triggered END
2025-03-01 18:23:52.524 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:local:nauticDusk#event triggered START
2025-03-01 18:23:52.524 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:local:civilDusk#event triggered END
2025-03-01 19:14:40.905 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'AstroCivilDawnStart' changed from NULL to 2025-03-01T06:26:00.000+0100
2025-03-01 19:15:02.223 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'AstroCivilDuskStart' changed from NULL to 2025-03-01T17:46:00.000+0100

It still didn’t trigger my real rules but atleast I got something in the log to work with. I then created a couple items as you suggested and they do get a time stamp so hopefully all good now.

Thanks.

Mvh.

Torkil

My rule still didn’t trigger, even with an item linked, and no event in the log for CivilDawn START:

2025-03-02 00:00:30.687 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'AstroCivilDawnStart' changed from 2025-03-01T06:26:00.000+0100 to 2025-03-02T06:24:00.000+0100
2025-03-02 00:00:30.687 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'AstroCivilDuskStart' changed from 2025-03-01T17:46:00.000+0100 to 2025-03-02T17:48:00.000+0100
2025-03-02 00:00:30.576 [DEBUG] [o.internal.handler.AstroThingHandler] - Publishing planet Moon for thing astro:moon:local                                                                                                       2025-03-02 00:00:30.577 [DEBUG] [enhab.binding.astro.internal.job.Job] - Scheduled Astro event-jobs for thing astro:moon:local                                                                                                   2025-03-02 00:00:30.577 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:moon:local/rise#event/START in 27509423ms (at 2025-03-02T07:39:00)                                                            2025-03-02 00:00:30.577 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:moon:local/set#event/END in 78209423ms (at 2025-03-02T21:44:00)                                                               2025-03-02 00:00:30.686 [DEBUG] [o.internal.handler.AstroThingHandler] - Publishing planet Sun for thing astro:sun:local                                                                                                         2025-03-02 00:00:30.687 [DEBUG] [enhab.binding.astro.internal.job.Job] - Scheduled Astro event-jobs for thing astro:sun:local                                                                                                    2025-03-02 00:00:30.687 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/rise#event/START in 25229313ms (at 2025-03-02T07:01:00)                                                             2025-03-02 00:00:30.687 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/rise#event/END in 25469313ms (at 2025-03-02T07:05:00)                                                               2025-03-02 00:00:30.687 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/set#event/START in 63809313ms (at 2025-03-02T17:44:00)                                                              2025-03-02 00:00:30.687 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/set#event/END in 64049313ms (at 2025-03-02T17:48:00)                                                                2025-03-02 00:00:30.687 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/noon#event/START in 44609313ms (at 2025-03-02T12:24:00)                                                             2025-03-02 00:00:30.687 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/noon#event/END in 44669313ms (at 2025-03-02T12:25:00)                                                               2025-03-02 00:00:30.687 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/night#event/START in 71429313ms (at 2025-03-02T19:51:00)                                                            2025-03-02 00:00:30.687 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/morningNight#event/START in -30687ms (at 2025-03-02T00:00:00)                                                       2025-03-02 00:00:30.687 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/morningNight#event/END in 17849313ms (at 2025-03-02T04:58:00)                                                       2025-03-02 00:00:30.687 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/astroDawn#event/START in 17849313ms (at 2025-03-02T04:58:00)                                                        2025-03-02 00:00:30.687 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/astroDawn#event/END in 20429313ms (at 2025-03-02T05:41:00)                                                          2025-03-02 00:00:30.687 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/nauticDawn#event/START in 20429313ms (at 2025-03-02T05:41:00)                                                       2025-03-02 00:00:30.687 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/nauticDawn#event/END in 23009313ms (at 2025-03-02T06:24:00)                                                         2025-03-02 00:00:30.687 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/civilDawn#event/START in 23009313ms (at 2025-03-02T06:24:00)                                                        2025-03-02 00:00:30.687 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/civilDawn#event/END in 25229313ms (at 2025-03-02T07:01:00)                                                          2025-03-02 00:00:30.687 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/astroDusk#event/START in 68849313ms (at 2025-03-02T19:08:00)                                                        2025-03-02 00:00:30.687 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/astroDusk#event/END in 71429313ms (at 2025-03-02T19:51:00)                                                          2025-03-02 00:00:30.687 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/nauticDusk#event/START in 66269313ms (at 2025-03-02T18:25:00)                                                       2025-03-02 00:00:30.687 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/nauticDusk#event/END in 68849313ms (at 2025-03-02T19:08:00)                                                         2025-03-02 00:00:30.687 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/civilDusk#event/START in 64049313ms (at 2025-03-02T17:48:00)                                                        2025-03-02 00:00:30.688 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/civilDusk#event/END in 66269312ms (at 2025-03-02T18:25:00)                                                          2025-03-02 00:00:30.688 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/eveningNight#event/START in 71429312ms (at 2025-03-02T19:51:00)                                                     2025-03-02 00:00:30.688 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/daylight#event/START in 25469312ms (at 2025-03-02T07:05:00)
2025-03-02 00:00:30.688 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/daylight#event/END in 63809312ms (at 2025-03-02T17:44:00)                                                           2025-03-02 00:00:30.688 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Sun phase job astro:sun:local/SUN_RISE in 25229312ms (at 2025-03-02T07:01:00)                                                                 2025-03-02 00:00:30.688 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Sun phase job astro:sun:local/SUN_SET in 63809312ms (at 2025-03-02T17:44:00)
2025-03-02 00:00:30.688 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Sun phase job astro:sun:local/NIGHT in 71429312ms (at 2025-03-02T19:51:00)                                                                    2025-03-02 00:00:30.688 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Sun phase job astro:sun:local/DAYLIGHT in 25469312ms (at 2025-03-02T07:05:00)
2025-03-02 00:00:30.688 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Sun phase job astro:sun:local/ASTRO_DAWN in 17849312ms (at 2025-03-02T04:58:00)                                                               2025-03-02 00:00:30.688 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Sun phase job astro:sun:local/NAUTIC_DAWN in 20429312ms (at 2025-03-02T05:41:00)                                                              2025-03-02 00:00:30.688 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Sun phase job astro:sun:local/CIVIL_DAWN in 23009312ms (at 2025-03-02T06:24:00)                                                               2025-03-02 00:00:30.688 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Sun phase job astro:sun:local/ASTRO_DUSK in 68849312ms (at 2025-03-02T19:08:00)                                                               2025-03-02 00:00:30.688 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Sun phase job astro:sun:local/NAUTIC_DUSK in 66269312ms (at 2025-03-02T18:25:00)                                                              2025-03-02 00:00:30.688 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Sun phase job astro:sun:local/CIVIL_DUSK in 64049312ms (at 2025-03-02T17:48:00)                   

Mvh.

Torkil

The Item trigger would never work as written anyway. An Item linked to one of the State Channels must be a DateTime Item and about ten seconds after midnight (or when OH first starts) the time of that event gets posted as an update to that Item.

This Item will never “updated to START”. It’s either going to be NULL or it’s going to be a DateTime.

If you want to try to trigger this rule using the State Item instead of the Channel Event Trigger, use the “time is Item” rule trigger with that tem.

Note, screen shots are next to useless. When seeking help always click on the code tab and post the code you find there instead of screen shots.

Ok, but this one should trigger?

configuration: {}
triggers:
  - id: "1"
    configuration:
      thingUID: astro:sun:local
      event: START
      channelUID: astro:sun:local:civilDawn#event
    type: core.ChannelEventTrigger
conditions: []
actions:
  - inputs: {}
    id: "2"
    configuration:
      command: OFF
      itemName: sXMASSocket
    type: core.ItemCommandAction
  - inputs: {}
    id: "3"
    configuration:
      command: OFF
      itemName: gXMASSocket2
    type: core.ItemCommandAction
  - inputs: {}
    id: "4"
    configuration:
      command: OFF
      itemName: sXMASSocket3
    type: core.ItemCommandAction
  - inputs: {}
    id: "6"
    configuration:
      blockSource: <xml xmlns="https://developers.google.com/blockly/xml"><block
        type="blocklibrary_pushover_sendHtmlMessage" id="QOwh03;0lKaDzA24f+[d"
        x="437" y="286"><field name="TITLE">openHAB</field><value
        name="MESSAGE"><shadow type="text" id="kul.Rb+tOw~lk@Yh=|q2"><field
        name="TEXT">What's up?</field></shadow><block type="text"
        id="#1X,+:?:M;3OK3+`|!~~"><field name="TEXT">It is now dawn, XMAS lights
        should be turned off</field></block></value><value
        name="ACCOUNT"><shadow type="oh_thing" id="XKe8^;}2e=siAdTHsNab"><field
        name="thingUid">MyThing</field></shadow><block type="oh_thing"
        id="I--De.pHbGi]biR)k^1T"><field
        name="thingUid">pushover:pushover-account:test</field></block></value></block></xml>
      type: application/javascript
      script: |
        var things = Java.type('org.openhab.core.model.script.actions.Things');


        things.getActions(
          'pushover',
          'pushover:pushover-account:test').sendHtmlMessage(
            'It is now dawn, XMAS lights should be turned off',
            'openHAB'
        );
    type: script.ScriptAction
  - inputs: {}
    id: "5"
    configuration:
      command: OFF
      itemName: NightState
    type: core.ItemCommandAction
  - inputs: {}
    id: "7"
    configuration:
      command: OFF
      itemName: sOrangeriLight
    type: core.ItemCommandAction

Yes unless for some reason there wasn’t a civil dawn. Some solar events don’t occur or don’t occur in expected ways if you are too far north. I don’t know if this is one of them or not.

You can try getting rid of the “START” so it triggers on any event. You can log out the triggered event and see if maybe something is going wrong there.

How do I log out the triggered event?

This was scheduled when I restarted openhab this morning:

2025-03-03 07:51:38.542 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/civilDusk#event/START in 35901458ms (at 2025-03-03T17:50:00)

And I have this rule which should then trigger in 20 minutes (EDIT: it didn’t)

configuration: {}
triggers:
  - id: "1"
    configuration:
      thingUID: astro:sun:local
      event: START
      channelUID: astro:sun:local:civilDusk#event
    type: core.ChannelEventTrigger
conditions: []
actions:
  - inputs: {}
    id: "2"
    configuration:
      command: ON
      itemName: sXMASSocket3
    type: core.ItemCommandAction
  - inputs: {}
    id: "3"
    configuration:
      command: ON
      itemName: sXMASSocket2
    type: core.ItemCommandAction
  - inputs: {}
    id: "4"
    configuration:
      command: ON
      itemName: sXMASSocket
    type: core.ItemCommandAction
  - inputs: {}
    id: "6"
    configuration:
      blockSource: <xml xmlns="https://developers.google.com/blockly/xml"><block
        type="blocklibrary_pushover_sendHtmlMessage" id="(1?^a%Q]-}_w@|Frsy5#"
        x="346" y="196"><field name="TITLE">openHAB</field><value
        name="MESSAGE"><shadow type="text" id="$sCD0S#m:Gh!p7tT*?xF"><field
        name="TEXT">What's up?</field></shadow><block type="text"
        id="|V14o)M0PG.Y%^{(mEwg"><field name="TEXT">It is now dusk, XMAS lights
        should be turned on</field></block></value><value name="ACCOUNT"><shadow
        type="oh_thing" id="=G8#XZQ`AAC|QZTT`_O^"><field
        name="thingUid">MyThing</field></shadow><block type="oh_thing"
        id="+ZAn?,M5D/oy`?jYzfoK"><field
        name="thingUid">pushover:pushover-account:test</field></block></value></block></xml>
      type: application/javascript
      script: |
        var things = Java.type('org.openhab.core.model.script.actions.Things');


        things.getActions(
          'pushover',
          'pushover:pushover-account:test').sendHtmlMessage(
            'It is now dusk, XMAS lights should be turned on',
            'openHAB'
        );
    type: script.ScriptAction
  - inputs: {}
    id: "5"
    configuration:
      command: ON
      itemName: NightState
    type: core.ItemCommandAction
  - inputs: {}
    id: "7"
    configuration:
      command: ON
      itemName: sOrangeriLight
    type: core.ItemCommandAction

There should have been a civil dawn this morning:

2025-03-02 00:00:30.687 [DEBUG] [enhab.binding.astro.internal.job.Job] - Scheduled Astro 
...
2025-03-02 00:00:30.687 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/civilDawn#event/START in 23009313ms (at 2025-03-02T06:24:00)
2025-03-02 00:00:30.687 [DEBUG] [o.internal.handler.AstroThingHandler] - Scheduled Event job astro:sun:local/civilDawn#event/END in 25229313ms (at 2025-03-02T07:01:00)
...

image

Thanks, I’ll add that.

But it is unlikely to help much since the event apparently never triggers? I did remove the START condition and still no dice, even though it is scheduled.

I’m not sure where else to go from here. Astro is one of the most used bindings and no one else is reporting problems.

Do all the times you see on the system and the logs and the UI seem to match your timezone?

You can work around the problem by using the Items and time is Item trigger instead of the event trgger.

You can try to file an issue but I’m not sure where the problem lies. The add-on? Core? MainUI?

Yes, that is odd. I am running a container now but all my configuration was born in a VM and is mainly file based so perhaps some mismatch or residue left over is causing the problem.

Yes, I got them all in sync a few days ago, with the java environment variable and whatnot.

Thanks, I guess I’ll look into that instead.

There are now profiles that allow you to link an item to a trigger channel:

You can try using one of those to create a test item and see if the item is getting appropriate updates which might help narrow down where the issue is.

1 Like

I can’t imagine anything related to that that would cause this problem.

Could I perhaps be missing a binding or something else installable to bind it all together? Bindigs had to be reinstalled after I migrated so I could have missed something.

Astro stands alone. It has not dependencies.

Do I need to install something to get those trigger profiles? I only seem to have these:

That channel at the top is not one of the trigger channels, that’s a regular DateTime item channel.

To see the trigger channel profiles you need to select Add Link to Item from one of the channels that specifically says (trigger) after it:

1 Like

Of course, thanks. I think I got it now: