There are people who have done this exact same kind of project before for the same reason, to control color-changing pool lights, but rather than direct you to what was previously done, at this point by far the easiest way is just to do it with web core. The set up is a little complicated, but there are lots of community members who will be glad to help you.