Help with a Macro

More
2 years 3 months ago #2350 by CurlyOscar
Replied by CurlyOscar on topic Help with a Macro
Yes I have a Panasonic TV. And I am using my smartremote to select the input of the HDFury which seems to work fine

Please Log in to join the conversation.

More
2 years 3 months ago #2351 by CurlyOscar
Replied by CurlyOscar on topic Help with a Macro
The 2nd set of codes were the ones that worked for me and like you said there were just a handfull to copy

Please Log in to join the conversation.

More
2 years 3 months ago #2352 by CurlyOscar
Replied by CurlyOscar on topic Help with a Macro
To everyone who reached out thank you - you guys are awesome. I had a bad day today but with your help I will go again and again until I nail it.

Neil

Please Log in to join the conversation.

More
2 years 3 months ago #2359 by David Li
Replied by David Li on topic Help with a Macro

To everyone who reached out thank you - you guys are awesome. I had a bad day today but with your help I will go again and again until I nail it.

Neil
You'll get it!!!

Please Log in to join the conversation.

More
2 years 3 months ago #2369 by CurlyOscar
Replied by CurlyOscar on topic Help with a Macro
I hope you don't mind me asking a really basic question about your post from yesterday. It makes a lot of sense and I have stripped everything back and started to build things slowly.
After following through and arriving at:
  • SetVariable|Bedroom_source~BedRoomSkyQ!
Where does this go? Does it form part of the source activation macro, does it get loaded against a hard button or as a command?

Thanks again

Neil


 

Please Log in to join the conversation.

More
2 years 3 months ago - 2 years 3 months ago #2370 by PhoenixF15E
Replied by PhoenixF15E on topic Help with a Macro

Just wondered if one of you kind souls could cast your eye over my macro and tell me where I'm going wrong. I have tried loading it at the project level, I have tried it on html files but it just doesn't work. When I look at the logs there is nothing being recorded

macro|AV|{{active_tv_{{clientname}}}}~Remote~INPUT HDMI 2!Control|1~SendIR~4K Diva~INPUTSEL0!activate-source.cabletv-bedroomskyq

Thanks

Full Macro below

Macro|
// Source activation macro for BedroomSkyQ!
// 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|BedroomSkyQ!
//!
SetVariable|{{activeroom_{{clientname}}}}_source~{{activesource_sourcename_{{clientname}}}}!
// Tell the driver what device is active!
AV|{{{{activeroom_{{clientname}}}}_cabletv_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!
SetVariable|{{actom_{{clientname}}}}_display_input~HDMI2//!
// Always Turn the display on if defined!
If|isGT##{{{{activeroom_{{clientname}}}}_display_id}}##0##AV|{{{{activeroom_{{clientname}}}}_display_id}}~power~on!
//!
// Set display to specific source!
If|isNE##{{{{activeroom_{{clientname}}}}_display_input}}####AV|{{{{activeroom_{{clientname}}}}_display_id}}~source~{{{{activeroom_{{clientname}}}}_display_input}}!
//!
// Finally everything is ready. Send the client to the appropriate page!
//!
// LoadScene|cabletv!
// fini
I assume your referring to my description of how to read a macro with an explanation of the curly brackets.  You don't need to do anything.  This statement is already a part of your activation macro.  I was just pointing out an example from your activation macro to show how to see what the commands actually do.  I wouldn't strip away the curly brackets.  They allow the code to be used in multiple rooms and remotes.

Here's how I would proceed.  First I would fix the misspelling in your activation macro line and put in the correct source: 
  • SetVariable|{{actom_{{clientname}}}}_display_input~HDMI2!" 
  • should be: "SetVariable|{{activeroom_{{clientname}}}}_display_input~INPUT HDMI 2!
  • Note the space between "HDMI" and "2"

Next I would do as bowlingbeeg suggests and take commands from the macro on the function key that set the input on your TV and VRRoom and move them to your activation macro.  Before you do this, I would make sure your TV command works.  Since you have a Panasonic TV, I assume you're using IR to control it.  If so, the command to change the input will need to change, as I mentioned earlier.  It will look something like:
  • Control|1~SendIR~Panasonic-Most Models~INPUT HDMI 2!
I would add just this command to a button on your SmartRemote for testing until you get it working.  Once it's working, it will need to be added to the activation macro.  It will change in the activation macro to use the variable I mentioned above, and will looking something like:
  • Control|1~SendIR~Panasonic-Most Models~{{activeroom_{{clientname}}}}_display_input!
Once the TV Input and VRRoom commands are working, add them to the macro like I show below in red and change the command on your function key to simply "activate-source.cabletv-bedroomskyq"

Macro|
// Source activation macro for BedroomSkyQ!
// 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|BedroomSkyQ!
//!
SetVariable|{{activeroom_{{clientname}}}}_source~{{activesource_sourcename_{{clientname}}}}!
// Tell the driver what device is active!
AV|{{{{activeroom_{{clientname}}}}_cabletv_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!
SetVariable|{{activeroom_{{clientname}}}}_display_input~INPUT HDMI2//!
// Always Turn the display on if defined!
If|isGT##{{{{activeroom_{{clientname}}}}_display_id}}##0##AV|{{{{activeroom_{{clientname}}}}_display_id}}~power~on!
//!
// Set display to specific source!
If|isNE##{{{{activeroom_{{clientname}}}}_display_input}}####Control|1~SendIR~Panasonic-Most Models~{{activeroom_{{clientname}}}}_display_input!
Control|1~SendIR~4K Diva~INPUTSEL0!
//!
// Finally everything is ready. Send the client to the appropriate page!
//!
// LoadScene|cabletv!
// fini




 
Last edit: 2 years 3 months ago by PhoenixF15E.
The following user(s) said Thank You: CurlyOscar

Please Log in to join the conversation.

Time to create page: 0.197 seconds