Hi all,
I have a script that's calling hs.DeviceLastChange, but it seems to only return the time as 12:00AM, if I look at the properties of the device it correctly shows the date/time of the last change.
Using the example in the HS Doco below, any idea how to return the correct date/time?
Cheers
I have a script that's calling hs.DeviceLastChange, but it seems to only return the time as 12:00AM, if I look at the properties of the device it correctly shows the date/time of the last change.
Using the example in the HS Doco below, any idea how to return the correct date/time?
Code:
Dim last_change As Date last_change = hs.DeviceLastChange("living room lamp")
Comment