Working backlight ETA?

More
4 days 4 hours ago #5070 by David Li
Replied by David Li on topic Working backlight ETA?
{{clientname}} gets replaced by "smartremote" if the current client (the SmartRemote hardware) is called "smartremote" (or "masterbedroom" if you called it that).

I don't know how "Chris" is even working if the smartremote is not called that. That command is telling myServer 'hey, wake up the client named "smartremote"".

I would literally use what Nillaz has posted as it's working for him. I haven't tested any of this but he has a pretty cool, working system.

Please Log in to join the conversation.

More
4 days 4 hours ago #5071 by Chrisan
Replied by Chrisan on topic Working backlight ETA?
Thanks David.  What Nillaz posted doesn't work for me.   I have no {{clientname}} variable and my smartremote is named smartremote, not Chris
WakeupMyRemote|Chris   ==> works
WakeupMyRemote|{{clientname}}   ==> doesn't work
WakeupMyRemote|{{any_variable_that_resolves_to_chris}}   ==>  works
I think it would be interesting to understand why.

Nillaz, can you chime in?  It looks like you are not on the Harmony ecosystem, correct?  I wonder if that has something to do with it.   Do you have a "clientname" variable in MyServer?  I'm really wondering where MyServer is picking up Chris to use as my remote name.
Thx, Chris

Please Log in to join the conversation.

More
4 days 3 hours ago #5072 by Nillaz
Replied by Nillaz on topic Working backlight ETA?

This is interesting David and I am hoping you will have the time to enlighten me and maybe some other folks.  !WakeupMyRemote|{{clientname}}! does not wake up the remote.  I also tried it without the exclamation points.  It will wake up with WakeupMyRemote|Chris.  The remote is named "smartremote," not Chris.   Command builder seems to want the remote name, not the client name.   And speaking of clientname I can't find that variable in MyServer.  But if it's there it does not seem to have a value of Chris.   I did see a variable "harmony_active_device_chris" with a value of 1,
I'm puzzled and would really like to be able to wrap my head around all this.
Thx, Chris
Hi Chris I'd bet a dollar that during your initial setup you changed the name on the remote itself from "remoteX" to "Chris". This value and the unique name in myServer are independent of each other. 

The reason why {{clientname}} isn't working in Command Builder is because this isn't like other variables. It can't be manually adjusted and points to the client name of the device you are currently working with. When you try to use {{clientname}} through Command Builder it doesn't know that you want to control the remote and issues the command "WakeupMyRemote|dashboard-fx-XXXX" (where XXXX is a dynamically assigned string), which is literally the computer/tablet/etc you are accessing myServer from. When you invoke the command from the remote itself it will issue "WakeupMyRemote|Chris"

From a practical perspective if you only have one remote there's no reason why you can't use "WakeupMyRemote|Chris", though this will make things complicated if you ever add a second client. I have 5 smartremotes so I have to do it the way I do if I want this to work for all of them.
The following user(s) said Thank You: Chrisan

Please Log in to join the conversation.

More
4 days 3 hours ago #5073 by Nillaz
Replied by Nillaz on topic Working backlight ETA?

Thanks David.  What Nillaz posted doesn't work for me.   I have no {{clientname}} variable and my smartremote is named smartremote, not Chris
WakeupMyRemote|Chris   ==> works
WakeupMyRemote|{{clientname}}   ==> doesn't work
WakeupMyRemote|{{any_variable_that_resolves_to_chris}}   ==>  works
I think it would be interesting to understand why.

Nillaz, can you chime in?  It looks like you are not on the Harmony ecosystem, correct?  I wonder if that has something to do with it.   
I replaced all my Harmony Elites with myServer and SmartRemotes, though I've basically replicated the Harmony activity-based paradigm in myServer and I do still use 2 Harmony Hubs with myServer because I've been too lazy to replace them with ip2ir's. I seriously doubt this has anything to do with what we are talking about here.

Please Log in to join the conversation.

More
4 days 3 hours ago #5074 by Chrisan
Replied by Chrisan on topic Working backlight ETA?
Thanks Nillaz.  The remote is named Chris.  That makes sense and a simple experiment proves it.   A test changing one of my F keys from WakeupMyRemote|Chris to WakeupMyRemote|{{clientname}} and periodically pressing it keeps the remote and backlighting active.  Thanks again. 

I need to learn more about clientname as I work up this project.  So clientname is the device you are operating on?  Could I use that for, say, a wall mounted touchscreen?  I didn't use it in my V5 projects but I think it would facilitate expansion as I build out the V6 system
Chris

Please Log in to join the conversation.

More
4 days 3 hours ago #5075 by Nillaz
Replied by Nillaz on topic Working backlight ETA?

I would literally use what Nillaz has posted as it's working for him. I haven't tested any of this but he has a pretty cool, working system.
 
Hey David thanks for the kind words! Hope all is well for you guys!

Please Log in to join the conversation.

Time to create page: 0.279 seconds