something broke in one of the last updates. this used to work previously
7540725e-bb43-46fa-85cb-4ebec74379aa 8:41:43 AM: error java.lang.IllegalArgumentException: Property ‘size’ is not supported for devices @ line 105
if (((intdate >= startDate) && (intdate <= endDate))
&& ((currenttemp > onSetPoint) && (currenttemp < offSetPoint)))
{
// dont do anything if already on
log.debug "in try turn on on outlets = $onOutlets.size() total outlets = $outlets.size()"
if (onOutlets.size() != outlets.size())
{
log.debug "turning outlets On as $sensor.displayName is reporting $currenttemp which is between $onSetPoint and $offSetPoint, and we are within the date range ($startDate - $endDate)!"
mysend(“Turning device(s) On as $sensor.displayName is reporting a temperature of $currenttemp which is between $onSetPoint and $offSetPoint, and we are within the date range ($startDate - $endDate)!”)
outlets.on()
}
else log.debug “Not turning on again, all already on!”
}
it was even in one of your examples… apparently you can no longer get the size of the outlet array
here is an example right from your own documentation which apparently no longer works
http://docs.smartthings.com/en/latest/smartapp-developers-guide/devices.html