I’d like to use a push button to play sounds from a soundboard through a Google Nest Mini speaker.
I’ve already created a flow where something plays on the Google Nest Mini as soon as the button is pressed. Now I’d like to play random sounds.
So if the button is pressed now, for example, sound 3 should play, the next time sound 9, and the time after that sound 1.
Has anyone created something similar in an Advance flow?
This is how things are for me at the moment, and I think there must be an easier way?
There are a few apps available in the Homey App Store that can generate a random number using a Flow card. With the generated random number, you can then trigger different flows with different sounds.
One app, for example, that is currently still in the testing phase is the Flow Gadgets app:
But it’s also possible with the build-in logic flow cards and some math, like this:
By the way, that would be the flow with the corresponding flow card from the Flow Gadgets app. You don’t need to know how to create calculations using the built-in logic cards. Additionally, you could avoid using a numeric variable if you set up the flows as follows: