There are many options. For the wireless part my suggestion is to use zwave or zigbee devices as both protocols are open and widely used.
You can use a raspberry pi with a controller and Home Assistant (or equivalent) or an Athom homey which is not fully open but freely programmable.
Option: https://xiaomi-mi.com/sockets-and-sensors/xiaomi-mi-smart-so...
And Ikea will release zigbee wall plugs this year, their gateway uses the open coap protocol (no need to use their app) and as said you can also use any zigbee controller you want.
Fibaro sells zwave wall plugs, but there are others.
Finally sonoff has wifi plugs which can be flashed with open firmware.