The media controller is a function block that allows you to use your app as a universal remote!
The block allows you to control many different media devices through the same interface, similar to a multi-function remote control.
The block supports virtual outputs, IR commands as well as RS-232 and RS-485 commands.
There are a number of modes that you can create to then add multiple commands. For example switching in to the Watch Movie mode would bring on our projector, set the AVR to the correct source and turn on the DVD player.
The user interface has options for then controlling channels, volumes and has a button cross.
Before you can add devices to the media controller block you need to add them into the program first. To do this you can use our pre-defined devices for virtual outputs, remote controls (for IR), and RS-232/485 templates.
You can also create your own devices, you can find the relevant documentation below:
- Network enabled devices – Virtual outputs
- Remote controlled devices – IR Extension
- Serial devices – RS232/485 communication
STEP 1: ADD THE MEDIA CONTROLLER
First add in the media controller block either by selecting it from the Program tab, or by pressing F5 on a page and searching.
If you then double click on the block you will open up the editor so you can configure the modes and devices. A mode is a group of commands that are executed when you click on the buttons in the user interface. Different modes will cause buttons to do different things. So for example you can configure a Watch TV mode to adjust the volume of the TV with the volume buttons. However in another mode Music using the volume buttons will adjust the amplifier volume.
To rename a mode click on the name of the mode where you can type in a new name. If you click on an device this will open a popup box where you can change the device.
You can select multiple devices to be used with the mode, for example when you need an AVR to change the source to watch the Sky box or the DVD player. To do this simply tick the devices you want to use in the respective mode.
STEP 2: CONFIGURE THE MODE
The next step is to go to the configuration tab in the editor. In this tab all the buttons in the user interface are listed. The next column shows whether the button has had any commands added to it. The third column allows you to configure the commands.
In addition to the buttons on the user interface there are also options for change to and from mode. So when you go to an All Off mode for example you could power off all the devices.
Click on the […] icon to open another editor. Here you will see the system outputs (i.e. the outputs from your devices), the block outputs (AQ1 to AQ26) which you can use to trigger other outputs in your configuration (bring blinds down for example), and finally you will see the other functions such as delays.
Peripheral outputs: Outputs the activated mode devices.
ATTENTION: Here only lists devices that are located in the selected area!
Property outputs: Outputs of the program block (AQ1 to AQ26)
Additional functions: to insert time delays between commands (eg IR commands so they can be properly processed by the device)
STEP 3: ADD COMMANDS TO BUTTONS
To add a command to the button list, highlight the command to the left and then click on the + button to add the command to the list.
Existing entries can be deleted and moved up and down in the list order. If you have used one of the AQ1 to AQ26 outputs you can define a value or let the keypad define the value using the <v> entry.
The column pulse shows you how long this command is sent for. If you put a 0 in this field the command will be permanently set.
Using the delay function and having different pulse lengths you can set up sequences for controlling your media equipment just like you would when using a remote by hand.
|Tr||Trigger on and off||Toggles the power button on and off, a double click will turn off.|
|V+||Volume up||Triggers the volume up button.|
|V-||Volume down||Triggers the volume down button.|
|P+||Next channel||Triggers the next channel button.|
|P-||Previous channel||Triggers the previous channel button.|
|AIm||Analogue input to choose mode||Select a mode using this analogue input (1 to 8).|
|M1-M8||Trigger input to select mode||Selects modes 1 to 8.|
|R||Reset||Sets all outputs to 0 and any commands will be interrupted.|
|Dis||Disable||Child lock input, will stop all inputs to the block working but the user interface will still function.|
|AQm||Analogue output||Outputs the current mode as an analogue value from 1 to 8.|
|AQp||Digital output||Returns the state of the power button, so can be used to switch the power for a device.|
|AQ1-AQ26||Analogue outputs||Allows other outputs to be controlled through the analogue outputs of the block.|
|Tn||Number pad timeout||After this timeout in ms, whatever number is entered in the number pad will be transmitted. If Tn is equal to 0 then the value is only transmitted after the confirmation key is pressed.|
|Tdc||Maximum pulse seperation (s)||This parameter defines how close together two pulses have to be in order to count as a double click and not two separate clicks. The smaller this parameter the faster the click has to be.|
Here is an example of what the media controller looks like on the apps. There is also a number pad screen where you can choose numbers to control devices.
FIND OUT MORE
Find links to the right for videos on our video channel and lots of sample files!
You can also find out more about what you can do with AV equipment and Loxone.