0 votes

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?

in Sequence help by (350 points)

1 Answer

0 votes

I actually have something similar set up at home.  Every day at 4pm IFTTT triggers an applet which pushes the weather conditions into a variable called conditions.

Then I have the following sequence set to run:

I'm only checking for one weather condition, but you should be able to tweak this for your own weather conditions.

I've added this to the shared library, so if you want to import a copy you can access it here.

by (13.6k points)
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!

Excellent, it's triggered correctly this evening, I've setup 4 applets based on the available weather condition triggers, I'm not sure what other options there are for updating the variable within Sequematic? How is everyone else doing it?

That's a great approach! I actually have an applet which pushes the weather condition into SEQUEmatic every day at 4pm (which is always before sunset here in Sydney).  Screenshot below. That works well, but doesn't mean the weather is always up to date. I think I'll be updating mine to use your approach instead.

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!
Do you need help using SEQUEmatic? Search here or post a question, and one of our experts will respond to you as soon as possible.
113 questions
118 answers
361 comments
27 users