This is an example of smart switch with ES8266 Wemos D1 R1 connected to Google Home and Assistant using MQTT
This example was used at youtube tutorial : How to connect ESP8266 and Arduino with Google Assistant and Google Home App without IFTTT https://youtu.be/0czm7VIgoZs - Part 2 https://youtu.be/-tnYAI3mE24 - Part 1