This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Solved
Introduce "random" logic
Cuflee
Member
Hi,
Would it be possible to introduce some sort of random logic within Homey flows? Perhaps a "then" block to randomize a variable to a number between x and y so you could use the new set random number within other flows? A flow if random var = 1 then x, another if random var = 2 then y, etc?
My kids really love homey, they can talk to it and it will talk back and I got both of them some NFC tags to use as well, but I would like to make homey's response a bit more dynamic. Randomizing the response would do that and would allow me to make a more "living" homey (tells the user "Goodmorning, have a great day", "Goodmornig, rise and shine", "Goodmorning, coffee?" randomly if someone enters the room instead of always the same line.
Kind regards,
Arjan.
Would it be possible to introduce some sort of random logic within Homey flows? Perhaps a "then" block to randomize a variable to a number between x and y so you could use the new set random number within other flows? A flow if random var = 1 then x, another if random var = 2 then y, etc?
My kids really love homey, they can talk to it and it will talk back and I got both of them some NFC tags to use as well, but I would like to make homey's response a bit more dynamic. Randomizing the response would do that and would allow me to make a more "living" homey (tells the user "Goodmorning, have a great day", "Goodmornig, rise and shine", "Goodmorning, coffee?" randomly if someone enters the room instead of always the same line.
Kind regards,
Arjan.
Tagged:
Comments
This will help you with the random text responses
You can use random answers with a ; in between
Goodmorning, have a great day; Goodmornig, rise and shine; Goodmorning, coffee?
The app Better Voice' has many useful functions, however the system function 'voice' has a card 'say something' which also has a random function. The little black information box says: "Use semicolon to randomize text output etc." For the record, I haven't tested it.