Example: Using room variables
Control4 room variables provide greater flexibility in programming, letting you program using events and actions at the room level.
Note: Most of the functions in Room Variables are available by selecting the Room object which is the recommended method for programming the room. Whenever possible, use the Room object rather than Room Variables.
To use room variables:
- Start Composer Pro and connect to a Director.
- Click Programming. In this view listed under every room in the project tree is a Room Variables object.
- Click to expand the Room Variables options. Room variables are available as events and actions.
The room variables are described in the following table:
Events/Actions |
Description |
---|---|
CURRENT_SELECTED_DEVICE |
Lets you do programming when any device changes in the room. |
CURRENT_MEDIA |
Lets you do programming when any media changes in the room. |
POWER_STATE |
Lets you do programming when any device’s power state changes from True to False in the room (read only). A device in the room is required to detect the power state. |
CURRENT_VOLUME |
Lets you do programming when the volume of the currently selected audio path changes in the room (requires discrete volume). Use conditional programming. |
HAS DISCRETE_VOLUME |
Lets you do programming when any devices changes in the room (requires discrete volume). Use command programming. |
HAS_DISCRETE_MUTE |
Lets you do programming when Mute state is known (MUTE_ON or MUTE_OFF). |
IS_MUTED |
Lets you do programming when in Mute state (MUTE_ON). |
IN_NAVIGATION |
Lets you do programming when On-screen is available. |
USE_DEFAULT_VOLUMES |
Lets you do programming any time a selection changes to reset the default volume. For example, when changing from viewing a DVD to listening to music, the volume is reset to the default discrete set volume. |
DEFAULT_AUDIO_VOLUME |
Lets you program the default Audio volume. |
DEFAULT_VIDEO_VOLUME |
Lets you program the default Video Audio volume. |
VOLUME_IS_LINKED |
Lets you set programming not to affect already linked volume. |
MUTE_IS_LINKED |
Lets you set programming not to affect already linked mute state. |
ROOMOFF_IS_LINKED |
Lets you set programming not to affect already linked room off state. |
SELECTIONS_LINKED |
Lets you set programming not to affect already linked selections. |
ROOM_HIDDEN |
Lets you set programming to hide rooms from appearing on the navigation device. |
MEDIA_SCENE_ACTIVE |
Lets you set programming to set a media scene as active. |