Close Garage door at sunset?

Hi Guys
I have a momentary zwave switch on my garage door to open and close it I also have a sensor so I can see if its open or closed.
I want to activate the momentary switch at sunset but only if the door sensor is open.
Any ideas

You might consider just getting a notification for this and then manually hitting the switch in the mobile app. I can think of lots of situations when I might have the garage door open at Sunset and I wouldn’t want it automatically closing on me. Just a thought. :wink:


you could also install my garage door integration app, and then close it with smartlighting at sunset

1 Like

@JDRoberts, I have my garage setup to open/close on presence and on a time delay if someone (my son) leaves it open. The big BUTTT… is I also have a camera aimed at the doors with motion detection actively running. So my automation must meet the condition of NO MOTION for 5 minutes before the doors will auto close. Works well. And no I’m not using Webcore for this as I don’t trust large heavy doors to the cloud :wink:

1 Like

WEBCORE! :stuck_out_tongue_winking_eye::stuck_out_tongue_winking_eye:

1 Like

OK I have WebCore installed and I have created a piston
One of the conditions is when the sensors contacts are open
now I think I have to add another condition to execute after sunset
Not sure how to add that

Having no luck
I’m using
What to Compare “Virtual Device - Location mode”
What kind of comparison " I have looked at each of the entries here and there are none for sunset"

OK I found this not sure if it will work
What to compare
Variable - datetime $sunset
What kind of comparison
is after
Compare to
Preset Sunset

Im not sure y I have to pick sunset twice once in what to compare (im not sure what the $sunset is) then again compare to preset sunset

Thanks I got it I think I wont know until tonight
What to compare Virtual device - Time
What kind of comparison is after
Compare to Preset - Sunset

I have a question about
Only on these days of the week
Only on these days of the month
Only on these months of the year
Do I have to select all in each to work of can I just leave not selected and it will work all the time

Thanks Robin.
Is there a way to get a text when a piston starts

If I have a piston that operates a switch to close my garage door when the sensor is open what happens if I have something under the door and the door reverses I’m assuming the door will close and open close and open close and open all night long how would I prevent that

Ok one of the attributes is after sunset so I see what you are saying if its after sunset and I open the door it will close. Is there any way to get it to only execute only once every evening

Robin I know its being awhile. Im having trouble with what you suggested
Door stays open for more than 30 min (i used 4 min)
time is after sunset
Close door

If I open the garage door after sunset then it will work but if the garage door is open before sunset comes then the piston will not run
See logs I i opened the door at 5:07 (sunset is 5:18)

1/20/2020, 5:07:42 PM +136ms
+0ms â•”Received event [Home].time = 1579558024676 with a delay of 37460ms
+414ms â•‘RunTime Analysis CS > 156ms > PS > 242ms > PE > 15ms > CE
+417ms â•‘Runtime (37292 bytes) successfully initialized in 242ms (v0.3.10a.20190223) (416ms)
+418ms â•‘â•”Execution stage started
+425ms ║║Cancelling condition #2’s schedules…
+427ms â•‘â•‘Condition #2 evaluated true (1ms)
+620ms â•‘â•‘Comparison (time) 61662564 is_after (time) 1579558680000 = false (7ms)
+622ms â•‘â•‘Condition #3 evaluated false (194ms)
+623ms â•‘â•‘Condition group #1 evaluated false (state did not change) (199ms)
+650ms â•‘â•šExecution stage complete. (232ms)
+651ms â•šEvent processed successfully (651ms)
1/20/2020, 5:07:16 PM +476ms
+0ms â•”Received event [Home].time = 1579558024676 with a delay of 11800ms
+10805ms â•‘RunTime Analysis CS > 10582ms > PS > 210ms > PE > 13ms > CE
+10808ms â•‘Runtime (37296 bytes) successfully initialized in 210ms (v0.3.10a.20190223) (10806ms)
+10809ms â•‘â•”Execution stage started
+10809ms â•‘â•šExecution stage complete. (1ms)
+10811ms â•‘Setting up scheduled job for Mon, Jan 20 2020 @ 5:07:04 PM EST (in 1s)
+10819ms â•šEvent processed successfully (10819ms)