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

OpenHAB rule not working after persistence reset #10

Open
dersimn opened this issue Apr 1, 2018 · 0 comments
Open

OpenHAB rule not working after persistence reset #10

dersimn opened this issue Apr 1, 2018 · 0 comments

Comments

@dersimn
Copy link
Owner

dersimn commented Apr 1, 2018

Due to current implementation of this line in wifi_detection.rules, persistence detection is not working under the following circumstances:

  • When Persistence of the items Person_X_Wifi_LastSeen_Seconds is not set to restore on startup and one or more people are not at home when OpenHAB is started
  • Persistence cache got wiped while one or more people were not at home.

Log will show the error: Error during the execution of rule Wifi Detection: java.lang.Number. This is because line throws an error if Person_X_Wifi_LastSeen_Seconds is undefined (for e.g. after a restart or wipe of persistence cache) the remaining rule functions are not executed and the wifi detection can't work properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant