Astro binding is not running properly in OH3.4

Hello,

since I updated my system to OH3.4 my rules are not triggered properly. I already opened a topic regarding tis but closed it because I thought it is solved by simply cleaning the cache. See here https://community.openhab.org/t/rules-not-running/142717/8.

Now I see the the same issue again with the Astro binding. The Trigger is set corerectly from the binding as you can see in the events.log:

2023-01-05 13:05:57.868 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome:noon#event triggered START
2023-01-05 13:07:09.080 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome:noon#event triggered END
2023-01-05 14:00:38.778 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_minus180:noon#event triggered START
2023-01-05 14:00:38.780 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_plus180:noon#event triggered START
2023-01-05 14:01:50.419 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_minus180:noon#event triggered END
2023-01-05 14:01:50.423 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_plus180:noon#event triggered END
2023-01-05 16:04:28.903 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:moon:smarthome:rise#event triggered START
2023-01-05 17:57:08.293 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome:daylight#event triggered END
2023-01-05 17:57:08.295 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome:set#event triggered START
2023-01-05 18:01:51.186 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome:set#event triggered END
2023-01-05 18:01:51.189 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome:civilDusk#event triggered START
2023-01-05 18:45:15.560 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome:civilDusk#event triggered END
2023-01-05 18:45:15.564 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome:nauticDusk#event triggered START
2023-01-05 18:51:43.113 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_plus180:set#event triggered START
2023-01-05 18:51:43.115 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_minus180:daylight#event triggered END
2023-01-05 18:51:43.116 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_plus180:daylight#event triggered END
2023-01-05 18:56:25.761 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_plus180:set#event triggered END
2023-01-05 18:56:25.763 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_plus180:civilDusk#event triggered START
2023-01-05 18:56:25.764 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_minus180:civilDusk#event triggered START
2023-01-05 19:32:14.480 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome:astroDusk#event triggered START
2023-01-05 19:32:14.482 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome:nauticDusk#event triggered END
2023-01-05 19:39:53.729 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_plus180:nauticDusk#event triggered START
2023-01-05 19:39:53.730 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_minus180:nauticDusk#event triggered START
2023-01-05 19:39:53.731 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_minus180:civilDusk#event triggered END
2023-01-05 19:39:53.732 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_plus180:civilDusk#event triggered END
2023-01-05 20:16:47.922 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome:astroDusk#event triggered END
2023-01-05 20:16:47.923 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome:night#event triggered START
2023-01-05 20:16:47.925 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome:eveningNight#event triggered START
2023-01-05 20:26:48.085 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_plus180:nauticDusk#event triggered END
2023-01-05 20:26:48.087 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_plus180:astroDusk#event triggered START
2023-01-05 20:26:48.088 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_minus180:nauticDusk#event triggered END
2023-01-05 20:26:48.090 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_minus180:astroDusk#event triggered START
2023-01-05 20:27:59.298 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_minus180:set#event triggered START
2023-01-05 20:27:59.300 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_minus180:set#event triggered END
2023-01-05 21:11:29.177 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_minus180:astroDusk#event triggered END
2023-01-05 21:11:29.178 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_plus180:eveningNight#event triggered START
2023-01-05 21:11:29.179 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_plus180:astroDusk#event triggered END
2023-01-05 21:11:29.181 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_minus180:eveningNight#event triggered START
2023-01-05 21:11:29.182 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_plus180:night#event triggered START
2023-01-05 21:11:29.183 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_minus180:night#event triggered START
2023-01-06 06:51:41.925 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_plus180:morningNight#event triggered END
2023-01-06 06:51:41.927 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_minus180:morningNight#event triggered END
2023-01-06 06:51:41.928 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_plus180:astroDawn#event triggered START
2023-01-06 06:51:41.930 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_minus180:astroDawn#event triggered START
2023-01-06 07:27:41.456 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome:morningNight#event triggered END
2023-01-06 07:27:41.457 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome:astroDawn#event triggered START
2023-01-06 07:37:29.757 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_minus180:nauticDawn#event triggered START
2023-01-06 07:37:29.763 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_plus180:astroDawn#event triggered END
2023-01-06 07:37:29.764 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_plus180:nauticDawn#event triggered START
2023-01-06 07:37:29.764 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_minus180:astroDawn#event triggered END
2023-01-06 08:13:26.895 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome:nauticDawn#event triggered START
2023-01-06 08:13:26.897 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome:astroDawn#event triggered END
2023-01-06 08:24:25.944 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_minus180:nauticDawn#event triggered END
2023-01-06 08:24:25.945 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_plus180:civilDawn#event triggered START
2023-01-06 08:24:25.947 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_plus180:nauticDawn#event triggered END
2023-01-06 08:24:25.948 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_minus180:civilDawn#event triggered START

