Owner's Manual (Complete)
Chapter 11 - Expressions
14 The Home Control Assistant
String = _Trigger ()
Returns a string which represents the trigger that started the program.
NOTE: If not used in the context of a program, for example in an expression used in a Status
Export it returns ""
The first character of the string is the kind of trigger. These are:
X = X10
M = Magic Module
W = Weather
F = Flag
S = Special
E = Expression
I = Wireless
M, W, F, S, and E triggers are not defined in HCA 5
The X triggers are: XHUCCMDXLV
X: Always start with 'X'
H: One character House Code 'A' .. 'P'
UC: Two characters of unit code '01' .. '16'
CMDX: 4 characters of command. Right padded with blanks to get 4 characters
"ON "
"OFF "
"DIM "
"BRT "
"AUF "
"ALO "
"ALF "
"HRQ "
"HRPL"
"PDIM"
"SON "
"SOFF"
"SREQ"
LV: 2 characters of preset dim level '00' .. '31'
If any section doesn't apply it is left blank. So a status request trigger to housecode G would
look like (blanks shown as '-' for clarity)
XG--SREQ--
The I triggers are: IIDXMMMMM
I: Always start with 'I'
IDX = the id in the range 1-255
MMMMM: 5 characters of message. Right padded with blanks to get 5 characters
AAMIN
AAMAX
AHMIN
AHMAX