ph_insteonraw PowerHome formula function
Description
Send a standard length Insteon command.
Syntax
ph_insteonraw ( ctlr, address, cmd1, cmd2 )
Argument |
Description |
ctlr
|
String. The ID of the controller from which to send Insteon commands.
|
address
|
String. The Insteon address of the device you wish to send commands to.
|
cmd1
|
Integer. The command 1 value.
|
cmd2
|
Integer. The command 2 value.
|
Return value
Integer. Returns a 0 if successful. -1 is returned if the controller is not available, -2 is returned if the controller does not support Insteon.
Usage
Use this funciton to send Insteon commands directly to a single device. Valid commands are 17 for on, 18 for fast on, 19 for off, 20 for fast off, 21 to brighten, 22 to dim, and 25 for status. You can also use the enumerated values: ion, ifaston, ioff, ifastoff, ibright, idim, istatus. Set cmd2 to 0 for all cmd1 values except on (17). When sending an "on" command, set the cmd2 value to an integer between 0 and 255 for the level to go to.