ph_setdevicefilter PowerHome formula function
Description
Sets the filter for the Device Status Screen.
Syntax
ph_setdevicefilter ( filter )
Argument Description
filter Filter expression to apply to the Device Status Screen
Return value
Integer. Returns 1 if the filter succeeds. - 1 is returned if the filter fails.
Usage
Use the ph_setdevicefilter formula to programatically limit the amount of rows displayed on the Device Status Screen.

The filter expression consists of columns, relational operators, and values against which column values are compared. Boolean expressions can be connected with logical operators AND and OR. You can also use NOT, the negation operator. Use parentheses to control the order of evaluation.

Sample Filters:
location = 'LIVING ROOM'
type = 0 and id like 'E%'