ilges wrote:Those Sonoff - WiFi have the functionality I need, but how it works if for some reason my internet connection is not working?
I need this relays working properly even if I've got no internet, and even if my energy goes off for a while. For this reason I would need the RTC, to make sure that the relay will work at the programmed times.
You may want to look into an orvibo. I have only played around a bit with it viewtopic.php?f=11&t=7914 but I believe it has a programmable schedule.
A number of I2C RTC can easily be used with the ESP8266 - here is an example with an MCP 79410. viewtopic.php?f=11&t=6854&p=36831&hilit=sensor+board#p35199
What to do with a power failure is an important consideration and I am not sure.
Hope this helps.
DrG