Design Pattern: Group Based Persistence

Okay, there’s data for today. Is your rule trying to get data for the same Item?

yes, there are several entries for today and using the query
var Number n_AvgTempDay=myActualTemp.averageSince(now.withTimeAtStartOfDay,"mysql")
shall return the average of today.

Okay, what’s your problem?

I got the problem, there was one Item that did not have a temperature persistent. Now it is working.

Thanks for pointing me to the right direction.

1 Like