But my rules are sometimes triggered sometimes not.

Here are my rules

rule "set number_openhaboperatingmodus_dayphase sunrise"
when
    Channel "astro:sun:smarthome:rise#event" triggered START
then
    try
    {
        number_openhaboperatingmodus_dayphase.postUpdate(0)
        logInfo("set number_openhaboperatingmodus_dayphase sunrise", number_openhaboperatingmodus_dayphase.state.toString())
    }
    catch(Throwable T) 
    {
        logError("Error", "Some bad stuff happened in \"set number_openhaboperatingmodus_dayphase sunrise\": " + T.toString)
    }
    finally 
    {
       
    }
end

rule "set number_openhaboperatingmodus_dayphase morning"
when
    Channel "astro:sun:smarthome:rise#event" triggered END
then
    try{
        number_openhaboperatingmodus_dayphase.postUpdate(1)
        logInfo("set number_openhaboperatingmodus_dayphase morning", number_openhaboperatingmodus_dayphase.state.toString())
    }
    catch(Throwable T) 
    {
        logError("Error", "Some bad stuff happened in \"set number_openhaboperatingmodus_dayphase morning\": " + T.toString)
    }
    finally 
    {
       
    }
    
end

rule "set number_openhaboperatingmodus_dayphase day"
when
    Channel "astro:sun:smarthome_plus180:rise#event" triggered START
then
    try{
        number_openhaboperatingmodus_dayphase.postUpdate(2)
        logInfo("set number_openhaboperatingmodus_dayphase day", number_openhaboperatingmodus_dayphase.state.toString())
    }
    catch(Throwable T) 
    {
        logError("Error", "Some bad stuff happened in \"set number_openhaboperatingmodus_dayphase day\": " + T.toString)
    }
    finally 
    {
       
    }
    
end

rule "set number_openhaboperatingmodus_dayphase evening 1"
when
    Channel "astro:sun:smarthome_minus180:set#event" triggered START
then
    try{
        number_openhaboperatingmodus_dayphase.postUpdate(4)
        logInfo("set number_openhaboperatingmodus_dayphase evening 1", number_openhaboperatingmodus_dayphase.state.toString())
    }
    catch(Throwable T) 
    {
        logError("Error", "Some bad stuff happened in \"set number_openhaboperatingmodus_dayphase evening 1\": " + T.toString)
    }
    finally 
    {
       
    }
end

rule "set number_openhaboperatingmodus_dayphase sunset"
when
    Channel "astro:sun:smarthome:set#event" triggered START
then
    try{
        number_openhaboperatingmodus_dayphase.postUpdate(3)
        logInfo("set number_openhaboperatingmodus_dayphase sunset", number_openhaboperatingmodus_dayphase.state.toString())
    }
    catch(Throwable T) 
    {
        logError("Error", "Some bad stuff happened in \"set number_openhaboperatingmodus_dayphase sunset\": " + T.toString)
    }
    finally 
    {
       
    }
end

rule "set number_openhaboperatingmodus_dayphase evening 2"
when
    Channel "astro:sun:smarthome:set#event" triggered END
