Full threadoori·Tasmota is probably the open source firmware for smart switches. have used it for dozens of devices..https://github.com/arendst/Sonoff-TasmotaView on HN