hello,
I am calcualtiing the time for a sunrise animation with this lines:
var int steptime = 1
if (number_durationsunrisesimulationgroup10.state != NULL && number_durationsunrisesimulationgroup10.state != UNDEF){
steptime = (((number_durationsunrisesimulationgroup10.state as DecimalType) * 60)/47).intValue
} else {
steptime = 1
}
logInfo("Sunrise simulation group10 step", steptime.toString())
dimmer_hueonoffgroup10.sendCommand(2)
color_hueonoffgroup3.sendCommand("16,100,4")
createTimer(now.plusSeconds((steptime*1)), [ | group_groundfloor_livingroom_color_light.sendCommand("13,96,10")])
But I get this error:
script execution of rule with UID 'hue-8' failed: An error occurred during the script execution: Could not invoke method: java.time.ZonedDateTime.plusSeconds(long) on instance: 2021-04-19T22:30:55.070172+02:00[Europe/Berlin] in hue
can you help me solve this issue??