then
    try{
        number_openhaboperatingmodus_dayphase.postUpdate(4)
        logInfo("set number_openhaboperatingmodus_dayphase evening 2", number_openhaboperatingmodus_dayphase.state.toString())
    }
    catch(Throwable T) 
    {
        logError("Error", "Some bad stuff happened in \"set number_openhaboperatingmodus_dayphase evening2\": " + T.toString)
    }
    finally 
    {
       
    }
end

rule "set number_openhaboperatingmodus_dayphase night"
when
    Channel "astro:sun:smarthome:civilDusk#event" triggered END
then
    try{
        number_openhaboperatingmodus_dayphase.postUpdate(5)
        logInfo("set number_openhaboperatingmodus_dayphase night", number_openhaboperatingmodus_dayphase.state.toString())
    }
    catch(Throwable T) 
    {
        logError("Error", "Some bad stuff happened in \"set number_openhaboperatingmodus_dayphase night\": " + T.toString)
    }
    finally 
    {
       
    }
    
end

And here is the events.log of filtered for number_openhaboperatingmodus_dayphase:

2023-01-05 17:57:08.311 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'number_openhaboperatingmodus_dayphase' changed from 2 to 3
2023-01-05 18:01:51.199 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'number_openhaboperatingmodus_dayphase' changed from 3 to 4
2023-01-05 18:45:15.580 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'number_openhaboperatingmodus_dayphase' changed from 4 to 5
2023-01-05 20:27:59.307 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'number_openhaboperatingmodus_dayphase' changed from 5 to 4

Any help appreciated or hints :slight_smile:

I had a quick look at this and searched for the events that triggered rules in your first events.log. All of the triggers that should run a rule are correctly showing a state change in the second part of the events.log. I didn’t find any other triggering event in the first log that should trigger a state change according to the set of rules you provided.

The Rule

rule "set number_openhaboperatingmodus_dayphase sunrise"

is not triggered and here is my thing description

Thing astro:sun:smarthome  [ geolocation="xx.yyyy,xx.yyyyy", interval=1800 ] {
    Channels:
        Type rangeEvent : rise#event [
            offset=0
        ]
        Type rangeEvent : set#event [
            offset=0
        ]

        Type rangeEvent : civilDusk#event [
            offset=0
        ]
}

I probably misunderstand but the Thing you showed only has rise#event, set#event and civilDusk#event channels, but the eventlog shows a civilDawn#event channel being triggered. And the rules shown in your first post also have no civilDawn#event channel trigger.

this is my complete thing file

Thing astro:sun:smarthome  [ geolocation="xx.yyyyyy,xx.yyyyyy", interval=1800 ] {
    Channels:
        Type rangeEvent : rise#event [
            offset=0
        ]
        Type rangeEvent : set#event [
            offset=0
        ]

        Type rangeEvent : civilDusk#event [
            offset=0
        ]
}


Thing astro:sun:smarthome_plus180  [ geolocation="xx.yyyyyy,xx.yyyyyy", interval=1800 ] {
    Channels:
        Type rangeEvent : rise#event [
            offset = 180,
            earliest = "10:00",
            latest = "10:00"
        ]
        Type rangeEvent : rise#start [
            offset=180,
            earliest = "10:00"
        ]
        Type rangeEvent : rise#end [
            offset=180
        ]
 }

 Thing astro:sun:smarthome_minus180  [ geolocation="xx.yyyyyy,xx.yyyyyy", interval=1800 ] {
    Channels:
        Type rangeEvent : set#event [
            offset=-180,
            earliest = "18:00"
        ]
        Type rangeEvent : set#start [
            offset=-180,
            earliest = "18:00"
        ]
        Type rangeEvent : set#end [
            offset=-180
        ]
}

I checked everything according for

civilDawn#event
/etc/openhab $ sudo grep -r "civilDawn"
[sudo] password for openhabian: 
misc/events.log:2023-01-06 08:24:25.945 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_plus180:civilDawn#event triggered START
misc/events.log:2023-01-06 08:24:25.948 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_minus180:civilDawn#event triggered START

but no

civilDawn

is configured

