for my Google science fair project i am building a smart switch. it is a light switch that is based on a raspberry pi. the idea is that the raspberry pi will fit into the recess where a normal light switch fits and then connect to a touchscreen mounted over the top. the touch screen will be used to control the lights as
well as other services such as music streaming. the problem is though i have no idea how to control the lights with the raspberry pi
if anyone can help ill be extremely grateful thanks
p.p i cant use prebuilt systems as it has to be my work.