Argument |
Description |
s
|
The ID of the controller you wish to send the X10 command to.
|
s
|
A string representing the housecode portion of the X10 command. If you are sending a preset dim command, set this string to “PRESET DIM”
|
n
|
An integer representing the unitcode portion of the X10 command. If you are addressing a specific unitcode, use the unitcode number. If this is a standard command, add 100 to the command. An on command is normally 2 so you would encode it as 102. If this is an extended command, then add 200 to the unitcode. If you were sending an extended command to unit 5, then encode it as 205. If this is a preset dim command, then add 300 to the preset dim level. If you were sending a preset dim command as level 26 then encode it as 326.
|
n
|
The dim/bright or extended command data. If this is an addressing command or a standard command, use a value of 0. If this is a standard dim/bright command (unitcode value of 104 or 105) place a value between 0 and 100 inclusive here as the dim/bright percentage. A value of 30 would cause the level to be changed by 30% from its current level. If this is an extended command (200 added to the unitcode), place the extended data in this field.
|