Anyone knows how I can cycle through a set of routines on for exemple a button press? For example press button activates routine1, and the next press activate routine2 and so on.
There are two kinds of Routines in SmartThings:
-
Routines that include a trigger like when a button is pressed or at a certain time
-
Routines that are run āmanuallyā, which used to be called Scenes and still are in some spots.
Routines with triggers canāt, to my knowledge be ācalledā from anything. They run when youāve defined them to run.
SmartThings will let you trigger no more than one āmanually run routineā from a regular routine.
Alexa routines can run a sequence of āscenesā with optional time delay between each one. Iāve used this for years. I donāt know if you can trigger an Alexa routine with a button, Iāve only done it with voice commands.
Ok, I meant a manually run routine(scene). So itās not possible to do this from the smartthings app or Sharptools? I know itās possible in other platforms, for example Philips Hue.
Ok, I meant a manually run routine(scene). So itās not possible to do this from the smartthings app or Sharptools? I know itās possible in other platforms, for example Philips Hue
You could add a virtual switch. For press ā1ā youād have a precondition on the virtual that it is off. When you do press ā1ā, it also sets the virtual to on. For press ā2ā youād have a precondition that the virtual is on. When you execute press ā2ā, set the virtual to off.
Anyone knows how I can cycle through a set of routines on for exemple a button press? For example press button activates routine1, and the next press activate routine2 and so on.
Looks like someone get me to the bunchā¦
Iām also thinking that ācascading Routinesā would depend on the Action(s) of each button press and if the Action(s) from each button press can be used as precondition(s) for the subsequent Routines button presses.
On and Off round robin thought for cascading Routines.
If precondition device 1, device 2, and device 3 are Off and Button pressed, then turn On Device 1.
If precondition device 1 is On, and device 2 and device 3 are Off and Button pressed, then turn On Device 2.
If precondition device 1 and device 2 are On, and device 3 is Off and Button pressed, then turn On Device 3.
If precondition device 1, device 2, and device 3 are On and Button pressed, then turn Off Device 1, Device 2, and Device 3.
Also, @Mariano_Colmenarejo has a virtual driver that provides virtual switchboard, text fields, and number fields that Iām thinking might make for an interesting project to be used for cascading Routines.
(New Release)Edge Driver Aplicaciones Virtuales Mc (virtual Switch Mirror, virtual Switch Board, Text and Number Fields): Link to Version with Text Field and Number Field Link to versiĆ³n with Virtual Calendar Link to version with device Timer Number of Days Link to version with capability Local Week Day in Virtual Calendar While we wait for the stock mirror routine to arrive. This driver creates virtual devices to be able to automate state synchronization between a real device and this virtual mirror device, writing 2 routines instead of 4 routines without entering an infinite loop. Install the driver on your Hub from the channel In the App add a new device and Search nearby. The āMAIN Virtual Mirrorā device will appear on devices without an assigned room. It will indicatā¦
smartthings app or Sharptools
SmartThings: no (other than by complicated chaining and extra virtual devices)
Sharptools Rules Engine can invoke a series of āscenesā with delays and/or conditional logic interspersed.
Found this one: Edge device for tracking time duration or count - Devices & Integrations / Community Created Device Types - SmartThings Community
The counter is perfect for this I think.
The counter is perfect for this I think
It is! Counters are super useful. Iāve published a scene-switching oriented one that allows multiple cycle modes, even automatic! Youāll be able to delete the two routines to reset the counter when it reaches the end
My first virtual device . Meant to be a companion for smart buttons to easily cycle through scenes, it is not short on features like automatic cycling, random selection of scenes and even bringing double-tap, triple-tap and beyond to any button. At its core it is a specialised virtual counter with lots of extra features and scene-oriented design decisions that eliminates most boring work. Previously, just like other users, for scene switching I was using a combination of the auto-repeat feature of my IKEA button driver and the great Counter Utility by @TAustin which inspired this and actually helped me a lot to understand how virtual devices work. Letās start with the main feature, setting a simple scene-switching scenario to cycle through four colours pressing a button. Itā¦