Hello,
I'm just getting started with my migration from SmartThings. I was wondering if the timeToday function is available in device drivers. This is failing for me:
def dayStart = timeToday("2000-01-01T06:00:00.000-0000", location.timeZone)
groovy.lang.MissingMethodException: No signature of method: dev15368860074751226698037.timeToday() is applicable for argument types: (java.lang.String, sun.util.calendar.ZoneInfo) values: [2000-01-01T06:00:00.000-0000, sun.util.calendar.ZoneInfo[id="US/Mountain",offset=-25200000,dstSavings=3600000,useDaylight=true,transitions=157,lastRule=java.util.SimpleTimeZone[id=US/Mountain,offset=-25200000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=3,startMonth=2,startDay=8,startDayOfWeek=1,startTime=7200000,startTimeMode=0,endMode=3,endMonth=10,endDay=1,endDayOfWeek=1,endTime=7200000,endTimeMode=0]]] on line 1023 (runSchedule)
Thanks
Mark