This function returns the current status of the device.
Parameter: device
Type: string
Description: This is the actual device code, such as "A1" or
"q17".
Return value: device
status
Type: integer
Description: The return value is an integer of one of the following:
2
= ON
3 = OFF
4 = DIM
17 = UNKNOWN