Send Control Display command with variable with CP value

WouterK
Posts: 167
Joined: Wed Aug 19, 2015 3:07 am

Send Control Display command with variable with CP value

Post by WouterK »

Hi,

By a sonos trigger the active control page is changed to the controlpage where the sonos control is placed on. (Can not figure out why it does that.)
Because of this I would like to return to the previous page displayed when this happens (I keep track of the active displayed CP by a variable).

Is it possible to use the "send Control Page Display command" with a variable representing the controlpage name to display?
Or mayble by sending a ' previous" command?

Thanks
Wouter
User avatar
RogueProeliator
Posts: 2538
Joined: Tue Nov 13, 2012 3:54 pm
Location: Baton Rouge, LA

Re: Send Control Display command with variable with CP value

Post by RogueProeliator »

By a sonos trigger the active control page is changed to the controlpage where the sonos control is placed on. (Can not figure out why it does that.)
Because of this I would like to return to the previous page displayed when this happens (I keep track of the active displayed CP by a variable).
I'm not sure I understand what you mean by "can not figure out why it does that"? It would have to be an explicit trigger using the control page request action to change the CP if it is coming from the server.
Is it possible to use the "send Control Page Display command" with a variable representing the controlpage name to display?
Or mayble by sending a ' previous" command?
You can request the page via Python using a variable as the value - would that work for you?

Adam
WouterK
Posts: 167
Joined: Wed Aug 19, 2015 3:07 am

Re: Send Control Display command with variable with CP value

Post by WouterK »

Hi,

You are right about the trigger, searched again for it and finally found the one. Thank you for the trigger!

Still, if I could change the controlpage based on the value of a variable would be nice. Not a python expert but it should work.
Can you give me an example how to do this?

Wouter
Post Reply

Return to “DomoPad Android Client”