openhab-core
openhab-core copied to clipboard
Ephemeris doesn't work in Rules until changed
On a fresh install of openHAB (I checked both 4.1.1 and 4.2.0-snapshot), Ephemeris Weekend Days seems to not work for rules until it is updated and saved.
Expected Behavior
The default values for Ephemeris Weekend Days should be honored
Current Behavior
The default values for Ephemeris Weekend Days are not honored
Steps to Reproduce
The following steps reproduce the bug
- Install a fresh openHAB instance. I used docker, similar to the following:
docker run --name=openhab_test --net=host \
-v /etc/localtime:/etc/localtime:ro \
-v /etc/timezone:/etc/timezone:ro \
-e CRYPTO_POLICY=unlimited \
openhab/openhab:4.2.0-snapshot-alpine
- Complete the setup for new instance until you see "Overview Page Not Configured Yet"
- Go to Settings -> Ephemeris, and without changing anything notice that "Weekend Days" is set to "Saturday, Sunday"
- Go to schedule and add a new rule with the +.
- Set the trigger to a fixed time of day
- Set But only if it is a weekday.
- Give it a name and save.
- Check the schedule, and notice it is set to run every day.
The following steps can be used to get things working as expected
- Go to Settings -> Ephemeris
- Click Weekend Days
- Check, then uncheck Friday
- Save
- Go to Schedule, and notice the rule is now set to only run on weekdays.
Your Environment
- Version used: openhab/openhab:4.1.1-alpine and openhab/openhab:4.2.0-snapshot-alpine