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.

Random time

Hi All,

I get stuck to trigger a flow at a random amount of minutes at the start of a specific time.

So I would like to turn on a light at: -13 minutes < 13:45h > +15 minutes completely at random.
It must be possible, but I just don't get it right.

the 10,50 solution just seems to trigger 10 minutes always and not a random between 10 and 50 minutes.

I installed "Better Logic" but that seems not doing the trick.

Thanks

Comments

  • I'm curious about this too. I tried the 10,50 solution too, but it always triggers at the first x minutes. So it looks like it isn't a random time between 10 and 50..
  • MarcoFMarcoF Member
    edited July 2016
    @keverjeroen ;
    Did you do a "Flow Test" or actually let the flow trigger on its specified trigger?

    Asking this because I also did some tests with the floweditor test button and also noticed that the card ran at 1 min. after clicking test button.
  • I tried both.. But now i'm thinking about it, I maby tried it once with a time-trigger and after that I guess I used the test button every time..  :/

    I guess I have to test it again without the test button.. :)
  • aloftaloft Member
    Would this be a feature which could be useful in the CountDown app? So instead of a fixed value , have a random value between 'a' and 'b' to start the countdown?
  • I would like to see that option, if possible! So +1
  • aloftaloft Member
    @ThijsDeJong  et al,

    I have added a new Random card in CountDown. It is pending approval at Athom, but if you want you can already get it from github: https://github.com/ralfvd/nl.bevlogenheid.countdown.git
  • aloft said:
    @ThijsDeJong  et al,

    I have added a new Random card in CountDown. It is pending approval at Athom, but if you want you can already get it from github: https://github.com/ralfvd/nl.bevlogenheid.countdown.git
    THNX a lot! I'll wait for the approval
  • MarcoFMarcoF Member
    edited July 2016
    @aloft ;
    Great option, but @Athom should add it to the firmware or fix it if it's broken. 
  • aloftaloft Member
    @MarcoF I think there are different use cases for the built-in delay in a card and the CountDown app. 
    The upside of the built-in delay card is that you don't need an extra flow to execute; this is a downside of the CountDown app, where you need a separate flow for that to execute once the timer reaches zero.

    The upside of using CountDown is that you can reset the timer while running, or make decisions in flows whether the timer is running or not. That is not possible with the built-in delay in an action card.

    Both have their functionality. 

    So adding it to CountDown won't exclude it for being fixed by Athom in their firmware. And I doubt having it in CountDown will change its priorities for Athom ;-)
  • Wow, that's great Aloft!
  • aloftaloft Member
    @keverjeroen and @ThijsDeJong ;
    it has been released in the app store. 
  • updating now THNX.
    some good news is needed today!!!
    great work
  • Looks like random is broken.... Last weeks 2 random flow are running for turning on/off lights randomly and both flow run sharp at there set time while the random value is "3,15".

    Anybody else with this issue? 
  • mtudormtudor Member
    edited February 2017
    Bit late, sorry.  It's a dash now, NOT a comma.  Seems like they changed it a while back (August 2016, funnily enough @MarcoF ;)): https://forum.athom.com/discussion/1666/random-time
Sign In or Register to comment.