Ephemeris bug/not working revisted update of problem. Anyone else seeing this problem?

Edit: It is Sunday today and I saved my original weekend run and now it runs. I think the rule doesn’t pick up the ephemeris changes. Nothing triggers it.
Now both weekend rules are running:
2021-03-07 08:00:00.967 [INFO ] [org.openhab.rule.7da0e3e288 ] - Debug test ran WEEKEND
2021-03-07 09:00:00.869 [INFO ] [org.openhab.rule.01944cd4d1 ] - Debug test ran WEEK DAY
2021-03-07 09:00:00.965 [INFO ] [org.openhab.rule.7da0e3e288 ] - Debug test ran WEEKEND
2021-03-07 09:00:03.788 [INFO ] [org.openhab.rule.d8e122801e ] - Debug test ran WEEKEND

Edit: I have been running 2 rules all week to test the rules running but only if a weekday and if only a weekend. They run every hour and log to the file.

Today is Saturday and the rule that is logging weekdays is still logging. The weekend rule has not run.

Today (Saturday) I copied both rules to 2 new rules. They WORK!

Here is a bit of the logging.
2021-03-06 05:00:00.349 [INFO ] [org.openhab.rule.01944cd4d1 ] - Debug test ran WEEK DAY
2021-03-06 06:00:00.350 [INFO ] [org.openhab.rule.01944cd4d1 ] - Debug test ran WEEK DAY
2021-03-06 07:00:00.351 [INFO ] [org.openhab.rule.01944cd4d1 ] - Debug test ran WEEK DAY
2021-03-06 08:00:00.353 [INFO ] [org.openhab.rule.01944cd4d1 ] - Debug test ran WEEK DAY
2021-03-06 09:00:00.353 [INFO ] [org.openhab.rule.01944cd4d1 ] - Debug test ran WEEK DAY
2021-03-06 09:00:00.817 [INFO ] [org.openhab.rule.7da0e3e288 ] - Debug test ran WEEKEND

Notice the last 2 entries both the same time but one says WEEK DAY and the other says WEEKEND.
Here are the 2 rules I am using

triggers:
  - id: "1"
    configuration:
      cronExpression: 0 0 * * * ? *
    type: timer.GenericCronTrigger
conditions:
  - inputs: {}
    id: "2"
    configuration: {}
    type: ephemeris.WeekdayCondition
actions:
  - inputs: {}
    id: "3"
    configuration:
      type: application/javascript
      script: >
        //More information here:
        https://openhab-scripters.github.io/openhab-helper-libraries/Guides/But%20How%20Do%20I.html


        //need below to log to openhab.log file

        var logger = Java.type('org.slf4j.LoggerFactory').getLogger('org.openhab.rule.' + ctx.ruleUID);



        logger.info('Debug test ran WEEK DAY');
    type: script.ScriptAction

triggers:
  - id: "1"
    configuration:
      cronExpression: 0 0 * * * ? *
    type: timer.GenericCronTrigger
conditions:
  - inputs: {}
    id: "2"
    configuration: {}
    type: ephemeris.WeekendCondition
actions:
  - inputs: {}
    id: "3"
    configuration:
      type: application/javascript
      script: >
        //More information here:
        https://openhab-scripters.github.io/openhab-helper-libraries/Guides/But%20How%20Do%20I.html


        //need below to log to openhab.log file

        var logger = Java.type('org.slf4j.LoggerFactory').getLogger('org.openhab.rule.' + ctx.ruleUID);



        logger.info('Debug test ran WEEKEND');
    type: script.ScriptAction

Is this a bug or am I doing something wrong?

Has anyone else noticed this?

Can someone else run the same rules and see if it happens to them as well?

It could be the ephemeris works but the rule is not picking up the update. I say this because it worked when I copied the rules to a new rule. I also know that if I save the rule again it will will work. I did that last Saturday.

Thanks

Below is the issue I put on the forum a few days ago:
Hi,

What I would like to know is there away to restart the ephemeris system using a rule rather than restarting the whole openhab 3?

I have noticed that the weekend and week day rules get stuck.
I have 2 rules that use the weekend and weekday options.

Today is Tuesday and the weekend rule just ran but the weekday rule didn’t.

I just created 2 rules that will run every hour to log whether the rule that fires is the weekend rule or the week day rule. It ran and logged that the week day rule ran, which is correct but my week day rule that I created weeks ago DID NOT run today but the weekend rule I created weeks ago DID run.

I have put in previous topic on the forum: Ephemeris rule not working on weekends or week days on proxmox after backups

Someone else is seeing the same issue: Bountysource

Thanks

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.