Written by Hdsn5555 on June 19, 2020, at 11:59am (edited on June 19, 2020, at 12:01pm)
I have successfully had lights triggering at sunset for some time, but I notice depending on the weather this is either too soon, or too late.
I have built an applet in IFTTT using Weather Underground to trigger a webhook to update the following variant:

This can be one of 4 variants, this is a limitation of Weather underground, I basically have 4 weather conditions, all have a varying degree on daylight. Clear, Cloudy, Raining, Snowing.
I've amended my basic trigger at sunset to include a check the home_weather variant, and trigger a sequence based on it being true, but this does require all 4 sequences attempting to run. Each sequence has different adjustments in the time offset.

Is anyone able to advise if its possible to nest this in one sequence, or any suggestions on how to improve this?

Hi Derek, this is great. I'm pretty sure I've figured out how to incorporate all 4 weather types into the sequence, rather than waiting for sunset, I set it up to trigger with a test variable being set to true.
I'm currently sharing it here:
https://sequematic.com/import-sequence/3832
Seems to work well, so will leave it shared. Feel free to take a look.
Looks good! Based on that, here's what I would expect to happen:
- If it's snowing, it will run 60 minutes before sunset
- If it's raining, it will run 50 minutes before sunset
- If it's cloudy, it will run 35 minutes before sunset
- If it's clear, it will run 25 minutes before sunset
I don't know if you'll get an exact match from Weather Underground so you might want to do the 'contains' comparison rather than 'equals'. It's also case sensitive so you will need to consider that as well (I could add an option to make it case insensitive, I'll add that to my todo list).
Also, sorry I missed your chat earlier. It normally comes through to my phone but for some reason it didn't. Looks like you've worked this out nicely though!
Sweet, glad it's going to potentially give you further accuracy. It's by no means bullet proof, but gives a lot better accuracy than none at all, or every 24 hours.
I've implemented the same in my 'off at dawn' sequence. Though, I won't really see the benefit of it until autumn, wintertime as I usually asleep still in the summer. I imagine based on your geographic location you tend to notice Your triggers at sunset must be a lot more right obvious right now!
i was also using a sunset trigger before, untill we had a day of bad weather and it was dark 3 hours before sunset .i then started to think of another way, the way i do it now is that i use an old smartphones light sensor to toggle a "dark" variable in sequematic.
i just have it standing in between my blinds and the window with the light sensor facing the blinds,i also use it as a security camera and to check on my dog when im away i also set it to automatically play music when i get home, so if you have an old smartphone or tablet you could do something similar.