Trigger X mins before "dark"

Posted on
Wed Sep 28, 2022 9:08 am
MarcoGT offline
Posts: 1091
Joined: Sep 11, 2014
Location: Germany

Trigger X mins before "dark"

Hi all,

I have a trigger which fires when dark, but I would like to have let's say 30 mins before is dark; it seems it is not possible with GUI, therefore only with Python?

Thanks
Marco

Posted on
Wed Sep 28, 2022 9:31 am
jalves offline
Posts: 744
Joined: Jun 16, 2013

Re: Trigger X mins before "dark"

How about a schedule that is based on 30 minutes before sunset instead?

Running Indigo 2023.2 on a 24" iMac M1), OS X 14.4
Jeff

Posted on
Wed Sep 28, 2022 9:49 am
jay (support) offline
Site Admin
User avatar
Posts: 18219
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Trigger X mins before "dark"

Screen Shot 2022-09-28 at 10.49.17 AM.png
Screen Shot 2022-09-28 at 10.49.17 AM.png (858.11 KiB) Viewed 1468 times

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed Sep 28, 2022 11:17 am
MarcoGT offline
Posts: 1091
Joined: Sep 11, 2014
Location: Germany

Re: Trigger X mins before "dark"

Uhm...maybe I am missing something, but the triggering event is a motion event, will it work?
Basically

Code: Select all

if "motion" is ON AND is "dark-30"
then
"turn on light-1"




Posted on
Wed Sep 28, 2022 1:47 pm
Colly offline
Posts: 535
Joined: Jan 16, 2016
Location: Ireland

Re: Trigger X mins before "dark"

How about a variable that is changed by the schedule Jay suggested, so when variable is true light goes on. Reset variable to false during the day.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest

cron