Page 1 of 1

how to get Sunset -15 mins and Sunrise +15 mins as condition

PostPosted: Wed Sep 18, 2019 5:06 am
by anupchavda
Hi

I'm struggling with this one and i know its probably something basic.

Basically i have:

Porch Door Sensor
Front Door Sensor
Porch Light

I want to Turn on the Porch Light when EITHER of the door sensors is tripped(or set to open) for 10 mins. but i only want this to happen during the timeframe of Sunset -15mins and Sunrise +15 mins (to account for dusk and dawn).

When i try to do this as a Trigger, the Conditions do not let me set the Sunset/Sunrise elements. I only have "Dark" and "Daylight" conditions, and i cannot select a schedule (i created a schedule called Sunrise and offset by 15 mins and the same for Sunset.

what am i doing wrong??

Thanks for any feedback!

Re: how to get Sunset -15 mins and Sunrise +15 mins as condi

PostPosted: Wed Sep 18, 2019 6:04 am
by FlyingDiver
Use your two scheduled events to set a variable (darkEnough) to true/false. Then use darkEnough as a condition in the trigger.

Re: how to get Sunset -15 mins and Sunrise +15 mins as condi

PostPosted: Sun Sep 22, 2019 4:50 am
by anupchavda
THANK YOU SO MUCH!!!

I'm relatively new to Indigo (i've been using VERA PLUS for the last 4 years) so there are small differences to achieve what was fairly simple in Vera.

Thanks