Can your iPhone app control HomeKit lights and plugs?

Yes. Borel builds native iPhone apps that show and switch the lights, plugs and locks set up in Apple's Home app. How it works, and what to build.

By Sigsten Gustavii· · Updated · 8 min read

Build your own home remote with Borel

Build this app

Apple's Home app does a lot, and it still isn't arranged the way every home lives. Maybe the people in a flat want one screen with the hall light, the kettle plug and the bedroom lamp, big enough to hit half asleep. Maybe a bedtime button that turns off the three lights everyone forgets. Small, focused remotes like these are good apps, for yourself or for the App Store.

This guide explains what HomeKit lets an app do, what Borel builds, ideas that suit it, what Apple asks of an app that reaches into a home, and how the app gets to the App Store and to your own iPhone.

HomeKit in a Borel app, as of 27 November 2026
QuestionAnswer
Can a Borel app show my Home accessories?Yes: homes, rooms and accessories
Can it switch them?Yes: lights, plugs and the values they accept
Does iOS ask before the app sees the home?Yes, with a sentence Borel writes
Can the app pair new accessories?Pairing stays in Apple's Home app
How do I ask for it?In your own words, in the chat
Does it go to the App Store?Yes, on Pro with Apple's Developer Program
Can I try it in the browser?The screens, yes; your real home, on your iPhone

What HomeKit lets an app do

HomeKit is Apple's framework for home accessories: lights, plugs, locks, thermostats and sensors from many makers, all set up in the Home app. Apple describes what an app can do with it in three parts: find accessories and add them to the home setup, show and edit that setup, and talk to the accessories to do things, with Apple's own example of turning on the lights in the living room.

The home setup itself lives with Apple, not in the app. Apple calls it a persistent, cross-device home configuration database. An app with permission reads the homes, rooms and accessories from it and sends commands; it does not keep a copy of the house of its own.

Apple's guide to enabling HomeKit adds the rules every app follows:

  • A permission question. iOS asks for access to the home the moment the app uses HomeKit, with a sentence the app provides. Apple says an app without that sentence crashes.
  • A no that sticks. If someone says no, the app reaches the home only after they allow it in Settings, and they can take access back there at any time.
  • Graceful gaps. Apple advises an app to hide what it can't do when access is off, rather than break.

What Borel builds

Ask for HomeKit in your message, naming the accessories or rooms you care about, and Borel writes it in Swift, inside the app it builds for you:

  • Your homes, rooms and accessories, listed as they are set up in Apple's Home app.
  • Switches that work. A light on or off, a plug, or another value an accessory accepts, changed from your app.
  • The permission sentence, written for your app and shown by iOS when the app asks to see the home.
  • A plain note when Home is off. If a copy of the app can't use HomeKit, it shows a short note in place of the Home parts, and the rest of the app keeps working.
  • A pointer to the Home app when no home is set up yet, in one plain sentence.

Adding a new accessory, pairing it and naming it stays in Apple's Home app. Your app is a remote for what is already there, which keeps it simple and keeps the setup where people expect it.

What the person sees, step by step

  1. They open the app. The Home parts wait for a tap, so nothing is asked of them before they reach the feature.
  2. iOS asks to see the home, with the app's own sentence saying why.
  3. Their homes appear, with the rooms and accessories as the Home app has them, each switch showing whether it is on.
  4. They tap a switch, and the light, plug or lock answers.
  5. With no home yet, the app says in one plain sentence to set one up in the Home app.

Make the switches big and the labels plain. A remote is used in the dark, half asleep or with a bag in one hand, so a large button with the room's name on it beats a dense list every time.

Ideas for a home remote

HomeKit ideas, and what each uses
IdeaWhat it uses
One screen with the three switches you useSwitching accessories
A bedtime button for the downstairs lightsSwitching several at once
A room-by-room list with each light's stateReading the home
A big button for the reading lampSwitching one accessory
A night-mode remote with dimmed coloursSwitching accessories, in a dark look
A prompt for a home remote
A home remote: one screen shows the lights and plugs from my Home app, grouped by room, each with a big switch, and a bedtime button turns off everything downstairs. It opens with Face ID.

Pair the remote with what Borel already builds well. A Face ID lock keeps a door-lock button behind a glance, haptics give each switch a tap you can feel, and a Home Screen widget can hold a bedtime button of its own.

Decide how far the app reaches

