Returns the time in minutes since the device status last changed. This can be used to see how long a device has been ON or OFF.
Parameter: device
name
Type: string
Description: This is the name of the device and it must contain both the
location and name. If
the device was named lamp and its location was living room,
then the device
name parameter would be living room lamp.
Return value: time
Type: long
Description: This is the amount of time in minutes since last device status
change.