you can use a relay to easily turn the light bulb on and off using the project presented in this video. however if you wanted to dimm the light than you'll need an AC dimmer module and a dimmable light bulb.
alright so i have made my own slider using canvas and a ball. it slides vertically and even returns to bottom like i want it too, but i still need to use it for bluetooth. heres the main problem, i set the size of the canvas to 255 so all i would have to do is convert the position directly into bluetooth data but what happend is the slider seems to be reversed or upside down and i dont know how to change that (so sliding it down is 255 instead of 0 like i wanted)