This tutorial gives you a glimpse on integrating IoT devices with Google's ecosystem. This approach is scalable to a great many devices, has security designed in an only relies on the IoT device and Google Cloud Platform.
Build a setup where Google Assistant switches Sonoff S20. Switch your light on/off using your voice and the help of Google Assistant.