owrtwifi2mqtt icon indicating copy to clipboard operation
owrtwifi2mqtt copied to clipboard

OpenHAB rule not working after persistence reset

Open dersimn opened this issue 6 years ago • 0 comments

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.

dersimn avatar Apr 01 '18 11:04 dersimn