Help Irrigation switch integrate with HA

Hello i need help integrating this switch to HA, which is the best way to do it?

Can i use a sonoff or a device like it? Sorry im just a beginner, can you guys teach me how to connected also?

Thanks