Start a new topic

Dusk and Down control


A nice feature would be dusk/down on/off functionality.

Preferably with an configurable offset (with or without randomization).

Would be perfect for all outside illumination

Kind regards

51 people like this idea

Thank you Eelke.

Stephen Howe yes  but its a event meaning you cant change the timing to add or remove minutes. 
sun set is sunset. and sunrise is sunrise. but yes  its using your phone location (registration - adres ) of setting the time

1 person likes this

Guys, for my clarity, if I name the City I live in and set Dawn - off / Dusk - on the software will switch based on the City time zone?

Angela Angle  what scam are you trying to set?

Nice post

for any query or support go here

Facebook Klantenservice

If anyone is interested I recently updated my dusk2dawn php script.  This is designed as a cron job script that runs on a web server and automatically sends out commands through webhooks on IFTTT.  It gives you precise control over dusk to dawn timing as well as any other timing functions on any device that can be controlled through IFTTT.  I have been using it sucessfully for two years now.


You can find it on my website at:

The downloadable file has documentation as well as a new bonus script.  Enjoy!

Iftt has a trigger sunset in the time or weather app
as you can only have a event after it happens the down dusk is most of the time to late
trigger this webhook key
and create a webhook to youre device
this is a 2 step config!!

Sunrise/Sunset has been available in eWeLink scenes for some time...


2 people like this
Just seen that Alexa now has Sunrise and Sunset included. I can now turn my Sonoff switches via the routine function at dawn and dusk. Great News!
Any home automation application can be programmed depending on the sunrise / sunset, calculated from the time zone. And you can add + - X minutes. I do not understand what Ewelink expects to improve basic things.

1 person likes this

I have a Dusk and Dawn box that I have mounted outside. When the Sonoff 1 gang turns on by schedule the dusk sensor turns on the lamps if it s dark enough. When it gets lighter the sensor turns the lamps off. Towards the evening it goes on again and off as the schedule say so. There are a different in Lux between on and off at the sensor.It works great

I put a standard photocell inline to a Sonoff Basic device (called -Darkness).

When it gets dark, -Darkness turns on. I created a Scene in the eWeLink app to turn on the appropriate lights when -Darkness turns on. 

You just have to position the photocell so it turns -Darkness on at the right time.  

If it gets too cloudy/dark during the day, the lights go on and stay on.

I turn the lights off at a fixed time every night.

I named it -Darkness so it appears at the top of the list.

(60.4 KB)

2 people like this

o  bom seria  progamar  o  timer  do  sonoff para reconhecer o horario am  pm e montar uma cena a noite 

It would also help if Amzon were to incorporate a Dusk setting in Alexa. This would allow you to turn on the Switches via the Routine function. I recognise it is wishful thinking but I have suggested it to Amazon in the feedback option.
IFTT is really useful but hampered by sonoff/itead only making switch on & off states available for use. The SC gives some really good functionality and includes dusk as a trigger but as mentioned above the scenes are not controllable by anything else, even you manually pressing the button won't switch one off. I've raised it with them and hopefully we'll get some improvements but at the moments scenes are severely limited in the usability.
Login or Signup to post a comment