myServer allows for selection of rooms and for all commands thereafter from that webclient to be specific to that room.
1) From Dashboard, select Configuration / Rooms
2) Select Create New Room (call it "Study") and type in all information for that room and click Save
3) Add your devices to the rooms that are appropriate. This action creates the room specific macro default. Like: "activate-room.study"
5) Lets setup the device to control. Click Management / Devices. Click on the device driver's Configuration button.
6) Edit each device and select your room from the Room fields dropdown list. Save.
7) You should now be able to refresh you home page reselect your room, and you should see the new device icon in that room. Click it and the webpage you built for that device will open. The context of the device will be for the device ID you setup in the room macro.
Optional:
Go to Macros. Select the Macro activate-room.study
Edit the macro for your device name, and the devices to be controlled from that room. Here is an example Macro for a room called "Study". It has Harmony, Roku, NvidiaShield, DirecTV, a custom webpage called "Wetbay". You can see these devices are enabled (1, not a zero), and the Device IDs are configured further down the list. You might have Two Rokus in the system. Use the Device ID for the Roku that runs from the Study. At the end of the macro, you will see where you trigger the webpage to control that device.
Macro|
// Room Initialization macro for Study!
// SetActiveRoom creates the following server variables!
// activeroom_roomid_<clientname>!
// activeroom_avatar_<clientname>!
// activeroom_name_<clientname>!
// activeroom_area_<clientname>!
// activeroom_<clientname>!
//!
SetActiveRoom|Study!
//!
// Media Sources that are available in the room!
// This list is generated from the master list on sources defined in myServer "Media Sources"!
// These variable define what sources the user will see in the list of available sources on the UI!
// A value of 1 means available, 0 not available!
// The list below is for example and does not reflect the actual list of defined sources!
//!
SetVariable|{{activeroom_{{clientname}}}}_directv_isavailable~1!
SetVariable|{{activeroom_{{clientname}}}}_harmony_isavailable~1!
SetVariable|{{activeroom_{{clientname}}}}_shieldtv_isavailable~1!
SetVariable|{{activeroom_{{clientname}}}}_roku_isavailable~1!
SetVariable|{{activeroom_{{clientname}}}}_heos_isavailable~1!
//!
// Speciality sources for non-media type functions!
//!
SetVariable|{{activeroom_{{clientname}}}}_climate_isavailable~1!
SetVariable|{{activeroom_{{clientname}}}}_lighting_isavailable~1!
SetVariable|{{activeroom_{{clientname}}}}_video_isavailable~1!
SetVariable|{{activeroom_{{clientname}}}}_wetbay_isavailable~1!
//!
// This section is used to define what device is to be used based upon!
// what devices are available as defined above!
// The values defined here are the actual device IDs that are!
// associated with the physical device in the various drivers!
// These are all driver or applet device IDs not Names!
// A device ID of 0 means the device is not being used!
//!
SetVariable|{{activeroom_{{clientname}}}}_harmony_id~330!
SetVariable|{{activeroom_{{clientname}}}}_directv_id~208!
SetVariable|{{activeroom_{{clientname}}}}_shieldtv_id~279!
SetVariable|{{activeroom_{{clientname}}}}_jellyfin_id~1!
SetVariable|{{activeroom_{{clientname}}}}_heos_id~3!
SetVariable|{{activeroom_{{clientname}}}}_roku_id~289!
SetVariable|{{activeroom_{{clientname}}}}_heos_id~3!
//!
// In the following section you define the specific devices in the room for!
// doing specific tasks e.g. Audio control, ir control, etc!
//!
// The Video switcher device ID and what output it is on!
//!
SetVariable|{{activeroom_{{clientname}}}}_video_switcher_id~0!
SetVariable|{{activeroom_{{clientname}}}}_video_switcher_output~0!
//!
// The Audio switcher device ID and what output it is on!
//!
SetVariable|{{activeroom_{{clientname}}}}_audio_switcher_id~177!
SetVariable|{{activeroom_{{clientname}}}}_audio_switcher_output~2!
//!
// It is possible to use Sonos as an Audio switcher device!
// Set the Sonos player device ID here if needed!
//!
SetVariable|{{activeroom_{{clientname}}}}_sonos_switcher_id~0!
//!
// The device that controls volume and mute!
//!
SetVariable|{{activeroom_{{clientname}}}}_avamp_id~177!
//!
// The display device (TV,Projector) for the room!
//!
SetVariable|{{activeroom_{{clientname}}}}_display_id~294!
SetVariable|{{activeroom_{{clientname}}}}_display_irdevice~!
SetVariable|{{activeroom_{{clientname}}}}_display_irmodel~!
//!
// If TV is controlling volume then activate it here!
AV|{{{{activeroom_{{clientname}}}}_display_id}}~SelectDevice!
//!
// If AVR device is controlling volume then activate it here!
//AV|{{{{activeroom_{{clientname}}}}_avamp_id}}~SelectDevice!
//!
// Other non-media devices!
//!
SetVariable|{{activeroom_{{clientname}}}}_thermostat_id~1!
SetVariable|{{activeroom_{{clientname}}}}_security_area_id~!
//!
// fini
Have fun!