In this video I show you how to achieve failsafe when implementing IoT light switch using ESP32, ESP8266 or Arduino such that even if the Microcontroller fails or wifi goes down, you will be still able to turn ON or OFF the lights. Since you can control your lights with web interface, you can integrate it with Openhab and subsequently with Amazon Echo or Google Home using voice commands.
Code for the project which uses web requests
https://github.com/samirsogay/espip...