myServer 6 supports powerful capability like:
Can change behaviour of the system based on Who is using the system, What action is wanted, When the action should occur, and Where the desired action is to occur
This can be complicated to setup. This document attempts to describe how to setup a myServer system. Allonis is actively working on means to make this simpler yet still maintaining same extremely flexible capability.
The foundation for the capability lies in that all drivers / applications share a common command structure and methods. This is very unique in the automation control system market. Allonis can then develop and provide user interface examples that can "plug and play" with a huge number of possible devices and situations.
On most user interface templates, there is a "User" webpage. On this page, the user selects from the dropdown which User (configured in myServer) is the "Active User". Then, the user selects which Room is to be the Active Room.
The User list is created in Dashboard / Configuration / Users webpage.
The Room list is created in Dashboard / Configuration / Rooms webpage.
When you select a room from the template list, UI actions runs macros called: Active-room.<<roomname>>
When you create a room in Dashboard, the default macro for that new room is created based off of the Active-room.reference macro. So, if you want a feature to be added for most all rooms, just add that in the reference macro and it will be copied automaticaly whenever a room is next created.
So, let's look at an example room macro where we add DirecTV and Roku as video sources and a Samsung TV. Note that "//" starts a comment that the system doesn't process. and all commands end with a ! in a macro.
Create the Room Macro
edit your "Bluray" activation macro and find these lines
// Tell the driver what device is active!
AV|{{{{activeroom_{{clientname}}}}_bluray_id}}~SelectDevice!
and insert the power on command before the SelectDevice command like
// Tell the driver what device is active!
AV|{{{{activeroom_{{clientname}}}}_bluray_id}}~Power~On!
AV|{{{{activeroom_{{clientname}}}}_bluray_id}}~SelectDevice!
Similarly, in the room power macro inject the following command to turn off the Bluray
AV|{{{{activeroom_{{clientname}}}}_bluray_id}}~Power~Off!
Macro|
Create the Media Source
Click on Create New Source in Dashboard.
Enable and name the new source "DirecTV"
Define a path to the icon that displays on the media page(s)
Define the path of the "activate-source.directv" macro. Best for organization is to follow this naming convention.
With the above media source settings, the activate-source.directv macro runs when the media device is selected.