Format for time code to add offset to sunrise
Posted: Mon Jan 05, 2009 3:34 pm
Trying to add an offset to sunrise/ sunset and having errors in script.
Thnks in advance
Thnks in advance
Home Automation for the Automation Enthusiast
https://housebot.com/forums/
Code: Select all
Option Explicit
Dim OffsetTime
Dim CloseTime
OffsetTime = GetPropertyValue ("Your Device.Offset Time")
SetPropertyValue "Your Device.Close Time", "SUNSET_DATE_AND_TIME + Days=0, Hours=00, Minutes=" + OffsetTime + ", Seconds=00"