A truly smart relay module, offering sink and source capability (select per channel by jumper) for 4 opto-inputs, I2C interface with address selection to connect up to 8 modules to the same I2C bus, and socket for WEMOS D1 mini Wi-Fi IoT module (included).
This is a DIY soldering kit and comes in the size of a credit card, with just 80 x 55 mm footprint.
The (included) D1 mini Wi-Fi module with ESP8266 can easily be programmed using Arduino IDE, and smartphone or browser apps can be developed with free and available tools like Blynk.