Arduino and Wifi 4 Pin LED Strip Controller

I use a wifi led strip controller (image attached), which connects great with my google home devices.

I want to add a pir motion sensor with an arduino which I know how to use, but just confused how I can hook this up being there are 3 grounds in the led controller, R B G.

The led controller would connect directly to the power adapter so that it keeps it's wifi connection, then I want the motion sensor to tell my arduino to allow the +voltage through to the led strip.

I'm thinking this can be done somehow with a relay, it's just the fact the led controller uses 3 ground wires, which are the RGB wires.

Thank you so much for any help

edit: I'm thinking I can just run the +voltage pin through the relay and keep the 3 negatives RGB wires out of the relay.

If you open the case, I'll bet it has an ESP8266 inside. In that case, just reprogram the ESP using the Arduino IDE.

I didn't open it up but I'm pretty sure you are right about the chip inside.

and it does work exactly as I assumed if I just run the +V wire through the relay and keep the ground RGB wires running directly from the controller to the strip.

I'm so excited! thank you thank you :slight_smile: