I was in Rule manager and Button Controller but couldn't figure out how to do this.
I have some scenes setup for my office that are different colors and different levels based on my mood. (usually red and harsh)
Anyway, I think it would be great to use the middle pico button #3 to "cycle" through scenes. I tried to find something or a way to do it. Does anyone have a solution?
Example
Press Button 3 - activate scene #1
Press Button 3 again - cycle to scene #2
Press Button 3 again - cycle to scene #3
and so on until the end then go back to scene #1
Sounds like a nice feature to add... Perhaps @stephack's Advanced Button Controller might be a good place to look? If it doesn't have the capability today, it could probably be added. I use ABC to cycle through my ceiling fan speeds using the center button (pushed event) on a Pico. Holding that button (held event) causes the fan to turn off.
That is what made me think of it. I am doing the same thing with my fans, I cycle through speeds ... cycling through scenes would be a great thing. Otherwise I have to have 2 different remotes - one to turn on / off things and handle fan. The other to assign scenes to on the pico. I can do that .. but it would be nice to have 1 button instead of 2 picos
The fan cycle logic was not difficult to setup because the next option in the cycle was obvious to predict. I'm not sure I could do that with Scenes because I won't have a simple way to know what scene would be next in the cycle or how many scenes to include. I don't currently have scenes setup, so I would have to create a few and see if this is feasible. I will update here if I come up with a solution. If anyone has Scenes enabled and has has thoughts on how to set this up, I'm open to suggestions.
You could use a local boolean and a few rules in rule machine for this.
You'd have 3 rules similar to this:
Activate Scene 1.
[Triggered by Button press]. If local boolean from Activate Scene 3 is true:
a. Activate Scene 1.
b. Set Boolean for Activate scenes 2 & 3 to false
c. Set Boolean for Activate scene 1 to true
False?
a. Evaluate rule 2
Activate Scene 2.
If local boolean from Activate Scene 1 is true:
a. Activate Scene 2.
b. Set Boolean for Activate scenes 1 & 3 to false
c. Set Boolean for Activate scene 2 to true
False?
a. Evaluate rule 3
Activate Scene 3
If local boolean from Activate Scene 2 is true:
a. Activate Scene 3.
b. Set Boolean for Activate scenes 1 & 2 to false
c. Set Boolean for Activate scene 3 to true
False?
a. [No action required, since rule 1 should have picked it up already]
Edit: This isn't the easiest way to do this---I know there's a better way, but it's not coming to me now. When I think of it, I'll update this post for you
Couldn't you just do the multi select to include as many scenes as you would want? Like select these dimmers (check check check)? I don't think "order" will matter much - and if someone wants it in a specific order they would probably need to name it as such. (Ok I know that its easier said than done).
** if you add this - the first question will be - how can I reorder them ...
But I have no problem setting a limit on options. We can't get everything we want...and there's always RM as @adamkempenich demonstrated in the post above.
So the good news is...I just created a test scene and thankfully it's not a standard virtual switch or button so I'm hoping I can narrow down the multiselection menu to just scenes. The fact that it also has momentary push functionality is good as well because I wont have to worry about setting and resettting the "on" status of the previous scene when another is activated.
The "potentially " bad news...the good news above are based on assumptions I can't test till later this afternoon when I can sit down and run some test code.
Good luck - I am a programmer - but not versed in groovy though it looks simple enough - its the hours in the day that I haven't been able to focus on ... need to though....
I don't think it's you I think it's either scene's or me .. (which lends itself to me) ... (I'm trying to 8 things at once )- let me get some drastically different scenes setup so it will show the change tonight ....
So I set them up tonight working flawless light ..Once I got the 4 lights all sync'd up ... just hitting #3 button over and over and boom boom boom ... very nice .. very nice.
The scene piece was a bit of a pain - once you capture I had a really hard time trying to re-capture something different.
I will keep playing with it and make sure its not me ... but I dont' think it is.