In the original events log, there is no triggering event corresponding to this rule. So it will obviously not be triggered, unless the original events log with the Astro triggering events is not complete. So if there is a problem, I don’t think it is a rules problem.
I only analyzed the logs in your first post. Every event that corresponds to a trigger in a rule got triggered and resulted in an item state change event. There are no other events in that log that would trigger a rule.

After the comment of CrazyElectron it seems to be a binding issue…

civilDawn#event channel being triggered but I have no channel civilDawn#event configured

Was there ever a civilDawn#event channel created and deleted? Perhaps it is still present in the channel/items json database where OH keeps al its definitions?

No, I am running the rules or astro binding in the same configuration since OH2.1…

But I can look it up…can you help me how to look it up?

I cleaned the cache already several times since I upgraded to OH3.4

It’s not because you did not specifically configure the trigger channels, that they are not there. They will just be there and trigger with default parameters. But no rule takes action on these, so you can safely ignore them being triggered.

I repeat my statement:

astro:sun:smarthome:rise#event is not in the timerange of the event log you provided (I expect this to be in the morning, if at all - certain locations do not have a sunrise at certain times of the year). The triggering event is not there, so there is no rule triggered. Did the log not rotate, so you do not see it anymore?

Log did not rotated…I cleaned the cache today and wait until tomorrow, what is in the log

Hello again :slight_smile:

I logged now 2 days and checked the log

2023-01-08 07:22:32.696 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_minus180:morningNight#event triggered END
2023-01-08 07:22:32.701 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_plus180:astroDawn#event triggered START
2023-01-08 07:22:32.702 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome:astroDawn#event triggered START
2023-01-08 07:22:32.704 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_minus180:astroDawn#event triggered START
2023-01-08 07:22:32.706 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_plus180:morningNight#event triggered END
2023-01-08 07:22:32.707 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome:morningNight#event triggered END
2023-01-08 08:07:05.660 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_minus180:nauticDawn#event triggered START
2023-01-08 08:07:05.663 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome:astroDawn#event triggered END
2023-01-08 08:07:05.664 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_plus180:astroDawn#event triggered END
2023-01-08 08:07:05.666 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_minus180:astroDawn#event triggered END
2023-01-08 08:07:05.667 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome:nauticDawn#event triggered START
2023-01-08 08:07:05.669 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_plus180:nauticDawn#event triggered START
2023-01-08 08:54:05.542 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome:nauticDawn#event triggered END
2023-01-08 08:54:05.545 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_minus180:civilDawn#event triggered START
2023-01-08 08:54:05.546 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_minus180:nauticDawn#event triggered END
2023-01-08 08:54:05.547 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_plus180:civilDawn#event triggered START
2023-01-08 08:54:05.549 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_plus180:nauticDawn#event triggered END
2023-01-08 08:54:05.550 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome:civilDawn#event triggered START
2023-01-08 09:37:31.471 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_plus180:civilDawn#event triggered END
2023-01-08 09:37:31.473 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_minus180:rise#event triggered START
2023-01-08 09:37:31.474 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome:civilDawn#event triggered END
2023-01-08 09:37:31.476 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_minus180:civilDawn#event triggered END
2023-01-08 09:37:31.477 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome:rise#event triggered START
2023-01-08 09:42:10.729 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_plus180:daylight#event triggered START
2023-01-08 09:42:10.731 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome:rise#event triggered END
2023-01-08 09:42:10.734 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_minus180:daylight#event triggered START
2023-01-08 09:42:10.735 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_minus180:rise#event triggered END
2023-01-08 09:42:10.737 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome:daylight#event triggered START
2023-01-08 11:16:06.187 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:moon:smarthome:set#event triggered END
2023-01-08 11:38:25.345 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_plus180:rise#event triggered START
2023-01-08 11:38:25.348 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_plus180:rise#event triggered END
2023-01-08 12:01:54.549 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:moon:smarthome:apogee#event triggered APOGEE
2023-01-08 14:35:40.579 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome:noon#event triggered START
2023-01-08 14:35:40.580 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_plus180:noon#event triggered START
2023-01-08 14:35:40.581 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_minus180:noon#event triggered START
2023-01-08 14:36:51.794 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_plus180:noon#event triggered END
2023-01-08 14:36:51.796 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome:noon#event triggered END
2023-01-08 14:36:51.797 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_minus180:noon#event triggered END

