> ## Content Index
> Fetch the complete content index at: https://marcantonio.me/llms.txt
> Use this file to discover other available public pages before exploring further.

# I Just Wanted an On/Off Switch
- URL: https://marcantonio.me/eufy-privacy-switch/
- Published: 2026-12-04T20:12:26.000Z
- Updated: 2026-12-04T20:12:26.000Z
- Description: My eufy camera only turned on when I remembered to open the app. So Claude Code and I built a one-switch Homebridge plugin in a Friday morning.
- Author: David Marcantonio
- Tags: Homelab, Smart Home, AI

tl;dr - Camera should turn on when I leave. eufy's app can't do that. Claude Code and I built a Homebridge plugin. One switch, one Friday morning.

## The camera I kept forgetting

My eufy Indoor Cam S350 sits in the living room. When I left the house, I had to open the eufy app and turn it on. When I got home, I had to remember to turn it off. Some days I forgot, and it recorded me wandering around the house, which is exactly the footage nobody needs.

So the question was simple. How do I get it to turn on when I leave and off when I get home, without me touching anything?

I'm used to Google Nest cameras, where that's built in. Google Home uses your phone's location to tell when the last person leaves and the first person gets back, and an indoor camera can flip on while you're away and go back to privacy when you're home. I wanted that for the S350\. It's a good camera, with a 4K wide lens, a 2K telephoto, 360-degree pan and tilt, and AI tracking that follows people and pets. But all of that lives behind eufy's app, and the app has no geofencing.

## eufy's lineup is a mixed bag

If you look across eufy's cameras, home automation support is all over the place. Some wired models pair with Apple Home directly. Some battery models only get there through a eufy HomeBase. Plenty don't support Apple Home at all. The S350 is in that last group. Its product page says it doesn't support Apple HomeKit or Google Home, so the eufy app is the only way to control it.

That's the gap Homebridge fills. If you haven't run into it, it's a free, open-source server that makes non-HomeKit gear show up in Apple Home. It's built on Node.js and runs on just about anything, like a Raspberry Pi, a Mac or a spare Linux box. You install a plugin for each kind of device you own. The plugin talks to the device in whatever language it speaks, and Homebridge presents it to Apple Home as a regular accessory. Think of it as a translator sitting between your gadgets and your iPhone. Once a device shows up there, it's fair game for Siri, scenes and automations, which is exactly what I was after.

I'd tried the eufy plugin for Homebridge many months ago, and it was flaky. The eufy app has its moments too. So I assumed the old plugin was still bad and set out to build something new, or at least figure out what was actually possible.

## Putting Claude Code to work

I fired up Claude Code and gave it a list. Identify the camera on the network. Probe it for open ports while it's in privacy mode. Look at the existing eufy plugin work to see what's been vetted and actually works. Check the forums for bugs. Find out whether there's a known working SDK we could build on. Claude built a plan and ran it.

The scan came back thin. One TCP port was open, and it ignored everything we sent it. One UDP port answered eufy's own peer-to-peer discovery packet. No RTSP stream. eufy has no official SDK, and there was no simple local "wake" packet to capture and replay, even after I toggled privacy mode from my phone a bunch of times while we listened. The on/off command travels over eufy's encrypted peer-to-peer connection, and the keys for that come from a eufy cloud sign-in.

The way through was a community library, `eufy-security-client`. It's deprecated on npm and its maintainers have moved to a successor SDK, but it works, and it has a specific code path for the S350's privacy mode. A throwaway script proved it out. Sign in, list cameras, send on or off. I watched the camera do exactly what it was told. The library also saves its session and registers as a trusted device, so the emailed verification code is a one-time thing, not an every-restart thing.

## One switch, and it has to tell the truth

From there Claude built exactly what I needed. A plugin that adds one plain HomeKit switch per eufy camera. On means the camera is on, off means privacy mode. No camera tile, no motion sensor, no alarm modes.

The one rule that shaped everything was that the switch has to tell the truth. It only reports a change after the camera confirms it. If the camera doesn't confirm in time, the tile snaps back to the real state and Apple Home shows an error. That matters because the whole point is an automation that runs when nobody's home. A switch that says "on" while the camera is still in privacy mode is worse than no switch at all, because you'd never know.

It runs as its own child bridge in Homebridge, so a eufy hiccup can't take my other accessories down with it. Pairing hung on "Setting Up" the first time, because the new bridge was advertising itself on the wrong network adapter. Restarting just that bridge fixed it. Then I tapped the switch in the Home app and the camera turned on. Tapped it again, privacy mode. Two Apple Home automations do the rest: last person leaves, camera on. First person arrives, camera off.

