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

Sunset and sunrise

I can't get flows with sunset or sunrise to work. Can someone tell me which timetable Homey works with? 
«1

Comments

  • Same here - it's pretty difficult to troubleshoot since you have one opportunity every 24 hours :)

    How would you debug a flow with sunrise/sunset in them? And what is the difference between start and end of a sunrise/sunset?

    Also, is there a way to create an offset to those? Say, turn the lights on at sunset + 30 mins?
  • TheoDeKoningTheoDeKoning Member
    edited February 2016
    Before my Homey became bricked, and still is, I couldn't trigger a flow with sunrise/sunset.
    You can may be make the trigger with something else and testing in the ...and... column against sunrise/sunset time.
    Athom is working at it. Even to put time before those sun events.
  • Thanks - I'll wait for a change log then. Did you not manage to unbrick your Homey with a bootable Linux image?
  • Here no stuff to unbricked my Homey.
    Then the flu attacked me for the 2nd time so to see someone in the neighbourhood is not a good idea for now.
  • Testing the trigger will be easier when you "Log" ... so I created 4 workflows: (Sunrise/set Start/end) with a push notification... 
    Testing results in time reported 21:23 (every time I tried ;-) )

    image

    image

    Will see result today / and report here this evening! 

    Regards, Geurt

  • Where on the planet does a sunrise or sunset start or end at 21:23? :)
  • 21:23 (and December 31 , 2015 for that matter ) are standard times in Homey, for one reason or another. If you make a flow where every 10 seconds the date or time is spoken, the first date/time spoken by Homey are those dates. The second time it reports date or time, it will be the correct date/time. 
  • Where on the planet does a sunrise or sunset start or end at 21:23? :)
    Testing the workflow resulted in 21:23 ;-) every time.
    but it didn't trigger this morning :'(
  • I think it's not working in 0.8.17, fixed in 0.8.18.
  • For checking all the local times for the sun events: http://www.suncalc.org

  • Is that where Homey gets the times from?
  • Not that I know Martijn but is is a good reference for testing.
  • Can anyone on 0.8.20 (or later :)) confirm if sunset / sunrise cards work?

    I can't seem to get a sunset trigger anything.
  • mruitermruiter Member
    edited February 2016
    8.20 and still none of my 8 sunset / sunrise flows work.
    I still pis naast de pot because the lights dont go on.
  • I've updated the issue on GitHub. I'd really love to get this working!
  • If the sun events still not trigger a flow will that be very, very disappointed. It should be fix in 0.8.7 but it was not.
    Give after that version a lot of tips what was needed for a good functional use, such as time before the events.
    :'(
  • I also like the flow cards sunset and sunrise to work but for now you can also use IFTTT recipes in combination with the Homey for this.
  • edited February 2016
    Good point! I'll give it a go, never thought of that as a workaround - thanks!
    Edit: just created the IFTTT webhook and used a trigger from the Weather channel, as per the instructions in

    18:15 is going to be exciting today! Don't forget to configure the weather channel with the location of your Homey, unless you enjoy your lights switching on at weird times.
  • Using IFTTT doesn't solve the issue that you want to have the lights on half an hour before sunset. Any ideas how to solve this?
  • You could configure the weather channel with a location on the planet where the sun sets half an hour earlier than your location - not very elegant, but it would work. By clicking on http://sunrisesunsetmap.com/ I found Berlin to do just that :)

    The actual Sunset card wouldn't solve this either, we'd need the Sunset time as a variable and then modify it.

  • Sunset using IFTTT Weather channel works! Sunrise didn't today, but that might very well be my flow's fault, not IFTTT.
  • Sunrise now also works! Very pleased with Homey and IFTTT. For people looking for a single button to integrate with their Homeys, look at the Yo app (https://www.justyo.co/) - it has an IFTTT channel so you can trigger a flow with it.
  • In this thread, from May 2015, a lot of tips game in.
    https://forum.athom.com/discussion/249/input-required-flows-with-time/p1 

    Not only about the sun-evens but a delay timer came then all in the picture.
    It is at least a little strange that both has not developed in full function.

  • You could delay a sunset trigger by 23,5 hours to have it kick off an action flow half an hour earlier the next day :)
  • I agree with @TheoDeKoning ;

    And I think we shouldn't have only sunset/sunrise, but also the twilight times, that info is available:
    (Taken from another thread)
    Beginners question here: can I do a GET JSON request and use the results as variables in a different flow?

    Example: 

    This url gets me sunset/rise info: http://api.sunrise-sunset.org/json?lat=52.6972155&lng=5.164657

    I'm able to create the action card, but where are the results stored?

    This comes back using Postman:

    {
      "results": {
        "sunrise": "6:28:00 AM",
        "sunset": "5:15:44 PM",
        "solar_noon": "11:51:52 AM",
        "day_length": "10:47:44",
        "civil_twilight_begin": "5:53:37 AM",
        "civil_twilight_end": "5:50:06 PM",
        "nautical_twilight_begin": "5:13:59 AM",
        "nautical_twilight_end": "6:29:45 PM",
        "astronomical_twilight_begin": "4:34:04 AM",
        "astronomical_twilight_end": "7:09:40 PM"
      },
      "status": "OK"
    }

    How can I use things like "civil_twilight_begin" in a different flow?
  • ....
    And I think we shouldn't have only sunset/sunrise, but also the twilight times, that info is available:
    ....
    You have sunrise starts and sunrise ends card.
    If you want the sunrise time you take the sunrise ends card. For twilight the sunrise starts card.

    This is also for the sunset cards.


  • ....
    And I think we shouldn't have only sunset/sunrise, but also the twilight times, that info is available:
    ....
    You have sunrise starts and sunrise ends card.
    If you want the sunrise time you take the sunrise ends card. For twilight the sunrise starts card.

    This is also for the sunset cards.


    Great! thanks!
  • Today for the first time the Sunset flows triggered after my update to 0.8.24  this afternoon.

    Location The Netherlands - near Utrecht.
    This one Bug looks also smashed....

       
  • oooohhhh yes. been waiting for this since the start
This discussion has been closed.