Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ephemeris doesn't work in Rules until changed #4070

Closed
mcclurej06 opened this issue Jan 27, 2024 · 1 comment
Closed

Ephemeris doesn't work in Rules until changed #4070

mcclurej06 opened this issue Jan 27, 2024 · 1 comment
Labels
bug An unexpected problem or unintended behavior of the Core

Comments

@mcclurej06
Copy link

mcclurej06 commented Jan 27, 2024

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

  1. 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
  1. Complete the setup for new instance until you see "Overview Page Not Configured Yet"
  2. Go to Settings -> Ephemeris, and without changing anything notice that "Weekend Days" is set to "Saturday, Sunday"
  3. Go to schedule and add a new rule with the +.
  4. Set the trigger to a fixed time of day
  5. Set But only if it is a weekday.
  6. Give it a name and save.
  7. Check the schedule, and notice it is set to run every day.

The following steps can be used to get things working as expected

  1. Go to Settings -> Ephemeris
  2. Click Weekend Days
  3. Check, then uncheck Friday
  4. Save
  5. 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
@mcclurej06 mcclurej06 added the bug An unexpected problem or unintended behavior of the Core label Jan 27, 2024
@lolodomo
Copy link
Contributor

@openhab/core-maintainers : to be closed. Fixed by #4253

@J-N-K J-N-K closed this as completed May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of the Core
Projects
None yet
Development

No branches or pull requests

3 participants