Today the

2023-01-08 09:37:31.477 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome:rise#event triggered START
2023-01-08 09:42:10.731 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome:rise#event triggered END

was triggered but not the set event

I renamed the thread to Astro binding not working…

Sun rise was 8:17 (GMT+1)
sun set was 16:41 (GMT+1)

Again, I restrted my system after installing OH3.4.1 cleaned the cache but no astro event was triggered

2023-01-09 15:52:52.900 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'astro:sun:smarthome' changed from UNINITIALIZED to INITIALIZING
2023-01-09 15:52:53.000 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'astro:sun:smarthome' changed from INITIALIZING to ONLINE
2023-01-09 15:52:53.945 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'astro:sun:smarthome_plus180' changed from UNINITIALIZED to INITIALIZING
2023-01-09 15:52:53.983 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'astro:sun:smarthome_plus180' changed from INITIALIZING to ONLINE
2023-01-09 15:52:54.392 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'astro:sun:smarthome_minus180' changed from UNINITIALIZED to INITIALIZING
2023-01-09 15:52:54.440 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'astro:sun:smarthome_minus180' changed from INITIALIZING to ONLINE
2023-01-09 15:52:54.784 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'astro:moon:smarthome' changed from UNINITIALIZED to INITIALIZING
2023-01-09 15:52:54.829 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'astro:moon:smarthome' changed from INITIALIZING to ONLINE

Sunset today 16:43 (GMT+1)

This is not what you want to hear, but you need to find the problem in your setup/configuration.
Below a log from the set#event for today, openHAB 3.4 Stable/Release version:

2023-01-09 16:28:00.001 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:wss3:set#event triggered START
2023-01-09 16:33:00.001 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:wss3:set#event triggered END
2023-01-09 16:53:00.001 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:shutterliving:set#event triggered START
2023-01-09 16:58:00.001 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:shutterkitchen:set#event triggered START
2023-01-09 16:58:00.001 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:shutterliving:set#event triggered END
2023-01-09 17:03:00.001 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:shutterkitchen:set#event triggered END

Hello @sihui I am happy to hear this and I confirm also this running;

2023-01-10 09:29:51.703 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_minus180:rise#event triggered START
2023-01-10 09:29:51.704 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome:rise#event triggered START
2023-01-10 09:34:34.218 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome:rise#event triggered END
2023-01-10 09:34:34.221 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_minus180:rise#event triggered END
2023-01-10 11:31:57.679 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_plus180:rise#event triggered END
2023-01-10 11:31:57.680 [INFO ] [openhab.event.ChannelTriggeredEvent ] - astro:sun:smarthome_plus180:rise#event triggered START

But when I design the widget and stuff sometimes the browser or openhab is unresponsive and than the bindings not running anymore. Than I need to do a clean-cache and restart openhabian 2-3 times and everything is running smooth again. Maybe you can confirm this?

A clean-cache shouldn’t be a regular operation. It will force openHAB to download all the java .jar files again. That’s why a new start takes long, and it may require multiple restarts because the first starts didn’t finish the downloads before things trying to go online time out.
Try analyzing the logs when OH is not responsive anymore. What are the things that happened just before that? Any timeouts in the log?
Look at system load. You could use the systeminfo binding for that. Does it peak CPU usage? Heap usage?
I think what you see is only a symptom, not the root cause of your problem. What hardware do you use? What OS?

I am using raspian OS with a raspberry pi 4B 8GB RAM and a SSD attached

No, sorry I can’t. Astro binding is working without any need to clean the cache or restarting openHAB.
It seems to be something wrong with your Astro binding config (or even openHAB config as your are talking about ALL bindings being unresponsive).

1 Like