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.

Help wanted (alarmclock)

I want an alarmclock. 
Probably not the hardest thing to create in a flow. 
But an hour before it goes of I want it to check some things and depending on some conditions the alarm time has got to be earlier then the time originally set. 
It has to check weather, traffic, public transport and maybe even a calendar with appointments. 
So if there is a traffic jam because of severe weather, or whatever it might be better to get out my bed earlier to take another route. 

Anyone who can help me on the right direction? 

Comments

  • Gonna be a lot of flows but maybe something to start with is:
    Make a countdowntimer.
    Let the timer start 1 hour before the actual time and let it run for 3600 sec.
    If traffic jam--stop timer.
    If appointment--stop timer.
    When timer is stopped--sound the alarm.
    When timer is empty--sound the alarm.
    Just some thoughts.
  • Do also consider State Control. Your conditions are states, flow conditions are Flow Triggers. Check: https://github.com/SergeRegoor/nl.regoor.statecontrol/wiki/Example-1:-lights-in-a-room
  • hnijveen said:
    Do also consider State Control. Your conditions are states, flow conditions are Flow Triggers. Check: https://github.com/SergeRegoor/nl.regoor.statecontrol/wiki/Example-1:-lights-in-a-room
    Definitely something to take a closer look at. Also for other things I want to achieve. 
  • Gonna be a lot of flows but maybe something to start with is:
    Make a countdowntimer.
    Let the timer start 1 hour before the actual time and let it run for 3600 sec.
    If traffic jam--stop timer.
    If appointment--stop timer.
    When timer is stopped--sound the alarm.
    When timer is empty--sound the alarm.
    Just some thoughts.
    Wish I could set my brains to think in more logic
  • This is some next level stuff. For now, I would say you need to write an app for that to do it right.

    If you want to do it with flows, I would recommend set the worst case time and use 15 minute blocks to increase it to the actual time based on optimal conditions.
Sign In or Register to comment.