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
o bom seria progamar o timer do sonoff para reconhecer o horario am pm e montar uma cena a noite
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.
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
Sunrise/Sunset has been available in eWeLink scenes for some time...
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
http://lab.grapeot.me/ifttt/delay?event=Sunset_on&t=1410&key= webhook key
and create a webhook to youre device
this is a 2 step config!!
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: https://mresoftware.com/dusk2dawn.htm
The downloadable file has documentation as well as a new bonus script. Enjoy!