I installed an Insteon Heavy Duty 120-277V Load Controller Assembly 1470 from Innovative Home Systems to programmatically control when my pool filter runs. It works great.
Mine has an oversized 40AMP relay, which should last a very long time. I also purchased the optional switch cover.
I chose the Insteon version since my Insteon environment has been rock solid for many years. But it's also available in Wi-Fi, Z-Wave and HomeKit versions if preferred.
Here's a couple of pictures for reference.