[Project Share] The Frankenstein Security Cube: Reusing an Xbox Kinect v2 for Local-First Voice & Surveillance.

Repurposed Xbox One Kinect V2 as a local voice mic AND security camera for Home Assistant (no coding, 16 GB mini PC)

Hey all, I wanted to share a build I’ve been working on. I’ve turned an old Windows mini PC (GMKtec NucBox G10 Pro, Ryzen 5 3500U, 16 GB) into a local-first home server running Home Assistant. An old Xbox One Kinect V2 is both the room mic and the bedroom security camera.

It’s local-first: voice control, lights and camera recording all work without the internet. It’s not air-gapped (the PC is online, and my Ring doorbell is cloud-only), but the core of it runs locally. I can’t code, so this was a lot of trial, error and reading logs.

How it fits together

[VOICE]
Kinect mic ─► Windows ─► WSLg sound bridge ─► Ubuntu (WSL2): Linux-Voice-Assistant
   ─► hears "Okay Nabu" locally ─► streams to Home Assistant VM (ESPHome API, port 6053)
   ─► Speech-to-Phrase ─► automation ─► Piper reply ─► soundbar

[VIDEO]
Kinect V2 ─► KinectService ─► OBS ─► OBS Virtual Camera
   ─► Agent DVR (console mode, FFmpeg) ─► recordings on a 4 TB drive (kept 7 days)
                         ▲
Home Assistant VM ───────┘  Agent DVR integration (local polling)
  • Home Assistant runs as a Hyper-V VM on the same PC (4 GB).
  • Voice: the official voice satellite (Linux-Voice-Assistant) is Linux-only, so it runs in Ubuntu under WSL2. The Kinect mic comes in through WSLg’s sound bridge. WSL is set to mirrored networking, so Linux shares the PC’s IP and Home Assistant can add it as an ESPHome device. Speech-to-Phrase (the offline speech engine) and Piper (voice) run as Home Assistant apps.
  • Camera: OBS turns the Kinect into a virtual webcam, and Agent DVR (free for personal local use) records it. Home Assistant’s Agent DVR integration gives me the live feed plus an alarm panel.

Gotchas that cost me time

  1. Agent DVR couldn’t see the OBS Virtual Camera (“Could not find output pin”). Agent DVR installs as a Windows service, and most likely because services run in a separate session from your desktop, it can’t see OBS’s virtual cam. Fix: stop and disable the service, then run Agent.exe as a normal program (“console mode” in their troubleshooting docs). I also set video_size=1920x1080 and framerate=30 in its FFmpeg options to match OBS. I’m not sure those are needed, since the console mode change was the real fix.
  2. Speech-to-Phrase ignores custom_sentences files. It only learns phrases from automations with a Sentence trigger, so all my voice commands live in automations.
  3. Running out of RAM caused crashes (my voice listener died mid-session). The BIOS was reserving 3 GB for the integrated graphics. Dropping “UMA Frame Buffer Size” to 1 GB gave back 2 GB. Add a bigger page file and turning off a pile of startup apps, and I went from 0.7 GB free to 4.6 GB.

How it’s wired

  • “Okay Nabu, heading out” → arm away (Agent DVR’s Away profile)
  • “Goodnight” → arm night (also dims the lamp and turns off the lights)
  • “I’m home” / “good morning” → disarm

Still on the workbench

  1. Voice test: the camera commands work when typed into Assist, but I haven’t tested them by voice yet.
  2. Record only while armed: right now it records on any motion. I’m switching it to record on alerts only.
  3. Mic level: the Kinect works as a decent room mic but is on the quiet side. Its fancy beamforming needs Microsoft’s Kinect software, and I’m using it as a plain Windows mic. Next I’ll try the listener’s mic gain settings.
  4. Auto-start at boot for OBS, Agent DVR and the voice listener.

Then a 32 GB RAM upgrade. Happy to answer questions about the WSL audio or the OBS virtual camera setup.

Update: what a Kinect v2 can really do in Home Assistant (whisper-quiet voice, sleep and presence, a free checker tool, no more OBS)

Since my first post I have gone much further with the Kinect, so here is the update. I will be straight about who did what: I came up with the idea, own the hardware, chose where everything sits, and ran every test and reported the results. I cannot code, so an AI assistant (Claude) wrote all the programs and analysed my test results. Nothing here would exist without both halves.

1. Much better voice pickup
My Kinect mic used to be poor: I had to speak loudly and close to it. Now I can whisper the wake word and give commands in a soft voice from across the bedroom (“Okay Nabu …”). It has gone from yelling to whispering, and it picks up quiet speech better than my Google Home speaker, which surprised me.

  • What I know: it works, and I noticed it myself in daily use.
  • What I do NOT know: exactly why. The Kinect SDK can steer a “beam” of its four microphones at whoever is talking, and my best guess is that having a program keep that audio beam open is what switches it on. I have two small programs that do this and I have not isolated which one (or whether other changes I made at the same time) caused the improvement. Treat the cause as a guess.

