Owner's Manual (Complete)

Chapter 11 - Expressions
The Home Control Assistant
17
_TempDecode(15, 2) = 70
The 1
st
argument is the unit code given as a number from 11 to 16 corresponding to UC 11 to
UC 16. The 2
nd
argument is the preset dim level between 0 and 31, inclusive.
Magic Module
These elements are useful only when a Elk Products Magic Module is one of the selected hardware
interfaces. See the Magic Module appendix for information on this.
number = _MMRelay ("name", relayNumber)
Looks up the "name" in the MM Inventory to determine a Magic Module address. Then
retrieves the status of the numbered relay on that board. The relays are numbered 1 to 4. The
return value is: 0 = Off, 1 = On
number = _MMInput ("name", inputNumber)
Looks up the "name" in the MM Inventory to determine a Magic Module address. Then
retrieves the value of the numbered input on that board. The inputs are numbered 1 to 4. The
return value is a number from 0 to 255.
number = _MMTemperature ("name")
Looks up the "name" in the MM Inventory to determine a Magic Module address. Then
retrieves the value of the attached temperature sensor. The number returned is in degrees
Celsius.
bool = _MMCaddxFlag (flagNumber)
Retrieves the value of the numbered flag from the ML8 interface. The flags are numbered
from 1 to 240. Values returned are yes or no.
Weather
The weather functions are useful only if you have set up a weather provider using the weather
provider setup dialog. See the weather appendix for information on this.
The _Weather function allows you to access all data in a weather observation. For observation
data that have units temperatures for example - the values returned are in the units selected in the
weather provider setup dialog. The _Weather function format is:
value = _weather (name)
The "name" is the name of data from the weather observation. Since the names change as more
weather providers are supported and as those providers change, the documentation of those names
is on the HCA web site in the weather technical note.
Hint: The support web site is at www.HCATech.com. Look for the technical notes link on the
main page.
In addition to the _weather function, other functions compute their results by examining data in the
historical weather log files. If you don't have a log file setup in the weather setup dialog none of
these functions work.