Apple's guide is plain about why the permission question exists: a home automation network is a sensitive resource, and apps with access can collect sensor data and change the state of physical objects in the real world. A light is harmless. A door lock or a heater is not.

So describe exactly which accessories the app should show, and leave the rest out; a remote with three lights has nothing to get wrong with the front door. If it does hold a lock or a heater, put the whole app behind Face ID, so a borrowed phone can't switch them.

What Apple asks of a HomeKit app on the App Store

An app that reaches into a home goes to Apple's review like any other, with a few points that matter more here:

  • A clear purpose sentence. The app says why it wants the home, and iOS shows that sentence; Borel writes it.
  • Data stays for the home's sake. Apple's App Review Guidelines say data gathered from HomeKit may not be used for marketing, advertising or data mining.
  • The HomeKit capability. The App Store build carries Apple's HomeKit permission in its signature, which Borel's Mac adds when it builds the app.
  • A privacy policy. Every Borel app shows its Terms and Privacy Policy in its settings, as Apple asks.

Stamp, Borel's check before publishing, reads the app for what App Review turns down before Apple sees it.

From your words to the App Store

  1. Describe the remote, naming the accessories or rooms it shows.
  2. Preview it on a live iPhone. Borel writes the Swift, compiles it with Xcode on its own Mac and runs it in the iOS Simulator in your browser. That iPhone has no home of yours, so you see the screens there and the lights on your phone.
  3. Publish it. With Pro and Apple's Developer Program ($99 a year), Borel builds the App Store version on its Mac, prepares the listing and screenshots, and walks you through sending it for review.
  4. Say yes to the home. On an iPhone, the app asks to see the home, and the rooms and accessories appear.

See how publishing works for each step.

On your own iPhone with a free Apple ID

To use the remote at home without publishing, put it on your iPhone with Borel Companion, a free download for a Windows 10 or 11 PC or a Mac: a cable once, then Wi-Fi. Installing with it comes with a paid plan, Pro, from $25 a month; see pricing.

On Apple's side, HomeKit is one of the few services its list of capabilities gives a free account, and Companion asks Apple for it for an app that uses HomeKit. Where Apple doesn't turn it on for a copy, the app shows its short note in place of the Home parts. Apple's free-account terms still apply: 7 days per install, which Companion renews while it runs, and three apps on a phone; see why an app stops opening after 7 days.

Common mistakes

  • Looking for your lights in the browser. The simulator has no home of yours; use your iPhone.
  • Tapping Don't Allow. The app sees the home after you allow it in Settings.
  • Expecting to pair accessories in your app. Add them in Apple's Home app; your app controls them after.
  • Showing every accessory in the house. A remote with the few you use is quicker and safer.
  • A lock or heater with no Face ID. Put the app behind a glance if it holds anything that matters.

For every other feature a Borel app can use, see native iOS features.

Questions people ask

Can a Borel app switch my lights and plugs?

Yes. It shows the homes, rooms and accessories set up in Apple's Home app and switches them, after iOS asks for permission.

Can the app show whether a light is on?

Yes. It reads each accessory's state from the home, so a switch shows on or off as the light really is.

Which accessories does it work with?

The ones set up in Apple's Home app: lights, plugs, locks, thermostats and sensors from the many makers HomeKit supports.

Can I add new accessories from my own app?

Add them in Apple's Home app. A Borel app controls what is already set up there.

Can I try HomeKit in the browser preview?

The screens, yes. The iPhone in your browser has no home of yours, so the lights themselves answer on your iPhone.

What happens if the app can't use HomeKit?

It shows a short note in place of the Home parts, and the rest of the app keeps working.

Does a HomeKit app go to the App Store?

Yes. Borel builds the App Store version with Apple's HomeKit permission in it, which takes Pro and Apple's Developer Program.

Do I need Apple's Developer Program for HomeKit on my own iPhone?

Not on Apple's side: HomeKit is on its list for free accounts. The paid program is for TestFlight and the App Store.

I like a home remote with exactly the switches you use and nothing else. If you build one, tell me which three made the cut.

– Sigsten

Build your own home remote

Your idea is already written. Press the button, read it, change anything, and Borel builds it, free to start.

A home remote: one screen shows the lights and plugs from my Home app, grouped by room, each with a big switch, and a bedtime button turns off everything downstairs. It opens with Face ID.
Build this app

Keep reading