These are simple, No-Name smart plugs (I bought these at AliExpress). One of them has ESP8266MOD chip (by AI-THINKER), other one has ESP-12F chip (by TUYA L/N 0026). Both are actually same chips and ...
This is a compilation of various projects for ESP8266 and ESP8266MOD. However, the code can run on most Arduino devices with minor modification. There are instructions in the the readme of each folder ...