Activity Macros Help

Matt22's Avatar Topic Author
User User
  • Posts: 19
  • Thanks: 0

Activity Macros Help

2 years 2 months ago
#2950
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.

Matt22's Avatar Topic Author
User User
  • Posts: 19
  • Thanks: 0

Re: Activity Macros Help

2 years 1 month ago
#2982
Has Allonis made any videos on how to setup and structure power up macros?

Is their any documentation that shows examples of devices and the correct format needed?

Please Log in or Create an account to join the conversation.

David Li's Avatar
Admin Admin
  • Posts: 1027
  • Thanks: 99

Re: Activity Macros Help

2 years 1 month ago
#2983
Some rough documentation is here
allonis.com/support/documentation?view=category&id=247

This will be a lot easier in the next couple of weeks.
We are building a UI to make this stuff easier.
The following user(s) said Thank You: graydon@gdsamps.com, Fattykidd, thrakattak

Please Log in or Create an account to join the conversation.

Matt22's Avatar Topic Author
User User
  • Posts: 19
  • Thanks: 0

Re: Activity Macros Help

2 years 1 month ago
#3080
Do you have any update on when the new UI will be available?

Thanks..

Please Log in or Create an account to join the conversation.

David Li's Avatar
Admin Admin
  • Posts: 1027
  • Thanks: 99

Re: Activity Macros Help

2 years 1 month ago - 2 years 1 month ago
#3081
No update. It's get ready for football sports bar season. So that has the priority right now as the NFL won't wait.  Sports Bar and Man Caves.
Last edit: 2 years 1 month ago by David Li.

Please Log in or Create an account to join the conversation.

davep's Avatar
Admin Admin
  • Posts: 371
  • Thanks: 98

Re: Activity Macros Help

2 years 1 month ago
#3099
I am working on a new UI metaphor for macros but it is not ready yet.

In the meantime 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!
 

Please Log in or Create an account to join the conversation.

Time to create page: 0.291 seconds