Automation - based on weather

Hey Guys,

I am currently have an automation to turn on light 30 min before sunset.
What i want is to have a condition here -

  • turn on lights 30 min before sunset if the weather is sunny
  • turn on lights 60 min before sunset otherwise.

How could i achieve this?

Thanks in Advance. :slight_smile:

Do both: trigger on t-60 mins with not sunny as a condition, and on t-30 mins. Assume it doesnโ€™t matter if you try to turn the lights on when they already are?

So you mean 2 different Automations? or 2 triggers?

Sorry if these are noob questions.

You could do it either way: up to you. Playing around and finding what suits you best is part of the learning process. Two automations would be the simplest way: write the 30 mins one, copy it and alter the copy to 60 mins with the added condition.