Looking for some guidance, especially with the Button Controller app. I have a set of Smartwings Shades I setup in a room. I also managed to expose the SetLevel command in the driver so that the shades can open and close in as a grouped dimmer allowing control via Google Home. However I also have a 5 button Pico Remote I'd like to configure to be able to control all the blinds in the room in individually and as a set. I think the plan is to set the buttons to be able to start open or start close (buttons 1 and 5), cycle through which shades to control whether its all or individually (buttons 2 and 4), and pause open or close (button 3).
Not quite sure how to approach it in the button controller or if there's some other way I'm missing.
Here's the setup I was envisioning:
- Button one press -> Start position change open
- Button two press -> Cycle a identifier variable up (+1) that identifies which shade or whether its all shades to control. ID: 0 = All shades, ID: 1 = Shade 1, ID: 2 = Shade 2...If ID > 2 then Set identifier to 0. Also when the the button is pressed, toggle the shade or shade set to jog up and down a little to tell you which one the controller is currently set to.
- Button three press -> Stop position change
- Button four press -> Cycle a identifier variable up (-1) that identifies which shade or whether its all shades to control. ID: 0 = All shades, ID: 1 = Shade 1, ID: 2 = Shade 2...If ID < 0 then Set identifier to 2. Also when the the button is pressed, toggle the shade or shade set to jog up and down a little to tell you which one the controller is currently set to.
- Button five press -> Start position change close
On top of that, I was planning to do some conditional settings for long presses or double presses to set whatever shade to a favorite position.
Does this sound like the right approach or is there a simpler way to do this? I began playing with it, but I noticed private variables are only exposed at the button push level and not globally across the whole remote, so that would not allow the identifier variable to be used in the button one and five pushes unless I'm missing something.