Isn't the inverter listed to be grid-tied? Then you don't need relays, the logic is inside of it.
Example: https://www.amazon.com/Ampinvt-Inverter-Battery-Charger-Frequency/dp/B09V58GSB1