Is there a way I can trigger a smartapp inside a smartapp?
What I want to do is have a single smartapp that will set the lights to 10% and start playing a specific playlist on my sonos. I can do the specific track, but I cant tie lights to it. I need a smartapp that can trigger smartapps.
I would like to know where because in routines all I can find is turn on lights or switches, turn off lights or switches, set dimmers, set home monitor, lock doors, unlock doors, open or close garage doors, set thermostat and set mode.
Absolutely nowhere can I run a smartapp or select from the smartapps I have.
One way of doing this is to create a virtual switch. Your SmartAp then subscribes to this switch and activates when it is turned on/off. Then you act on that switch from the routine.
Step 1 follow the link about 3 posts up that says… “FAQ:Creating a virtual device”
Then all I did was attach the device to the smartapp as a trigger, then call the virtual switch with the “turn these on” section of the routine along with the lamps I want to turn on.
The virtual device acts as the glue to give us what smartthings did not give us in the base design.
So if I had all 4 going earlier in the day and I create a new Bedtime Routine and I only want 3 of my Sonos speakers to go I would need to create 4 Virtual switches. 3 to play my playlist and 1 to to turn off or set the level to 0%.
The sonos mood music only supports 1 sonos player so you need to add 4 of them, and 4 virtual switches. pausing a sonos to stop music you do not need a smartapp.
But, the music on all of the speakers will not be in sync. none of the sonos smartapps support joining speakers into a group yet, so if you start the same playlist on 3 speakers separately they all will be a few seconds behind or ahead of each other and will sound weird.
Someone needs to make a “sonos group and ungroup” smartapp to start up multiple room or whole house modes.