Configure your smart switch module to work with Tasmota open source firmware.
Flashing Tasmota on Sonoff Mini R2 (Over the Air, no soldering, FW3.4) - Goodbye TP-Link HS200!
Sonoff Mini with Tasmota versus the competition - Scargill's Tech Blog
Instructions, Sonoff Mini dual switch support
Sonoff TH Origin 20A Switch Module (THR320) Configuration for Tasmota
Guide: How-to] Flash the Sonoff Mini with Tasmota : r/homeassistant
Tasmotized NodeMCU 8CH Sonoff Relay : 11 Steps - Instructables
Tuya mini Smart switch - Tasmota - Hardware - Home Assistant Community
SuperHouse #31: Sonoff Tasmota installation and configuration
Sonoff Mini with Tasmota versus the competition - Scargill's Tech Blog
Sonoff Basic - Tasmota
S1 and S2 on Sonoff Mini R2 not working when connected to a switch
Guide: How-to] Flash the Sonoff Mini with Tasmota : r/homeassistant