ph_devicecontrol PowerHome formula function
Description
Allows the user to pass a standard Device Control String and have it performed.
Syntax
ph_devicecontrol ( as_control )
Argument |
Description |
as_control
|
String.
A valid Device Control String.
|
Return value
Integer. Returns the result of the Device Control Evaluation.
Usage
See the Device Control Strings produced by
the Device Control String builder for examples on valid strings. You also have
the option of performing multiple device control action but separating the Device Control strings with a '|'
Examples
The following examples demonstrate typical
syntax/usage for this function.
ph_devicecontrol("INSTEON+KITCHENFANLIGHT+ON")
The next example demontrates multiple Device Control strings (3)
to be executed sequentially.
ph_devicecontrol("INSTEON+KITCHENFANLIGHT+ON|INSTEON+FRONTCOACH+ON|X10+HTPC+OFF")