SetDeviceStatusByName

Purpose

Sets the status of a device, whether the device is ON, OFF, or DIMMED.

Parameters

Parameter: devicename
Type: string
Description: This is the name of the device, such as "Living Room Lamp" or "First Floor Kitchen Light".

Parameter: status
Type: integer
Description: This is the status to set the device to.  This integer value should be one of the following:

0 = All Units Off
2 = ON

3 = OFF

4 = DIM

Returns

None.

See Also

SetDeviceStatus