Write custom firmware to run old IP cameras locally in Home Assistant

A Redditor and Claude wrote replacement firmware for a Xiaomi Mi 360 and a Reolink E1 Zoom, giving both local RTSP, MQTT discovery, two-way audio and responsive PTZ in Home Assistant.

Done withClaudeinHome Assistant· Oct 30, 2026

What they did

The poster had two cheap cameras gathering dust, a Xiaomi Mi 360 and a Reolink E1 Zoom, and disliked the vendor apps, the setup, the audio and the lag on pan and tilt. They set out to write their own firmware for both. After commenters asked, they said the code was written by Claude and their agents, and Claude is listed as a contributor on the public repo. To get in, they rooted the Reolink by repacking the stock firmware image with an SSH service and their own public key, then uploading it through the camera's web page. The new firmware streams over RTSP via go2rtc and announces itself to Home Assistant through MQTT discovery.

How it went

Both cameras now run the replacement firmware with working two-way audio, pan and tilt that the poster calls responsive, and hardware settings the vendor app never exposed. Video and audio go to a Synology box rather than an SD card. The vendor's on-camera person and motion detection models have not been ported yet. The poster published the code and per-device notes.

Worth knowing

Several commenters pointed out that Reolink cameras already work locally with Home Assistant, so the gain there is control, not privacy. Others questioned whether AI-written firmware is safe to run on a network device. The Reolink firmware had only CRC and hardware ID checks, no signing; other models may not be so open. The coding tool around Claude was not named.

Try it

With Claude· 5 parts to fill in

Help me replace the stock firmware on my [camera model], which I own. Start from the firmware image in [path or download link] and my shell access over [SSH or UART]. Map the hardware first: SoC, sensor, audio, motors, storage. Then build a minimal firmware that serves the video over RTSP through [go2rtc or another server], supports pan and tilt if the camera has it, and announces itself to [Home Assistant over MQTT discovery]. Keep a backup of the original image and write down how to recover a camera that will not boot. Stop and ask me before flashing anything to the device.

Square brackets are the parts to fill in. The prompt is ours; the story is theirs.

Where they said it

Related