Notice what isn't in there. The video stream doesn't live in HomeKit, and I'm fine with that. Bridging a camera into HomeKit through Homebridge has its limits, and I wouldn't bet on it the day I actually need to pull footage. HomeKit Secure Video was also capped at 1080p from 2019 until iOS 27 this fall. It now records 4K, but only on cameras that support it, and a camera coming in through Homebridge isn't on anybody's list. I want full quality. The S350 records to local storage on its own, and on the rare day I need footage, I'll open the eufy app and pull it.

## Had the full plugin already solved this?

With mine working, the next step was sharing it with the Homebridge community. So Claude and I talked through overlap and any gotchas before publishing, and that sent me back to the plugin I'd written off. Had they solved this?

Turns out the old package was deprecated, and the plugin had moved to `@homebridge-plugins/homebridge-eufy`. Version 5.0.0, a major rewrite, came out on November 15\. It does live video, HomeKit Secure Video, doorbells, locks and alarm modes, and it includes a "Camera Enabled" switch. So I gave it a fair shot.

I got it set up and landed right back where I started. The switch came attached to a full camera accessory, with all the constraints HomeKit puts on cameras. It also turned on an alarm system I didn't need. I'm not treating this as a security system. I just want a camera that records when I'm away.

Claude and I tested it on my S350, running version 5.0.0 against camera firmware 1.5.6.8\. It could turn the camera on, but its reported state fell back to "off" while the camera stayed on. Since Apple Home believed the camera was off, every tap sent "on" again and the camera re-ran its start-up sweep. Live view was refused with "the camera is turned off," and the alarm control timed out. That's one camera on one day, not a benchmark, and it may not hold for other models or later versions. The plugin does far more than mine. But for the one thing I wanted, it was too much plugin and not enough switch.

I did borrow one good idea from its docs. Give the plugin its own eufy account, with your home shared to it, so the plugin and your phone don't fight over one sign-in. My main eufy password isn't in Homebridge anymore.

## Polishing it for somebody else

A plugin that only works for the person who wrote it isn't much of a plugin. So it got a settings screen in the Homebridge UI that lists the cameras on your account and lets you pick which ones get a switch. It has a built-in table of about 40 eufy models marked "Works with Apple Home," "No Apple Home support" or "Not on our list," pulled from eufy's support pages. Cameras that already work with Apple Home don't get a switch by default. A six-step guide on the same screen walks you from the eufy app to the two automations.

The saved eufy session lasts about 30 days, and the library signs back in on its own. eufy can still ask for a code or a captcha, and if it does, the switch quietly stops working until somebody enters it. I thought about adding a second tile to alert me, and decided against it. One switch means one switch. The README's "Staying signed in" section covers when it can happen and how to fix it instead.

Publishing was a checklist. Code review, a secrets check of every file going into the repository, a clean dependency audit, MIT license, GitHub, then npm as `homebridge-eufy-privacy-switch` 0.3.0\. It shows up in the Homebridge plugin search. I don't expect "verified" status, and I'd rather say so up front. The rules exclude plugins that do the same or less than an existing verified one, they require Node 22 support while the eufy library needs 24, and the library is deprecated.

## What's proven and what isn't

Proven on my S350: on and off from Apple Home with the camera confirming each change, the right state after a restart, a shared secondary account doing the switching, and changing accounts from the settings screen.

Not proven yet: the automatic sign-in renewal after 30 days, the captcha path, the switch following a change made in the eufy app, and any camera other than the S350.

And the honest limits. It's unofficial and not affiliated with eufy or Anker, so a firmware or cloud change could break it. It needs a eufy cloud sign-in. It sits on a deprecated library, so moving to the successor SDK is the likely first maintenance job. And there are no automated tests. Everything was checked by hand against a real camera.

## Just a switch

I didn't want a security system. I didn't want my video in HomeKit. I wanted a light switch for a camera, and Apple Home already knew when to flip it.

The part I keep coming back to is how fast that went. On a Friday morning I handed Claude Code a list. By lunch I had a plugin on npm that any Homebridge user can install. Claude did the research, the scanning, the code and the log reading. I was the one who could see the camera. It could tell me what the library said happened, and I could tell it what actually happened.

Two automations, one switch, zero apps to remember. If you've got an S350, it's one install away. Other eufy cameras stuck in the app should work too, and I'd like to hear if yours does.

## Links

- [eufy security cameras](https://www.eufy.com/collections/security-camera?ref=marcantonio.me)
- [Homebridge](https://homebridge.io/?ref=marcantonio.me)
- [Homebridge plugins on npm](https://www.npmjs.com/search?q=keywords:homebridge-plugin&ref=marcantonio.me)
- [homebridge-eufy-privacy-switch on npm](https://www.npmjs.com/package/homebridge-eufy-privacy-switch?ref=marcantonio.me)