The Listening Nest Box
A camera and a microphone in an ordinary tit nest box, a Raspberry Pi 5 that watches both, and a phone that buzzes when somebody moves in. Everything runs at home. The only thing that leaves the house is one picture per visit, which the box publishes itself, and that part can be switched off in a single line.
This box has never received a firmware update from any agency. As far as we know.

What it does
- Sees into the box with an infrared-sensitive camera and a small IR light, day and night.
- Listens outside with a USB microphone and names the birds that sing nearby (BirdNET-Pi).
- Notices movement in the box, checks it with an object-detection model trained on its own visitors, and tells Home Assistant.
- Tells me with a push message on the phone, a "bird present" tile on the dashboard, and a live picture on iPhone and Apple TV.
- Files a report after each visit: one picture of that visit with a short caption, on Mastodon. That is the only thing that goes out, the pictures carry no metadata, and anyone rebuilding this can leave it switched off. See The reports.
Status: installed in October 2026 and running through the winter. Since November the box uses a detection model trained on its own visitors, see Detection. Real nesting results will follow in spring, so the results page is honest about being short for now.
How the pieces fit
camera + IR light (inside the box)
|
Raspberry Pi 5 -- USB microphone (outside)
| \
| +-- BirdNET-Pi: bird songs, web interface
|
MediaMTX -- RTSP / WebRTC stream
|
+-- watch.py: motion -> bird check -> webhook + report
| |
| Home Assistant
| | |
| push message dashboard tile
|
Home Assistant camera -> HomeKit -> iPhone / Apple TV
Read on
HardwareParts, wiring, the IR light, the box.
Live streamCamera to RTSP and WebRTC with MediaMTX.
Bird soundsBirdNET-Pi and the outdoor microphone.
DetectionThe full watch script and how it decides.
Home AssistantPush, dashboard tile, live picture on Apple TV.
ResultsWhat worked, what did not, what comes next.
VisitsA diary of who looked in, and when.
Principles
- Local only. The stream stays in the home network, recordings are not uploaded anywhere.
- No usage data. Every library that can phone home is switched off (see Detection).
- Disturb the birds as little as possible. The IR light is invisible to birds at 850 nm; still, check the local rules for watching nesting birds and keep the box closed during breeding.
Licence and credits
- Code and configuration (the watch script, the MediaMTX and systemd snippets): MIT licence. Use, change and share freely.
- Texts and photos: © 2026 snoth0x53, all rights reserved. Please do not copy them. Building the project yourself is exactly what this page is for, and links to it are welcome.
- Built on other people's work, each under its own licence: BirdNET-Pi with the BirdNET models, Ultralytics YOLOv8, MediaMTX and Home Assistant. Read their licences before any commercial use.