2. One small background program (a “hub”) replaced OBS
The AI wrote a small Windows program that does three jobs: tells Home Assistant if the room is empty / someone is in the room / someone is in bed, feeds the camera picture straight to Agent DVR (colour when the room is light, infrared when it is dark, switched by measuring the light, not a timer), and keeps the microphone beam open. So OBS and its virtual camera are gone, and my “OBS wasn’t running at 11pm so the night switch failed” problem went with it. Everything stays on the PC; Home Assistant only gets numbers and words, never pictures or sound.

3. Home Assistant sensors from the microphone beam
The hub sends numbers only: someone talking (yes/no), the direction the sound came from (degrees), and loudness (0 to 100). I have not built any routines on them yet.

4. Sleep and presence tracking (numbers only)

  • Bedroom movement sensor (Agent DVR motion alert into a Home Assistant webhook).
  • Presence from the Kinect’s body tracking: empty, in the room, or in bed. “In bed” is worked out from how high the head is above the hips (lying is near zero). I walked, sat and lay down to tune it and the AI set the threshold from my readings.
  • Restless-night count between “goodnight” and “good morning”, plus a night report: roughly when I got into bed, when I fell asleep (20 minutes with no movement), trips out of bed, restlessness per hour and a simple sleep score. I can ask “how did I sleep” by voice and it shows on a dashboard card.
  • Cross-check: the hours Home Assistant worked out matched a cheap Fitbit Flex 2 I also wear. That is a sanity check, not a medical result.
  • Routines: lights off after the room has been empty 10 minutes, lights on when I walk into the empty room after dark, a dim night light when I get out of bed after goodnight.
    No faces, no recognition, no gestures, and no pictures used for any of it.

5. A Kinect Checker tool
Because I kept wondering “is this Kinect actually good enough?”, we built a small free program that checks every part of a Kinect v2 and shows only numbers (no pictures, no recorded sound):

  • Seven checks: sensor, colour, infrared, depth, body tracking, floor/tilt and the microphone beam dial. Mine passed all seven standing, sitting in my chair and from the bed (e.g. colour 15 fps in a dim room, infrared/depth/body 30 fps, 21 body joints tracked at about 1.8 m, mic beam heard from roughly -32 to -1 degrees).
  • Tests (version 1.1, my first full run on 13 Nov, all 7 checks passed again, 30 fps on colour, infrared, depth and body tracking):
    • Beam accuracy: the mic beam was on average 3.8 degrees away from my head (505 readings), rated GOOD.
    • Whisper test: first try the room was noisy and my whisper was 5 dB under the noise (rated LOW); second try in a quiet room I was 32 dB above the noise (GOOD). So whispering works when the room is quiet and the TV/fans are off, which matches what I see day to day.
    • Walk test: tracked me out to 3.0 m and heard my voice from my direction out to 2.9 m, with no tracking drops.
    • TV noise test: see the limits below.
    • Also a CPU report (the checker 6%, my hub 7%), a before/after history so you can see if moving the Kinect helped, and placement tips. One thing it flags for me: it never sees the floor, so it reads the Kinect height as 0.00 m (it is really about 1.65 m up), a known weak spot I have not fixed.
      Who did what here: I also caught bugs (a missing button, the licence not changing) by looking at screenshots and correcting numbers, for example my chair is 1.7-1.9 m away, not the 3-4 m the AI first guessed. I ran every test in my own bedroom and fed back the results; the AI wrote the code and read the numbers. It has not been tested on any other PC or Kinect yet, so I would love help with that.

Honest limits

  • My TV is directly under the Kinect. The TV noise test said the TV was mistaken for a voice about 83-92% of the time across my runs (83% on the latest), from the TV’s direction (about -5 to -9 degrees), and the TV was louder at the microphones than I am. So the beam does not fix a loud TV right below it. The hub does nothing about that yet; moving the Kinect aside or lowering the TV when talking is the real fix.
  • One bedroom, one Kinect, one Windows 11 PC.
  • Sleep numbers are estimates from movement, nothing clinical. Fan noise can count as sound unless the quiet gate is raised.

Get it
GitHub (MIT licence, free to use, change and share): GitHub - benyb1986-max/kinect-v2-checker: Checks every Kinect v2 feature, with a microphone beam test. Numbers only, no pictures. · GitHub
The page has screenshots. It is source code for now (no ready-made .exe yet); you build it with one double-click. You need Windows 10/11, a Kinect v2 with its PC adapter on a USB 3 port, and the Kinect for Windows SDK 2.0. It builds with the C# compiler already in Windows.

If you try it, I would love to know your results and what else you would want it to check.