Using google assistant and blynk app to control my Fan; NodeMCU connected to internet, a relay module and google assistant to trigger the job.
I basically connected my nodeMCU to the blynk app, using the key generate by the app and than, I'm able to controle the buttons created on app:
1- Node MCU connected to the relay module using 3 jumpers:
a. Energy;
B. Ground;
c. D1 pin to controll [0 = off & 1 = on]
d. NodeMcu connected to energy, in that case I'm using a 5v phone charger, same as the USB computer;