Logitech Harmony help

Hello.

I have been trying for several days watching videos and searching the forum for help, but I cannot work this out and need help :slight_smile:

I have added the Harmony Remote to the Android App and added the devices. I did an export to gDrive to transfer to the designer on my PC. It creates a ZIP but I realised that if I change the ZIP to HRP I can open it.

Unfortunately it doesn’t open in a grid, with all the layout, buttons triggrs etc. Its added as a device under Groups. When you edit it, its a diagloue showng whats referenced.

So I tried to design a remote from scratch based on the media control detail xaml, but with the harmony hub it controls the signals based on the device or activity selected.

Is there a system variable that holds the device name so that when I create a trigger I reference the variable.mediacommand instead of having to code for each device?

I have created a set of device buttons which tells the hub to switch to that devices controls when selected. I want a single screen of buttons to send the signals for say “exit”, “menu”, “play” etc for the selected device rather than having a different layout for each device.

I have created a virtual device variable that I set to the current device in a trigger when I select the device button as I couldn’t find a system variable.

Some buttons like Volume Up/Down/Mute are explicitly set to the soundbar.mediacommand but I am trying to create a trigger that fires when say “exit” is pressed and send the signal based on the device variable.

Does this make sense?

Thanks in advance for your help.

Use @Device. I discourage use of the actual MyDevice1.MediaCommand, use @Device.MediaCommand. You can use @Device.Name or @Device.Id for your trigger expression if you need a to execute a trigger only for a specific device.

Thanks Bill. I did find @Device in the MediaControllerDetails.xaml but doesn’t work for me. For a test I created a label with text field @Device.Name but its always blank. When I enter an explicit device.Name it displays OK.

Thank in advance :smile:

Are you using a Group based tile layout? Are you using a DeviceBrowser or PageBrowser?

My guess is that you aren’t using either of those. I strongly recommend using the built-in tile layouts as a beginner. Create a custom XAML template for your Harmony device & assign it to your Device object’s TileTemplate or DetailsTemplate properties. That’s a good way to learn & the easiest to figure out. Using templates with @Device will save you a lot of work in the long run so it’s a good thing to start with that.

Thanks Bill. I will have a go and report back. Cheers