Support / Guides / Network

Email and networking substitution variables

Note

In case of email customized content, Both the Subject and the Body' must be non empty otherwise, emails shall not be sent!

Substitution Variables

  • Custom Email definitions are available in the Admin Console by going to the Configuration / Emails/Notifications / Customizations tab
  • Substitution variables are available inside custom email definitions in the form ${}.
  • Substitutions can be manually made in the body, URL or header of Network Resources from version 4.3.26. If you included them in the URL then you cannot use the 'Encode URL' option
  • In most cases, these variables use the ID of the element being referenced
    • For example ${sys.node.11 22 AA 1.name} would use the name of the device node whose address is 11 22 AA 1
    • Instead of specifying a fixed address, the special character # may be used to reference the element in the event that caused the program to run. (Does not work in network resources)
      • For example, if a status event for node 11 22 AA 1 caused a program to run, then ${sys.node.#.name} would use 11 22 AA 1 as the address.
      • If a variable has more than one ID then any combination of fixed addresses and # is valid. For example, the following are all valid
        • ${elk.keypad.1.key.1.led} -- Show LED status of F1 Key on Keypad 1
        • ${elk.keypad.#.key.#.led} -- Show LED status of event Key on event Keypad
        • ${elk.keypad.#.key.3.led} -- Show LED status of F3 Key on event Keypad
        • ${elk.keypad.1.key.#.led} -- Show LED status of event Key on Keypad 1
    • User defined Integer and State variables are referenced with their type (1-Integer, 2-State) and ID Number for example: ${var.2.3} for the state variable with ID # 3

Formatting Tags

(available in Polisy 5.4.1)

An optional tag may be appended to the variable name indicating how the resulting text should be formatted.

Tag Name Example Type Description
:url ${sys.node.#.name:url} URL encoded e.g. "Hello World" becomes "Hello%20World"
:std ${sys.node.#.name:std} Standard formatting Formats with no conversion
no tag ${sys.node.#.name} Default formatting Currently the same as :std

Note: If you are using a Formatting Tag then it is always apecified at the end. e.g. ${sys.node.#.ST.raw:url}

System Variables

Value Name Description
${sys.date} Date
${sys.time} Time
${sys.time24} Time (24 hour)
${sys.time12} Time (am/pm)
${sys.sunrise} Sunrise
${sys.sunrise12} Sunrise (am/pm)
${sys.sunrise24} Sunrise (24 hour)
${sys.sunset} Sunset
${sys.sunset12} Sunset (am/pm)
${sys.sunset24} Sunset (24 hour)

User Variables

Value Name Description
${var..} Type 1 = Integer, Type 2 = State

Device Variables and Properties

Many properties are subject to device capability You can obtain all available properties for a specific node via the REST API at /rest/nodes/

A formatted representation of a value is normally used when substituting a device status variable (e.g. "100%" for a dimmer), but there is an option to choose a different form of the value by adding an extension to the name.

Extension Example Type Description
.raw ${sys.node.#.ST.raw} Raw Value Shows the raw value rather than the formatted value e.g. for an Insteon dimmer status show "255" instead of "100%"
.uom.id ${sys.node.#.ST.uom.id} Unit of Measure Shows the numeric unit of measure of the raw value rather than the value itself e.g. for the current temperature show "17" (fahrenheit)
not specified ${sys.node.#.ST} Default formatting Shows the formatted value e.g. for an Insteon dimmer status show "100%" instead of "255"
Variable Example Description
sys.node.
.name
sys.node.11 22 AA 1.name Name of the device node
sys.node.
.addr
sys.node.#.addr Address of the device node
sys.node.
.ADRPST
sys.node.11 22 AA 1.ADRPST Auto DR Processing State
sys.node.
.AIRFLOW
sys.node.11 22 AA 1.AIRFLOW Air Flow
sys.node.
.ALARM
sys.node.11 22 AA 1.ALARM An alarm occurred
sys.node.
.ANGLPOS
sys.node.11 22 AA 1.ANGLPOS Angle Position
sys.node.
.ATMPRES
sys.node.11 22 AA 1.ATMPRES Atmospheric Pressure
sys.node.
.AWAKE
sys.node.11 22 AA 1.AWAKE Awake
sys.node.
.BARPRES
sys.node.11 22 AA 1.BARPRES Barometric Pressure
sys.node.
.BATLVL
sys.node.11 22 AA 1.BATLVL Battery level
sys.node.
.BEEP
sys.node.11 22 AA 1.BEEP Beep
sys.node.
.BMAN
sys.node.11 22 AA 1.BMAN Deprecated - Use FDUP or FDDOWN
sys.node.
.BRT
sys.node.11 22 AA 1.BRT Brighten
sys.node.
.BUSY
sys.node.11 22 AA 1.BUSY Device is Busy
sys.node.
.CC
sys.node.11 22 AA 1.CC Current Current
sys.node.
.CLIEMD
sys.node.11 22 AA 1.CLIEMD Energy Mode
sys.node.
.CLIFRS
sys.node.11 22 AA 1.CLIFRS Fan Running State
sys.node.
.CLIFS
sys.node.11 22 AA 1.CLIFS Fan Setting
sys.node.
.CLIFSO
sys.node.11 22 AA 1.CLIFSO Fan Setting Override
sys.node.
.CLIHCS
sys.node.11 22 AA 1.CLIHCS Heat/Cool State
sys.node.
.CLIHUM
sys.node.11 22 AA 1.CLIHUM Humidity
sys.node.
.CLIMD
sys.node.11 22 AA 1.CLIMD Thermostat Mode
sys.node.
.CLISMD
sys.node.11 22 AA 1.CLISMD Schedule Mode
sys.node.
.CLISPC
sys.node.11 22 AA 1.CLISPC Cool Setpoint
sys.node.
.CLISPH
sys.node.11 22 AA 1.CLISPH Heat Setpoint
sys.node.
.CLITEMP
sys.node.11 22 AA 1.CLITEMP Current Temperature
sys.node.
.CO2LVL
sys.node.11 22 AA 1.CO2LVL CO2 Level
sys.node.
.CPW
sys.node.11 22 AA 1.CPW Current Power Used
sys.node.
.CTL
sys.node.11 22 AA 1.CTL Controller Action
sys.node.
.CV
sys.node.11 22 AA 1.CV Current Voltage
sys.node.
.DELAY
sys.node.11 22 AA 1.DELAY Delay
sys.node.
.DEWPT
sys.node.11 22 AA 1.DEWPT Dew Point
sys.node.
.DFOF
sys.node.11 22 AA 1.DFOF Fast Off
sys.node.
.DFON
sys.node.11 22 AA 1.DFON Fast On
sys.node.
.DIM
sys.node.11 22 AA 1.DIM Dim
sys.node.
.DISTANC
sys.node.11 22 AA 1.DISTANC Distance
sys.node.
.DOF
sys.node.11 22 AA 1.DOF Off
sys.node.
.DOF3
sys.node.11 22 AA 1.DOF3 Off 3 Key Presses
sys.node.
.DOF4
sys.node.11 22 AA 1.DOF4 Off 4 Key Presses
sys.node.
.DOF5
sys.node.11 22 AA 1.DOF5 Off 5 Key Presses
sys.node.
.DON
sys.node.11 22 AA 1.DON On
sys.node.
.DON3
sys.node.11 22 AA 1.DON3 On 3 Key Presses
sys.node.
.DON4
sys.node.11 22 AA 1.DON4 On 4 Key Presses
sys.node.
.DON5
sys.node.11 22 AA 1.DON5 On 5 Key Presses
sys.node.
.DUR
sys.node.11 22 AA 1.DUR Duration
sys.node.
.ELECCON
sys.node.11 22 AA 1.ELECCON Electrical Conductivity
sys.node.
.ELECRES
sys.node.11 22 AA 1.ELECRES Electrical Resistivity
sys.node.
.ERR
sys.node.11 22 AA 1.ERR Error
sys.node.
.FDDOWN
sys.node.11 22 AA 1.FDDOWN Fade Down
sys.node.
.FDSTOP
sys.node.11 22 AA 1.FDSTOP Fade Stop
sys.node.
.FDUP
sys.node.11 22 AA 1.FDUP Fade Up
sys.node.
.GPV
sys.node.11 22 AA 1.GPV General Purpose Value
sys.node.
.GVOL
sys.node.11 22 AA 1.GVOL Water Volume
sys.node.
.HAIL
sys.node.11 22 AA 1.HAIL Hail
sys.node.
.LUMIN
sys.node.11 22 AA 1.LUMIN Luminance
sys.node.
.MODE
sys.node.11 22 AA 1.MODE Mode
sys.node.
.MOIST
sys.node.11 22 AA 1.MOIST Moisture
sys.node.
.OL
sys.node.11 22 AA 1.OL On Level
sys.node.
.PF
sys.node.11 22 AA 1.PF Power Factor
sys.node.
.PPW
sys.node.11 22 AA 1.PPW Polarized Power Used
sys.node.
.PULSCNT
sys.node.11 22 AA 1.PULSCNT Pulse Count
sys.node.
.QUERY
sys.node.11 22 AA 1.QUERY Query Device
sys.node.
.RAINRT
sys.node.11 22 AA 1.RAINRT Rain Rate
sys.node.
.RESET
sys.node.11 22 AA 1.RESET Reset values
sys.node.
.ROTATE
sys.node.11 22 AA 1.ROTATE Rotation
sys.node.
.RR
sys.node.11 22 AA 1.RR Ramp Rate
sys.node.
.SECMD
sys.node.11 22 AA 1.SECMD Device secure mode
sys.node.
.SEISINT
sys.node.11 22 AA 1.SEISINT Seismic Intensity
sys.node.
.SEISMAG
sys.node.11 22 AA 1.SEISMAG Seismic Magnitude
sys.node.
.SMAN
sys.node.11 22 AA 1.SMAN Deprecated - Use FDSTOP
sys.node.
.SOILT
sys.node.11 22 AA 1.SOILT Soil Temperature
sys.node.
.SOLRAD
sys.node.11 22 AA 1.SOLRAD Solar Radiation
sys.node.
.SPEED
sys.node.11 22 AA 1.SPEED Velocity
sys.node.
.ST
sys.node.11 22 AA 1.ST Status
sys.node.
.SVOL
sys.node.11 22 AA 1.SVOL Sound Volume
sys.node.
.TANKCAP
sys.node.11 22 AA 1.TANKCAP Tank Capacity
sys.node.
.TIDELVL
sys.node.11 22 AA 1.TIDELVL Tide Level
sys.node.
.TIMEREM
sys.node.11 22 AA 1.TIMEREM Time remaining
sys.node.
.TPW
sys.node.11 22 AA 1.TPW Total Energy Used
sys.node.
.UAC
sys.node.11 22 AA 1.UAC Valid user access code entered
sys.node.
.UOM
sys.node.11 22 AA 1.UOM Unit
sys.node.
.USRNUM
sys.node.11 22 AA 1.USRNUM User access code
sys.node.
.UV
sys.node.11 22 AA 1.UV Ultraviolet
sys.node.
.VOCLVL
sys.node.11 22 AA 1.VOCLVL Volatile Organic Compound (VOC) level
sys.node.
.WATERT
sys.node.11 22 AA 1.WATERT Water Temperature
sys.node.
.WEIGHT
sys.node.11 22 AA 1.WEIGHT Weight
sys.node.
.WINDDIR
sys.node.11 22 AA 1.WINDDIR Wind Direction
sys.node.
.WVOL
sys.node.11 22 AA 1.WVOL Water Volume
sys.node.
.GV0
sys.node.11 22 AA 1.GV0 Custom Control 0
sys.node.
.GV1
sys.node.11 22 AA 1.GV1 Custom Control 1
sys.node.
.GV2
sys.node.11 22 AA 1.GV2 Custom Control 2
sys.node.
.GV3
sys.node.11 22 AA 1.GV3 Custom Control 3
sys.node.
.GV4
sys.node.11 22 AA 1.GV4 Custom Control 4
sys.node.
.GV5
sys.node.11 22 AA 1.GV5 Custom Control 5
sys.node.
.GV6
sys.node.11 22 AA 1.GV6 Custom Control 6
sys.node.
.GV7
sys.node.11 22 AA 1.GV7 Custom Control 7
sys.node.
.GV8
sys.node.11 22 AA 1.GV8 Custom Control 8
sys.node.
.GV9
sys.node.11 22 AA 1.GV9 Custom Control 9
sys.node.
.GV10
sys.node.11 22 AA 1.GV10 Custom Control 10
sys.node.
.GV11
sys.node.11 22 AA 1.GV11 Custom Control 11
sys.node.
.GV12
sys.node.11 22 AA 1.GV12 Custom Control 12
sys.node.
.GV13
sys.node.11 22 AA 1.GV13 Custom Control 13
sys.node.
.GV14
sys.node.11 22 AA 1.GV14 Custom Control 14
sys.node.
.GV15
sys.node.11 22 AA 1.GV15 Custom Control 15
sys.node.
.GV16
sys.node.11 22 AA 1.GV16 Custom Control 16
sys.node.
.GV17
sys.node.11 22 AA 1.GV17 Custom Control 17
sys.node.
.GV18
sys.node.11 22 AA 1.GV18 Custom Control 18
sys.node.
.GV19
sys.node.11 22 AA 1.GV19 Custom Control 19
sys.node.
.GV20
sys.node.11 22 AA 1.GV20 Custom Control 20

Elk Variables

Variable Example Description
elk.area..name elk.area.1.name Name of the Area
elk.area..armedState elk.area.1.armedState Area Armed State
elk.area..armUpState elk.area.1.armUpState Area Arm Up State
elk.area..alarmState elk.area.1.alarmState Area Alarm Status
elk.area..bypassState elk.area.1.bypassState Area Bypass State
elk.zone..name elk.zone.1.name Name of the zone
elk.zone..alarmDef elk.zone.1.alarmDef Zone Alarm definition
elk.zone..voltage elk.zone.1.voltage Zone voltage
elk.zone..status elk.zone.1.status Zone status
elk.zone..pstatus elk.zone.1.pstatus Zone physical status
elk.zone..bypassState elk.zone.1.bypassState Zone bypass state
elk.zone..temp elk.zone.1.temp Zone temperature
elk.output..name elk.output.1.name Output name
elk.output..status elk.output.1.status Output status
elk.tstat..name elk.tstat.1.name Thermostat name
elk.tstat..ST elk.tstat.1.ST Thermostat temperature
elk.tstat..CLIMD elk.tstat.1.CLIMD Thermostat mode
elk.tstat..CLIFS elk.tstat.1.CLIFS Thermostat fan state
elk.tstat..CLISPH elk.tstat.1.CLISPH Thermostat heat setpoint
elk.tstat..CLISPC elk.tstat.1.CLISPC Thermostat cool setpoint
elk.tstat..CLIHOLD elk.tstat.1.CLIHOLD Thermostat temperature hold
elk.keypad..name elk.keypad.1.name Keypad name
elk.keypad..temp elk.keypad.1.temp Keypad temperature
elk.keypad..key..led elk.keypad.1.key.2.led Key LED state

Weather Variables

Variable Example Comments
Temperature: ${mod.weather.temp.current} Current Temperature
High Temperature: ${mod.weather.temp.high} Highest reached today
Low Temperature: ${mod.weather.temp.low} Lowest reached today
Feels Like: ${mod.weather.temp.feelslike} Current temperature but factors in wind chill and humidity.
Average Temperature: ${mod.weather.temp.avg} Avg temp from Midnight till now
Humidity: ${mod.weather.humidity} Current Humidity
Pressure: ${mod.weather.pressure} Current Pressure
Dew Point: ${mod.weather.dewpoint} Current Dew Point
Wind Speed: ${mod.weather.wind.speed} Current Wind Speed
Wind Direction: ${mod.weather.wind.direction} Current Wind Direction
Wind Gust Speed: ${mod.weather.gust.speed} Current Wind Gust Speed
Gust Wind Direction: ${mod.weather.gust.direction} Current Gust Direction
Light: ${mod.weather.light.level} Current Light Level
Total Rain Today: ${mod.weather.rain.today} Rain so far today.
Elevation: ${mod.weather.elevation} Elevation at Weather Station
Coverage: ${mod.weather.coverage} Defines things such as areas, chances, etc. See key below.
Intensity: ${mod.weather.intensity} Defines things such as light, heavy, etc See key below.
Condition: ${mod.weather.condition} Defines things such as Hail, rain, showers, etc. See key below.
Cloud Condition: ${mod.weather.cloud.condition} Defines things such as clear, sunny, cloudy, etc. See key below.
24Hr High Temperature: ${mod.weather.temp.hi.24h} Forecast high temperature next 24 hours.
24Hr Low Temperature: ${mod.weather.temp.low.24h} Forecast low temperature next 24 hours.
24Hr Average Temperature: ${mod.weather.temp.avg.24h} Forecast average temperature next 24 hours.
24Hr Humidity: ${mod.weather.humidity.24h} Forecast humidity next 24 hours.
24Hr Rain: ${mod.weather.rain.24h} Forecast rainfall next 24 hours.
24Hr Snow: ${mod.weather.snow.24h} Forecast snowfall next 24 hours.
24 Hr Coverage: ${mod.weather.coverage.24h} Forecast coverage next 24 hours. See key below.
24Hr Intensity: ${mod.weather.intensity.24h} Forecast intensity next 24 hours. See key below.
24Hr Condition: ${mod.weather.condition.24h} Forecast condition next 24 hours. See key below.
24Hr Cloud Condition: ${mod.weather.cloud.condition.24h} Forecast cloud cover next 24 hours. See key below.
Avg Temperature Tomorrow: ${mod.weather.temp.avg.tomorrow} Forecast average temperature tomorrow.
High Temperature Tomorrow: ${mod.weather.temp.hi.tomorrow} Forecast high temperature tomorrow.
Low Temperature Tomorrow: ${mod.weather.temp.low.tomorrow} Forecast low temperature tomorrow.
Humidity Tomorrow: ${mod.weather.humidity.tomorrow} Forecast humidity tomorrow.
Wind Speed Tomorrow: ${mod.weather.wind.speed.tomorrow} Forecast wind speed tomorrow.
Wind Gust Speed Tomorrow: ${mod.weather.gust.speed.tomorrow} Forecast wind gust tomorrow.
Rain Tomorrow: ${mod.weather.rain.tomorrow} Forecast rainfall tomorrow.
Snow Tomorrow: ${mod.weather.snow.tomorrow} Forecast snowfall tomorrow.
Coverage Tomorrow: ${mod.weather.coverage.tomorrow} Forecast coverage tomorrow. See key below.
Intensity Tomorrow: ${mod.weather.intensity.tomorrow} Forecast intensity tomorrow. See key below.
Condition Tomorrow: ${mod.weather.condition.tomorrow} Forecast condition tomorrow. See key below.
Cloud Condition Tomorrow: ${mod.weather.cloud.condition.tomorrow} Forecast cloud cover tomorrow. See key below.

Climate Data Key

Climate Coverage defines things such as areas, chances, etc.

  • Value 1 - Areas of
  • Value 2 - Brief
  • Value 3 - Chance of
  • Value 4 - Definite
  • Value 5 - Frequent
  • Value 6 - Intermittent
  • Value 7 - Isolated
  • Value 8 - Likely
  • Value 9 - Numerous
  • Value 10 - Occasional
  • Value 11 - Patchy
  • Value 12 - Periods of
  • Value 13 - Slight chance
  • Value 14 - Scattered
  • Value 15 - In the vicinity / Nearby
  • Value 16 - Widespread

Climate Intensity defines things such as light, heavy, etc.

  • Value 1 - Very light
  • Value 2 - Light
  • Value 3 - Heavy
  • Value 4 - Very heavy

Climate Weather Condition defines things such as Hail, rain, showers, etc.

  • Value 1 - Hail
  • Value 2 - Blowing dust
  • Value 3 - Blowing sand
  • Value 4 - Mist
  • Value 5 - Blowing snow
  • Value 6 - Fog
  • Value 7 - Frost
  • Value 8 - Haze
  • Value 9 - Ice Crystals
  • Value 10 - Ice fog
  • Value 11 - Ice pellets / sleet
  • Value 12 - Smoke
  • Value 13 - Drizzle
  • Value 14 - Rain
  • Value 15 - Rain showers
  • Value 16 - Rain/snow mix
  • Value 17 - Snow/sleet mix
  • Value 18 - Wintry mix
  • Value 19 - Snow
  • Value 20 - Snow showers
  • Value 21 - Thunderstorms
  • Value 22 - Unknown Precipitation (May Occur in an automated observation station, which cannot determine the precip type falling.)
  • Value 23 - Volcanic ash
  • Value 24 - Water spouts
  • Value 25 - Freezing fog
  • Value 26 - Freezing drizzle
  • Value 27 - Freezing rain
  • Value 28 - Freezing spray

Climate Cloud Condition defines things such as clear, sunny, cloudy, etc.

  • Value 1 - Clear - Cloud coverage is 0-7% of the sky.
  • Value 2 - Fair/mostly sunny - Cloud coverage is 7-32% of the sky.
  • Value 3 - Partly cloudy - Cloud coverage is 32-70% of the sky.
  • Value 4 - Mostly cloudy - Cloud coverage is 70-95% of the sky.
  • Value 5 - Cloudy