This function returns a string that contains the last X10 command received. If the script containing this function is run as the result of an X10 command received, this function will return the X10 command that caused the trigger.
The returned string has the following format:
Housecode;device;command;extra1;extra2
Housecode is the actual house code the command was seen on, such as "A".
Device is the device the command was addressed to, such as "3".
For many of the X10 interfaces that HomeSeer supports, the "device" value returned will contain the house code and device code, such as "A3" rather than the device only ("3") as is indicated above.
Command is the X10 command number, such as "2" for the X10 command ON.
Extra1 is the dim level for DIM and BRIGHT commands. For preset dim and extended dim commands, extra1 is the actual dim level for the command (0-31 for preset dim, 0-63 for extended dim).
Extra2 is the second data byte received for the X10 extended command.
The X10 command numbers are:
|
0 |
All Units Off |
|
1 |
All Lights On |
|
2 |
On |
|
3 |
Off |
|
4 |
Dim |
|
5 |
Bright |
|
6 |
All Lights Off |
|
7 |
Extended |
|
8 |
Hail Request |
|
9 |
Hail Ack |
|
10 |
Preset Dim |
|
11 |
Ex Data Xfer |
|
12 |
Status On |
|
13 |
Status Off |
|
14 |
Status Request |
|
15 |
Dim to Off |
None.
Return value: X10
command
Type: string
Description: This returns the last
X10 command received.