Select Device

More
1 year 2 months ago - 1 year 2 months ago #4311 by camens
Select Device was created by camens
I am having trouble with an 'activate-source-cabletv-rogers1' macro.  This might be my lack of understanding on how the macros work.  Anyways, it starts with:

Macro|
// Source activation macro for Rogers1!
// 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|Rogers1!
//!
SetVariable|{{activeroom_{{clientname}}}}_source~{{activesource_sourcename_{{clientname}}}}!
// Tell the driver what device is active!
AV|{{{{activeroom_{{clientname}}}}_cabletv_id}}~SelectDevice!
//!

It sets the source as Rogers1, which is the Name of the CableTV Device, and I can confirm this source is selected by using a label and the variable on the smartremote.  However, it is actually picking up device 35, which is Rogers2, and thereby sending IR commands to the wrong device.  It should be device 36, which is actually Rogers1.  I'm not sure how the second last line works or when it determines that I pressed Rogers1 on the index screen on the remote.  The remote is calling the correct macro, which is Rogers1.
Last edit: 1 year 2 months ago by camens.

Please Log in to join the conversation.

Time to create page: 0.141 seconds