I have a rule that brings up an error message when system is started. any idea what goes wrong…seems to work but would love to have as little errors in my log files as possible. Thanks to the experts for a quick check.
2018-04-06 21:58:59.584 [INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model 'tempminmax.rules', using it anyway:
The method toDateMidnight() from the type DateTime is deprecated
The method toDateMidnight() from the type DateTime is deprecated
rule "Update TempOutside Min&Max"
when
Item MyTemp_Outside received update
then
var Number Xtemp
if (MyTemp_Outside.state instanceof DecimalType) {
Xtemp = (MyTemp_Outside.minimumSince(now.toDateMidnight, "rrd4j").state as DecimalType)
Xtemp = (Math::round(Xtemp.floatValue*10.0)/10.0)
postUpdate(MyTempOutMIN, Xtemp)
Xtemp = MyTemp_Outside.maximumSince(now.toDateMidnight, "rrd4j").state as DecimalType
Xtemp = (Math::round(Xtemp.floatValue*10.0)/10.0)
postUpdate(MyTempOutMAX, Xtemp)
}
end