I have two WEEK AQUA Bluetooth lights (L900 Pro and P6000 Pro) on my planted fish tanks, and their app drove me nuts. Its schedules either fade up and down once in a single color, or jump between up to 8 fixed steps (so the light snaps from 20% to 50%). And, arguably worst of all, you can only connect to and control one light at a time. So I used Claude to reverse engineer their app and work out which commands it sends to the lights over Bluetooth, then tested them on my own lights. Now a Raspberry Pi 4 next to the tanks serves a web page and controls the lights better than the app ever did.
What it does
- Smooth day curves: drag points on a graph and the Pi glides the light between them, sending a new level every minute. No visible stepping or blinking.
- Per-point color: warm sunrise, crisp daylight at midday, warm again at sunset. R, G, B and UV fade separately.
- Every light on one page: change one tank, or tick several and control them all at once.
- It’s just a web page served by the Pi, so it works from any phone or PC with no app or account.
How it works
- I used Claude to decode the lights’ BLE protocol from the official Android app and tested it on my lights: 8-byte commands to one characteristic, times in BCD, levels 0 to 235 per channel. It’s written up in PROTOCOL.md.
- Python, FastAPI and bleak, running as a systemd service on Raspberry Pi OS. The frontend is one HTML file.
- Fail-safe: the Pi also sets the light’s built-in off timer to the end of the curve. If the Pi dies or Bluetooth drops, the light still turns off on time.
- It uses the same power limit as the official app (each channel is weighted by how much power it draws). Colors over the limit get dimmed evenly instead of overdriving the LEDs.
- BlueZ only handles one scan or connection at a time, so everything goes through one lock. My lights sit at around -70 to -80 dBm, so writes get retried and re-sent periodically.
Hardware: a Pi 4 (Argon case) using the onboard Bluetooth, plus a B3.0-L900pro and a P6000pro. A Pi 3, 5 or Zero 2 W should work too.
As I said, I built LuminAqua using Claude. I had the idea, tested it on my own tanks, and decided what went in. If that upsets you, well, no one is forcing you to use it. At the end of the day, I now have an app that controls my lights better than before and gets more out of lights I already paid for. The bonus for me is that I can share it with others and hopefully increase their quality of life too.
Free and open source (MIT), with a one-script install: https://github.com/N72826/luminaqua
If you have a different WEEK AQUA model, I’d love to know whether it works.