Hello everyone,
Unfortunately, I can’t handle a simple rule that worked for OH 2.5.
if (now.toLocalTime().isAfter(10, 0) && now.toLocalTime().isBefore(10,5))
{
logInfo(“rules”, “OK”)
}
Error:
Script execution of rule with UID ‘ontozorendszer-1’ failed: An error occurred during the script execution: Could not invoke method: java.time.LocalTime.isAfter(java.time.LocalTime) on instance: 15:34:00.583734 in ontozorendszer