iOS 10's Home app allows you to control devices like lamps, lights, thermostats, locks and other things. Setup is very easy if you are using a device that conforms to Apple's HomeKit standard. Your iOS device will quickly recognize the device without any configuration in advance. Then you can even set up schedules and actions for your devices.
Here’s a link to the device controller I was using, the KoogeekWi-Fi Smart Plug.