Minutes before/after Sunrise/Sunset Control

(Keith Croshaw) #1

So this feels like something that should already be created and probably already talked about in some post but I haven’t found it in the amount of time that I feel like investing in this and I’m sure someone knows SmartApp that does this…

I want to turn a switch on or off x mins before or after sunrise or sunset. Belkin Wemo does this surprisingly well.

I’m sure I could figure this out but I’m sure someone else has already, and tested it fully.

Thanks for any replies!

(Carson Dallum) #2

I too would like an offset capability before/after either sunrise or sunset. For instance, in winter it’s getting pretty dark in the house well before sunset. It would be nice to turn the lights on some preset time before sunset.


It already exists in the happens automatically part of a standard Hello Home Action. NOT the controls for the individual light. No custom code required. Not sure that meets your use case, of course.

See the following topic for screenshots.

(DLee) #4

Did you see the Sunrise/Sunset app under Convenience category (click the + at the bottom of your mobile app dashboard). It has the offset option you are talking about. I use it on a driveway post light switch, not to change modes. Hasn’t failed to turn on/off yet.

(Keith Croshaw) #5

@JDRoberts and @Dlee Thanks for the replies. I guess that might suit my needs but I don’t necessarily want to offset the entire mode change. It’s just one light I’m trying to offset as it is in the basement where it is much darker.

I’m not really using modes yet so I guess it could help but I would hate one light in my basement to dictate when my mode changes.

Any more ideas / Developer SmartApps community?


The one I mentioned can change the mode, but doesn’t have to. It’s just a regular Hello Home Action. So you could just set up a HHA to turn on one light triggered by x minutes before sunset, for example. No mode change. Or you could set up a HHA to just change the mode, no device actions. Or multiple actions on multiple devices, with or without mode change. Anything that’s available when creating a new HHA within the standard mobile app.

(Keith Croshaw) #7

Ok I see that now. Thanks I think this fits my needs.

I didn’t realize hello home could do things without affecting mode…

Another example of the confusing interface… Still love ya ST!