Will this work for simple flood light on/off at sunset/sunrise?

Looking to automate the flood lights based on sunset/sunrise. Thanks!

use the timer block instead of the IF block

every day at sunset
with
switch 2 and 3
turn on

every day at sunrise
with
switch 2 and 3
turn off

use preset times for sunrise/sunset

or if you like the IF block

if
time happens daily at sunset
then
blah blah blah

if
time happens daily at sunrise
then
blah blah blah

Why wouldn’t you use Smart Lighting for this?

2 Likes

I didn’t consider the Timer block so I may try it. When I go back to my Home page, what is that counter on the right of the piston line that is counting down?

time until the piston executes when using a scheduled time

Interesting, I didn’t set a schedule but it says it will run again at midnight.

+1 for Smart Lighting

My piston above using an IF statement seemed to work as expected. Now that two of you have mentioned Smart Lighting, I’d like to know how it would be better. I guess my way of thinking is that I’d like to keep all of my automations being done by Pistons. Thanks!

With Smart Lighting, it’s possible (depending on the devices used) that everything will run locally and not be subject to internet connectivity. Running under webCoRE, it’ll never run locally.

Now, having said that, I am not using Smart Lighting for any of my automations because I always seem to need the extra power, capabilities and flexibility of webCoRE. Also, like you, I like keeping all of my automations under webCoRE. I’m not very worried about local processing for the most part because I have a seperate, monitored, and reliable security system and nothing I run in SmartThings s that critical.

© 2019 SmartThings, Inc. All Rights Reserved. Terms of Use | Privacy Policy

SmartThings; SmartApps®; Physical Graph; Hello, Home; and Hello, Smart Home are all trademarks of the SmartThings, Inc.