Edit 2: Someone else has noticed this as well: Bountysource
Edit: I have looked at this problems a bit more and it may be happening because I backup my proxmox server and it takes a snapshot. The proxmox issues a freeze and thaw command to the VM. Maybe it is this that is affecting it? I am running the backup at 2 a.m
I ran a backup this morning (Monday at 2 a.m ) and the weekend rule ran NOT the weekday rule. This is why I am thinking it is something to do with the backup.
Anyone else using proxomx backups and having the same issue?
How can I check the ephemeris status using a javascript rule?
When is the ephemeris reset and how is it reset?
- Platform information:
- Hardware:Dell 210 server. 16GB. proxmox VM 8GB
- OS: Ubuntu 20.04 server
- Java Runtime Environment: openjdk version “11.0.10” 2021-01-19 LTS
OpenJDK Runtime Environment Zulu11.45+27-CA (build 11.0.10+9-LTS)
OpenJDK 64-Bit Server VM Zulu11.45+27-CA (build 11.0.10+9-LTS, mixed mode) - openHAB version: 3.0
I have 2 rules to turn on a fan at different times depending on whether it is a weekend or a week day.
Week days turn on 07:30
Weekends turn on 08:30
I am in the southern hemisphere in case that matters
Today is Saturday and the fan turned on at 07:30. It is supposed to turn on at 08:30. I changed the time of the week day rule to 07:35 to see if it would fire again at 07:35. NO it did not fire as it is a weekend. It looks like if I save it then it works.
Now it is after 08:30 on Saturday and the weekend rule has not worked either. I changed that time of that rule to 08:35 and waited and then it worked! Again, if I save it then it works.
The weekends are set in the settings for SATURDAY and SUNDAY.
The regional settings are correct.
I don’t have /etc/openhab/services/ephermeris.cfg files.
I do have /var/lib/openhab/config/org/openhab/ephemeris.config and it has this in it:
country="au"
dayset-school=( \
"MONDAY", \
"TUESDAY", \
"WEDNESDAY", \
"THURSDAY", \
"FRIDAY", \
)
dayset-weekend=( \
"SATURDAY", \
"SUNDAY", \
)
region="nsw"
service.pid="org.openhab.ephemeris"
The rules look correct (I think);
triggers:
- id: "1"
configuration:
time: 07:35
type: timer.TimeOfDayTrigger
conditions:
- inputs: {}
id: "3"
configuration: {}
type: ephemeris.WeekdayCondition
actions:
- inputs: {}
id: "2"
configuration:
itemName: Subfloorfan_Subfloorfan
command: ON
type: core.ItemCommandAction
triggers:
- id: "1"
configuration:
time: 08:30
type: timer.TimeOfDayTrigger
conditions:
- inputs: {}
id: "3"
configuration: {}
type: ephemeris.WeekendCondition
actions:
- inputs: {}
id: "2"
configuration:
itemName: Subfloorfan_Subfloorfan
command: ON
type: core.ItemCommandAction
There is nothing appearing in the logs.
On Sunday the rules work! Monday the rules work as well. Very strange.
Thanks