ph_getdigitalstat PowerHome formula function
Description
Retrieves the current status of a Digital device in the Device Status Screen. This function DOES NOT cause the controller to retrieve the values and only returns what is currently stored within PowerHome.
Syntax
ph_getdigitalstat ( id )
Argument |
Description |
id
|
String.
The ID of the digital device to retrieve the status for.
|
Return value
Integer. Returns 0 if the device is clear.
Returns 1
if the device is set. If PowerHome cant retrieve the status -100 will be returned.
Usage
This function does not cause the controller to query the status. Use ph_getdigital or ph_getotherdigital to have the controller query the status.