Error:
Script execution of rule with UID ‘irriggation-6’ failed: Text cannot be parsed to a Duration in irriggation
rule:
var NowMonth = String::format("%02d", now.getMonthValue())
var NowDay = String::format("%02d", now.getDayOfMonth())
val userStartTime = parse(now.getYear() + "-" + NowMonth + "-" + NowDay + "T" + WtrStartTime.state + ":00.000+02:00").withZoneSameInstant(ZoneId.systemDefault())
where WtrStartTime.state is “08:00”
val userStartTime = parse(now.getYear() + "-" + NowMonth + "-" + NowDay + "T" + "08:00:00.000+02:00").withZoneSameInstant(ZoneId.systemDefault())
The same problem don’t know how to solve this