I’m trying to get a DVD player to power on when entering an activity. I’m not sure where in the macro I need to put it and what format.
The command for the DVD power on : AV|13~Power~On!
Also what would trigger the DVD player to turn off? If I hit the power button while
In the activity will it automatically turn that device back off or when I hit the back arrow going back to the
Main activity selector screen? or I need to specify the command somewhere?
Any help would be great.. I’m impressed that some of you are able to pickup
the macro lingo so quickly. I’m completely lost.
I wish Allonis would make a wizard that would generate the macro based on questions. I haven’t
been this frustrated with a device ever.
Macro|
// Source activation macro for Sony Blu-Ray 1!
// SetActiveSource creates the following server variables!
// activesource_sourceid_<clientname>, activesource_source_<clientname>, activesource_sourcename_<clientname>!
// activesource_image_<clientname>, activesource_macro_<clientname>, activesource_type_<clientname>!
// activeroom_<clientname>!
//!
SetActiveSource|Sony Blu-Ray 1!
//!
SetVariable|{{activeroom_{smartremote}}_source~{{activesource_sourcename_smartremote}}!
// Tell the driver what device is active!
AV|{{{{activeroom_{{clientname}}}}_bluray_id}}~SelectDevice!
//!
// This next section is for systems that utilize audio and video distribution via AV switchers!
// If your system does not use this technology then you can ignore all of the following section!
// The Audio and/or Video switcher inputs this source is on!
// Uncomment and set if needed!
//SetVariable|{{activeroom_{{clientname}}}}_audio_switcher_input~0!
// SetVariable|{{activeroom_{{clientname}}}}_sonos_switcher_input~0!
//SetVariable|{{activeroom_{{clientname}}}}_video_switcher_input~0!
//!
// Now do the switching if necessary!
//!
//If|isGT##{{{{activeroom_{{clientname}}}}_video_switcher_input}}##0##AV|{activeroom_{{clientname}}}}_video_switcher_id}}~Source~{{{{activeroom_{{clientname}}}}_video_switcher_input}}!
// If|isGT##{{{{activeroom_{{clientname}}}}_audio_switcher_input}}##0##AV|{{{{activeroom_{{clientname}}}}_audio_switcher_id}}~Source~{{{{activeroom_{{clientname}}}}_audio_switcher_input}}!
// If|IsGT##{{{{activeroom_{{clientname}}}}_sonos_switcher_input}}##0##Sonos|{{{{activeroom_{{clientname}}}}_sonos_switcher_id}}~LineIn~{{{{activeroom_{{clientname}}}}_sonos_switcher_input}}!
//!
// Uncomment if you need to make sure the display is always looking at the correct source!
AV|10~Source~BD/DVD!
//!
// Always Turn the display on if defined!
If|isGT##{{{{activeroom_{{clientname}}}}_display_id}}##0##AV|{{{{activeroom_{{clientname}}}}_display_id}}~AV|13~Power~On!
//!
// Set display to specific source!
If|isGT##{{{{activeroom_{{clientname}}}}_display_id}}##0##AV|{{{{activeroom_{{clientname}}}}_display_id}}~power~on!
//!
// If you are running an app on an AppleTV, FireTV, Shield or similar device it may be necessary to launch it first!
// Uncomment and edit the next command if this is required!
// AV|<DEVICEID>~Launch~BluRay!
//!
// Finally everything is ready. Send the client to the appropriate page!
//!
LoadScene|bluray!
// fini
Please Log in or Create an account to join the conversation.