I would do some searching for Home Automation software. I choose Home Assistant because it met my needs, has a large following, and supports a lot of devices.
There is a lot of info about home automation on the web, can be kinda of overwhelming, but just keep reading and it should start to come together. Setting up home automation is not a quick project, but you can do small pieces, you don't have to do everything at once.
This is kind the order I got HA working:
- Setup weather station
- Setup HA
- Interrogated weather station into HA
- Found some wifi based relays
- Setup controlling pool filter with HA
- Setup controlling patio lights with HA
- etc
And just continue adding stuff as needed.
Note: I had my weather station before I decided to do home automation.