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.
Solved

Introduce "random" logic

CufleeCuflee Member
edited April 2018 in Ideas & Suggestions
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.
Tagged:

Comments

  • RikPostRikPost Member
    edited April 2018
    https://apps.athom.com/app/homey.better.voice

    This will help you with the random text responses  
    You can use random answers with a ; in between 
  • lubbertkramerlubbertkramer Member
    edited April 2018
    RikPost said:
    https://apps.athom.com/app/homey.better.voice

    This will help you with the random text responses  
    You can use random answers with a ; in between 
    Multiple response is a native function in Homey, the app is not needed (it's an app from the early days of Homey) just use the standard speech card and hoover over the i from information which will tell multiple responses can be typed as:

    Goodmorning, have a great day; Goodmornig, rise and shine; Goodmorning, coffee?




  • yemoHyemoH Member
    edited April 2018
    edit: Oops I was a few minutes late.
    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. 

  • Wow, thank you for the quick responses and help! This works fine for me.
Sign In or Register to comment.