← All use cases

Use case P5 · Human

Homeowner has Claude Code turn a DJI drone and a spare phone into a security drone that launches when the alarm goes off

Codez (@0xCodez) ·

The short version

What they did

Codez plugged a spare phone into the drone’s remote and gave Claude Code (Opus 5.5) a prompt to build an app, a Home Assistant automation and a simulator test, so that the home alarm sends a push with a Launch button and the drone follows and films an intruder to the property line. The author says everything runs on the phone with no cloud.

Result (as claimed)

“I turned my DJI Mavic into a home security drone with REA & Opus 5.5. … no cloud. no GPS on the target. it all runs on the phone. iPhone or Android.” The author released no code or test logs (per Unwire.hk).

Prompt

Their prompt:

This is my own DJI drone, my own phone, my own alarm system, my own property and my own laptop. I want my alarm to launch my drone: when the alarm triggers, my phone gets a push with a “Launch” button. One tap and the drone takes off from its pad in the yard, finds the person running from my house, follows and films them up to my property line, keeps the camera on them from above until they’re out of sight, then lands and saves the clip. I’ll register the DJI developer account and paste the App Key myself. I’ll approve every install and every flight. I authorize you to set up the project on my laptop, build and install the app on my phone, create the Home Assistant automation, and run everything in the DJI simulator. Every change must be reversible. I’ve attached a photo of the drone’s About screen in DJI Fly, told you my phone (iPhone or Android) and my alarm brand. Done means: the alarm triggers a test push, the app passes a full simulated chase in the DJI simulator, and one real test where I set off my own alarm and walk out of my own door, while I watch every step.

A fuller version to copy:

I own a [DJI model], a [phone model and operating system], and a Home Assistant alarm using [alarm integration]. I want to explore an alarm-triggered drone app, starting only in a simulator. Here are the drone’s About screen and setup details: [attach files].

1. Check current DJI SDK support for this exact drone and phone. Stop if the proposed setup isn’t supported.
2. Build a status-and-battery screen and a Home Assistant test notification with a Launch button.
3. Test takeoff, hover and landing in the simulator, then propose a simulated follow-and-film test within [property boundary].

Explain each stage in plain words and report actual test results and failures. I’ll enter any developer key myself. Ask before installs or changes, keep them reversible, and don’t launch a real flight from this request.

Do it yourself

These steps are my suggested way in, not Codez’s setup.

Level: Advanced. You build a phone app on a drone SDK, wire up home automation and test in a simulator.

What you need

  • A coding agent such as Claude Code, and a computer that can build phone apps.
  • A DJI drone listed as supported by DJI’s Mobile SDK, a spare phone and a free DJI developer account.
  • Home Assistant connected to your alarm system.

Start simple

  1. Check that your drone model is on DJI’s Mobile SDK support list before anything else. Some models aren’t.
  2. Ask the agent to build an app that only shows the drone’s status and battery.
  3. Add a Home Assistant automation that sends a test push to your phone when the alarm triggers.
  4. Add takeoff, hover and land, and run them only in DJI’s simulator.

Take it further

  • Add a simulated follow-and-film run, still in the simulator.
  • Set a hard boundary at your property line and an automatic return on low battery.
  • Do one real test yourself, in clear weather, with you as the subject, watching every step.

Check your work

  • Codez released no code or test logs. Treat the full version as unproven.
  • Never fly a flight you haven’t tested in the simulator, and keep a hand on the manual controls.
  • Follow your country’s drone rules, keep it in sight and over your own property, and don’t film neighbors or the public. Leave real intruders to the police.

Source checked. The link, author, date and quote were confirmed against the source. The result itself has not been reproduced. Their prompt is quoted from the source; any fuller version is written for this library. Business size: Individual. Results are quoted as the source claimed them and never improved. Spot an error or a broken link? Email charlie@cbarmorecpa.com.

More in Gadgets, smart home and home lab

New cases go out every Saturday in Inside AI.