Query
The Query user menu is managed in this screen.

You create a type of "monitoring structure" under this heading. Query means more or less the same as "request".
You can therefore monitor certain states within the areas controlled by the HomeServer and show summaries of these or change them in the HTML or WAP view.
All items of the menu are available for constructing this monitoring structure.
There is additionally a special query page.
The states ("conditions") are gathered together in a hierarchical menu.
This summary is always made at the next highest level, the query page.
The menu tree can be constructed depending on the monitoring conditions.

"Opened windows" is an example of a state.
If, for instance, you want to see if one of many windows is opened at the top menu level.
If one of the conditions is met (e.g. "a window" is opened) then the menu button "Query/Requests" changes its icon in the navigation bar. You can then simply scroll through the menu to find the "open" window or to close it. Every appropriate branch of the menu has a corresponding icon when the condition is met.

Example Opened window:

You want to request how many windows are open on each level of a house that is controlled by the HomeServer.
If you now create a query page called "Window monitoring" under "Query", you can then assign sub-folders to this query page such as "cellar", "ground floor", "upper floor" etc. You can then assign, for instance, the menu items with the windows monitored on the respective floor, to these sub-folders .
If you have also stored the appropriate data for the single areas within the structure, you can then show information in the HTML or WAP view such as, "Ground floor: 4 windows are open!", if some of the monitored windows are open. You can proceed in exactly the same way with other objects to be monitored such as, e.g. lighting, outside doors, switched on power units, etc.


The query menu is comprised of two very different items: Query elements can not be combined randomly. Additional query pages or just menu items can be assigned to a query page. However, a combination of query pages and menu items is not possible!
Screen design of query page

This figure shows an example for window monitoring.
The most important difference between the query page and screens for the
design of the menu is the missing communication objects
for controlling the dynamic texts and the dyn. icons in line (1) and title (2).
The dyn. text and the dyn. icon is automatically controlled on a query page via the number of displayed sub-items.
The sub-items are displayed when the value of the query control is not equal to zero (see below).
Screen design of query menu bar

This figure shows an example for window monitoring.
This line shows later whether this window is open.
The most important difference between the query page and screens for the
design of the menu is the additional field for the menu control (1).
A communication object is assigned here.
If this communication object has a value that is not equal to zero, then the line is shown in the query menu.
If this communication object has a value that is equal to zero, then the line is not shown in the query menu.

In this example, the communication object (e.g. window contact) "window, dining-room " is used for the control(2)
of the dynamic icon (3) and text module (3).
The dynamic modules are documented below.
Example, "window opened" icon

Icons are created under
Project/Design.
Example of a dynamic icon

This module shows the icon "window opened" when the window contact has the value one.
Otherwise, the standard icon is shown.
Dyn. icons are created under
Project/Design.
Example of a dynamic text module "X windows are opened"

This text module returns the number of opened windows in the query page.
Dyn. text modules are created under
Project/Design.
Example of dynamic text module "window OPEN/CLOSED status"

This text module returns the text "opened" when the window contact has the value one.
Dyn. text modules are created under
Project/Design.
Example of window monitoring

The example shows the query view in the client program. The number of opened windows is shown in the header.
Example of window monitoring of ground floor

The example shows the query view in the client program. 2 windows are opened.