Think I'm going to try this too under my tank. I've been triggering the lights with my apex, but that's getting old.Sure thing.
These are the electrical sensors I used to toggle lights on/off
Litever 12-24VDC Door Open Switch...
This is the kit I got but there are smaller ones if your cabinet is smaller.
Litever Kitchen Under Cabinet LED...
You may need these splitters if your planning on doing left/right side lights like how I did mine. I used one to split power to each door switch which powered 3 light bars each for each side.
Litever Power Splitter, 2 Way, 1 Female Jack to 2 Male Plugs, 5.5mm x 2.1mm, 1:2, Y Adaptor Copper Cable, for CCTV Camera & LED Strip Lighting Power Supply Connector https://a.co/d/fJjzcOY
Let me know if you have any other questions. This setup has worked great so far.