# A €7.98 LED strip from Action now follows my kids' screens

> Source: <https://blog.hagebols.com/posts/action-led-strip-follows-the-screen/>
> Published: 2026-12-06 00:00:00+00:00

**Recommendation:** Cap LED-strip frames at 16 segments and read only the screen rows you need; the source measured compositor load falling from 16.8% to 6.0% of a Pi 400 core.
More in the playbook "Running AI in production": <https://wpnews.pro/playbooks/production-ops>

Early this morning my kids were already at their Raspberry Pis, and the wall behind them was lit up. Behind each screen hangs a Battletron Monitor LED Strip from [Action](https://www.action.com/nl-nl/p/3218223/battletron-razer-monitor-ledstrip/). It cost €7.98. In the room the wall matched the screens, on my phone's photo it came out purple.

I wanted the colours on the screen to show up on the wall, for games. The box says it can do that, with Razer Chroma. It also says this.

My kids don't have Windows, they have Raspberry Pis. And I wanted to get rid of the Chinese app it comes with.

I had Claude Code do the digging, and my first question was whether nobody had reverse engineered this yet. Someone had.

Fu-raz wrote a [SignalRGB plugin](https://github.com/fu-raz/signalrgb-tuya-razer) and a [Node library](https://github.com/fu-raz/nodejs-tuya-razer) that speak the protocol the Razer PC app uses, and there are notes in [tinytuya issue #464](https://github.com/jasonacox/tinytuya/issues/464). The strip is a Tuya device that listens on UDP port 40001 and takes encrypted frames of colours after a handshake.

Every frame carries a CRC of a fixed controller ID, which is `420691337420b00b`. Somebody had fun.

To do the handshake you need the strip's local key, and Tuya only hands that out through its cloud. So I paired the strip once in the Smart Life app, logged in from a script with the app's QR code and read the key. After that the app can go.

A colour frame is small. This is the Rust that builds one, from the daemon I ended up with.

```
/// Type-0x10 payload: `00` N, N x HSV(6), segCount16, segCount x 1-based colour index.
pub fn colour_payload(colours: &[[u8; 3]], map: &SegmentMap) -> Result<Vec<u8>, ProtoError> {
    if colours.is_empty() || colours.len() > MAX_SEGMENTS {
        return Err(ProtoError::ColourCount(colours.len()));
    }
    check_indices(&map.0, colours.len())?;
    let mut p = Vec::with_capacity(2 + 6 * colours.len() + 2 + map.len());
    p.push(0);
    p.push(colours.len() as u8);
    for &c in colours {
        p.extend_from_slice(&hsv_encode(c));
    }
    p.extend_from_slice(&(map.len() as u16).to_be_bytes());
    p.extend_from_slice(&map.0);
    Ok(p)
}
```

That `MAX_SEGMENTS` check is there for a reason. With a webcam pointed at the strip I sent it more and more segments.

| Segments in a frame | What the strip did | 
|---|---|
| 16 | Works, each segment is about 7 cm of strip | 
| 20 | Accepted | 
| 24 | Ignored, it keeps the previous frame | 
| 32 or 72 | Lights up once, then hangs until you pull the power | 

So it's 16. At 30 frames a second the strip still changes on almost every camera frame, which is plenty. The daemon sends 10.

On the Pi the daemon reads the screen through Wayland, takes the edges, turns them into 16 colours and sends them. My first version copied the whole screen every frame. On a Pi 400 at 10 frames a second that cost the compositor 16.8% of a core. Now the GPU copies the frame into a buffer and the daemon reads only the rows it needs, and the compositor is down to 6.0%. The daemon itself went from 3.5% to 2.7%.

The Pis also run a timer I use to limit how long my kids are on screens, so the strip uses that too. In the last 5 minutes it pulses orange, and at 0 it turns red.

The strip lost its key once. I moved it to another Wi-Fi network in the app, and that activated it again, with a new device ID and a new key. When I plugged it in behind the screen I hoped that wasn't going to mean another new key. It doesn't. Power is fine, only the app does that.

This morning, 15 minutes before I took the photo at the top, my kids turned on their Pis and the strips stayed dark. The strips get their power from the Pis, so they had been off all night, and my firewall gives them no internet.

The strip answered on its normal Tuya port with the right key, but stayed silent on 40001. I let it online for a few minutes and the handshake worked straight away. After I blocked it again it kept working, and a new handshake 3 minutes later worked too. It needs to reach the Tuya cloud once after it powers on. For now the firewall gives a strip 180 seconds of internet after it asks for an address, then shuts it out again.

I don't like that it talks to the internet at all, so that has to go with a firmware swap.

Inside the controller sits a chip whose marking I can't read, next to a 26 MHz crystal.

People on [Elektroda](https://www.elektroda.com/rtvforum/topic4093893.html) found a BK7231N in the 90 cm sibling of this strip and run [OpenBeken](https://github.com/openshwprojects/OpenBK7231T_App) on it. The back of my board has 9 test pads.

I'll probe those with my Analog Discovery 3 and use it as the serial adapter to flash the chip. There's no ready-made tool that turns an AD3 into a serial port for the flasher, so I'll write that first.

The code is at [Kompas/lsc-ledstrip](https://github.com/Kompas/lsc-ledstrip). It runs on a 64-bit Pi with a Wayland desktop, and the README explains how to get the key out of Smart Life. The protocol notes and every measurement are in [RESEARCH.md](https://github.com/Kompas/lsc-ledstrip/blob/main/RESEARCH.md) (written by Opus 5.5).
