I want to control the light of my house with the Sonoff switch:

I searched in this and others forum some guide or manual but it's not clear how this system works.
I understood that:
- I need a sonoff hardware, easy for now

- I need Domoticz
- I have to link domoticz system with Sonoff hardware via MQQT (Screenshot_11.png), but.. how??
Thanks.