TP-Link's Kasa equivalent of the S20 plug-in switch has sunset and sunrise time events, which follow the local dusk and dawn times.
This is very useful for lighting (internal and external) - can we get this added to E-WeLink?
Okay I see what you mean. In my application I am more interested in the solar time than the clock on the wall so it works great for me but I can see where it presents an issue for others. They should make an option to set it either way.
My scheduled times on the app changed by an hour when daylight savings went into effect. What am I missing? It worked as expected for me. I figure in the background they are using UTC time.
Interesting that hobbyist amateurs are able to come up with solutions but Coolkit doesn't. I just found out to my astonishment that ewelink does not even support Daylight Savings Time and our scheduled timers all have to be manually changed now the clocks have gone forward to Summertime. When I raised this with support they replied as follows: "Yeah,the Winter timer does the same as well".
They don't even care.
Not wanting to wait for itead to implement this very usefull sunrise/sunset-function, I've flashed my 4 Sonoff's with ESP Easy firmware. Then I bought a second hand Raspberry Pi. Put (after OS Raspbian) Domoticz software on the rpi. Installed the Domoticz app on my Android phona. Added a 4-relay-board to the rpi. And now I can switch 8 different devices (mostly lights). All including sunrise and/or sunset times (including an offset).
It would be a very useful function ... wait for this too.
I hear you Mark. I am still pretty new to all of this and having fun experimenting with it. The script uses php's sun_info function and can do the twilight functions which I used. Only been running it a week but so far it has been reliable. I will take a look at Stringify!
Thanks, EW. My current lighting uses Energenie MiHome with IFTTT/WU to trigger at sunrise/sunset, but would prefer it with offsets, which IFTTT doesn't have (unlike Stringify which has a wealth of options including Civil Twilight). The nice thing about moving to Sonoff is the reliability and snappy response time; and native triggers are always preferable to 3rd party ones.
Trouble with IFTTT, apart from it being laggy and unreliable, is you feel your IQ drop whenever you use it. It's the Fischer Price Activity Centre of IOT.
Check out my last post here under the topic "Dusk and Down control". Using IFTTT you can now switch the sonoffs at dusk and dawn. If you can use my script with webhooks you can also adjust the time. If not you can still use Weather Underground's sunrise and sunset settings as a trigger event.
I'm holding off switching over several lights to Sonoff switches/sockets until this is implemented. But what is also needed is the ability to set sunset/sunrise offsets, eg trigger 20 minutes before sunset.
for any outlet and/or switch (both which run lights for me)... in addition to strict time schedules for on/off, i'd find it very useful to also turn on/off:
1) sunrise/sunset (as mentioned)
2) x min before/after a given time-- eg. bathroom fan turned off 30min after turned on (either by scheduled time, or by manual activation at the switch), turn off driveway lights 15min after turned on manually.
3) combo of 1 & 2... x min before/after sunrise/sunset. eg. turn on driveway lights 10min before sunset, turn off lights 5 min after sunrise. Or . Turn on outdoor lights @sunset, and turn off 2hours later (after sunset / sunset + 2hrs), turn back on 2 hours before sunrise and turn off at sunrise.
This is what I'm missing!