Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.
HomeKit geofencing can switch lights on when selected people arrive, while a sunset condition keeps the automation from running during daylight. In Apple’s Home app, combine a People Arrive trigger with an after-sunset time condition, then choose the lights or scene to run. Sunset and sunrise times adjust through the year, so you do not need to replace a fixed clock time every season. The setup depends on location permissions, the people rule you select, and— for control while you are away or for some Thread accessories—an appropriate home hub.
What does HomeKit geofencing do for lighting?
Geofencing uses the location of a person’s configured iPhone or iPad to trigger a Home automation when that person enters or leaves a chosen area. Apple exposes this as People Arrive and People Leave in the Home app. The automation can control individual lights, groups of accessories, or a scene; Apple’s Home automation guide uses lighting as a typical example.
As an Amazon Associate I earn from qualifying purchases.
Recommended Free Tools
For a seasonal entry-lighting routine, the useful logic is:
Selected person arrives at home AND it is after sunset → turn on the chosen lights.
Popular on Amazon
- 【90 Degree Full Function USB C Adapter】Supports the latest USB4 standard for up to 40Gbps of bandwidth, 8K video support, and up to 240W Fast charging; Support USB PD 3.1 Extended Power Range (EPR) including 140W, 180W and 240W. Your productivity is easily doubled. *Warm Tip: For the best fit, please make sure the USB-C port is fully exposed; thick or bulky cases may affect compatibility.
- 【Reliable Quality】Made from high-quality, scratch-resistant aluminum alloy, delicate metal frame. get excellent wear resistance and heat dissipation. Non-Slip Design for easier insertion and removal.
- 【Small and portable】Ultra thin size, ultra compact design, a petite physique that matches the minimalist design of your modern laptops. Coming with a slim figure that won't block the port next to the one it's plugged into.
- 【Compatibility】Widely work with most usb c, thunderbolt 4/3 devices. Compatibilit for ROG Ally, Steam Deck, Switch, MacBook Pro, Quest 3 VR headset, Surface Book 2, iPhone 18/17/16/15, Samsung Galaxy S23/S22/S21, Note 20/10, Google Pixel, ChromeBook, etc.
- 【Excellence Customer Support】If you experience any issues or cable failure, simply reach out to our dedicated customer service team. We provide a prompt response within 18 hours, providing you with the necessary technical support to resolve any concerns.
The arrival event supplies presence, while the time condition supplies daylight awareness. If you arrive at noon, the automation should not perform the lighting action. If you arrive after sunset, both conditions are satisfied and the action can run. Apple does not publish a guaranteed geofence radius, boundary accuracy, or trigger delay, so treat it as a convenience automation rather than a precise distance sensor.
How does Apple Home account for seasonal daylight?
A fixed schedule such as 6:00 p.m. drifts out of step with daylight as the year changes. Apple lets a Home automation use sunrise or sunset instead. Its documentation explicitly notes that “if you choose Sunset or Sunrise, times vary as the season changes.” An after-sunset condition therefore follows the local seasonal change automatically.
Free tools Windows power users keep installed
One-click scans. No signup required.
This is different from asking the lights to turn on at sunset every day. With an arrival trigger, the lights respond only when the selected presence event occurs. Someone who is already home at sunset will not necessarily cause an arrival event at that moment; use a separate sunset-based automation if you also want lights to come on for people who stayed home.
What must be ready before you create the automation?
- Location Services: Turn on Location Services on the primary iPhone or iPad used to control the home.
- Share My Location: Apple requires Share My Location to be enabled on that device for location automations. Check the Apple Account and device that actually controls your Home.
- Home access: Each person you want to use as a presence trigger must share control of the home. The available household choices depend on who has that access.
- Controllable lights: Add the compatible bulbs, switches, plugs, or a lighting scene to the Home app and confirm they respond manually before automating them.
- Hub planning: A home hub supports control when you are away. Thread-based accessories have an additional requirement: Apple specifies a Thread-enabled hub for automations, notifications, and away control. Requirements differ by accessory, so verify the device’s own compatibility information.
Apple’s Home app instructions cover creating scenes and automations, while the home hub documentation explains the role of a hub in remote control. A hub is not a substitute for the phone’s location permissions: the arrival decision still depends on the configured person’s location device.
Also popular on Amazon
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
How do I turn on lights when I arrive home after sunset?
Prepare the lights and permissions first, then build the automation with arrival as the event and after sunset as the constraint. Labels can vary slightly by iOS release, but the People Arrive, people, location, and time choices are the relevant controls.
- Open the Home app’s automation area. Start a new automation and choose People Arrive. Do not choose a generic time-of-day automation if arrival is the event you need.
- Choose who can trigger it. Select the household member or members whose arrival should count. Depending on the Home/Shortcuts presentation, you may see choices such as anyone arriving or the first person arriving. Read this selection carefully: it changes whether one person’s arrival is enough or whether the rule waits for the first arrival of the household.
- Set the location. Use the home location for a routine that responds to coming back to your residence. Apple permits other locations, but a non-home location has an important restriction: only the user who created it can trigger that automation, and invited home users are removed from it.
- Add the daylight condition. Set the time condition to run only after sunset. This is the seasonal part of the design; sunset shifts as the seasons change. If the interface presents a choice between a clock time and sunset, select sunset/after sunset rather than a fixed hour.
- Choose the lighting action. Select the lights, a room, or a scene that should run. Keep the action limited to the fixtures needed for safe entry lighting so an arrival does not illuminate unrelated rooms.
- Save and enable the automation. Review the people, location, after-sunset condition, and accessories before confirming. Apple provides controls to edit, disable, delete, or test an automation after it is created.
- Verify each dependency. Manually operate the lights, confirm the selected person has Home control, and recheck Location Services and Share My Location on the primary device. If the accessories are Thread-based or must work while nobody is home, confirm that the home has the required Thread-enabled hub.
The resulting behavior is conditional, not a promise that every arrival will produce an immediate light change. Apple’s public instructions do not specify the geofence’s exact radius or how quickly the phone must report a boundary crossing.
Should I choose anyone arriving or first person arriving?
Choose the rule that matches the lighting’s purpose. Anyone arriving is useful when each resident should be able to trigger the lights independently. First person arriving is better when the lights should run only once as the household begins coming home, rather than reacting to every person’s return.
| Presence choice | What it means | Good fit | Potential surprise |
|---|---|---|---|
| Anyone arriving | An arrival by any selected household member can satisfy the event. | A resident returning alone after dark. | Several arrivals can cause repeated trigger opportunities. |
| First person arriving | The automation is tied to the household’s first arrival. | Entry lights that should come on once when the home starts being occupied. | A later-arriving resident may not create another event if someone has already arrived. |
Apple documents these household presence choices in the Shortcuts home-automation interface. The exact wording you see depends on the people who share control of the home and on the automation editor you use.
Also popular on Amazon
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
Arrival or departure: which trigger is better?
Arrival is the natural choice for welcoming or safety lighting. Departure can switch lights off, activate an “away” scene, or perform another leaving routine, but it should not be treated as the inverse of arrival without considering who remains home.
| Trigger | Typical lighting result | Seasonal condition to consider |
|---|---|---|
| People Arrive | Turn on porch, hallway, or entry lights. | Use after sunset to avoid daytime activation. |
| People Leave | Turn off selected lights or run an away scene. | A sunset restriction is usually unnecessary for a safety shutoff; use a separate time condition only when the leaving routine truly depends on daylight. |
Do not assume an arrival automation will turn lights on merely because the sun sets while someone is already inside. Presence and time are separate events. If that behavior matters, create a second automation based on sunset rather than changing the arrival rule.
Do these 3 things before closing this tab:
1Scan for outdated or missing drivers - takes under a minute2Repair Windows errors before they cause bigger problems3Fix the driver behind crashes, sound loss and screen glitchesWhat is the difference between a fixed time and sunset?
A fixed clock time is predictable but becomes too early or too late as daylight changes. Sunset follows the seasonal solar schedule documented by Apple, making it the better default for outdoor or entry lighting that should track darkness.
| Time condition | Advantage | Trade-off |
|---|---|---|
| Fixed clock time | Useful when you want the same civil time every day, regardless of daylight. | Needs seasonal adjustment if your goal is darkness-based lighting. |
| Sunset / after sunset | Automatically shifts as seasons change. | It does not by itself react to arrival; combine it with People Arrive for presence-based lighting. |
| Sunrise | Can constrain a morning arrival or departure routine to daylight conditions. | Sunrise is not an after-dark trigger, so it serves a different purpose from evening entry lighting. |
Will the automation work when nobody is at home?
A home hub supports control while away, but the exact requirement depends on the accessory and connection technology. Apple specifically calls for a Thread-enabled hub for automations, notifications, and away control with Thread-based accessories. For other devices, consult the accessory’s requirements rather than assuming every light has identical hub needs.
Also popular on Amazon
- Portable and powerful USB-C HUB: BENFEI USB Type-C HUB, with super-soft and knot-free silicone woven design cable, meets most mobile office needs. Compact, lightweight, stylish, and powerful portable USB C Hub equipped with 1 x HDMI port, 1 x 100W charging, and 3 x USB ports. 18-month warranty, 24-hour response, to ensure you feel at ease when using our product.
- Design centered on comfort and reliability: Thanks to BENFEI's end-to-end in-house cable production capability, in-house PCBA and assembly capability, using the industry's most advanced silicone woven design and process, 20cm cable in length, no knots, super-soft, the HUB is easy to use in all scenarios: laptop, tablet, stand etc. Super-soft, 25000+ life cycles, to meet your daily carrying and office needs.
- 100W Charging: Support up to 90W USB C pass-through charging via Type-C port to keep your laptop powered. 10W is reserved for other interface operations. No data and video function on the Type-C port.
- 4K HDMI Display: The HDMI port supports media display at resolutions up to 4K 30Hz, keeping every incredible moment detailed and ultra vivid. Please note that the C port of the Host device needs to support video output.
- Transfer Files in Seconds: Transfer files and from your laptop at speeds up to 10 Gbps with USB A 3.2 port. Extra 2 USB A 2.0 ports are perfectly for your keyboards and mouse.
Even with a hub, the arrival event originates from the selected person’s location-enabled iPhone or iPad. A hub cannot correct a disabled Location Services setting, an inactive Share My Location setting, or a person who lacks permission to control the home.
How can I troubleshoot an arrival-after-sunset automation?
Work from the simplest dependency to the most complex. This isolates whether the problem is the light, the automation logic, the phone’s location data, or the home’s remote-control infrastructure.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
- Test the accessory manually. If the light or scene cannot be controlled from Home, fix pairing, power, or accessory connectivity before investigating geofencing.
- Inspect the event. Confirm the automation says People Arrive, not People Leave, and that the intended person is selected.
- Check the location. Make sure the automation uses the home location. A different location changes who may trigger it and removes invited users from the automation.
- Check the time rule. Verify that the condition is after sunset rather than a fixed clock time that has already passed or has not yet arrived.
- Review permissions on the primary device. Location Services and Share My Location must be active on the iPhone or iPad used to control the home.
- Check household presence logic. If the rule is first person arriving, another resident may already have satisfied it. Try an anyone-arriving rule when each person needs an independent trigger.
- Check hub and accessory requirements. For Thread accessories, verify a Thread-enabled hub. For other accessories, follow their documented hub or connectivity requirements.
- Use Home’s test and edit controls. Apple allows automations to be tested, edited, disabled, or deleted. Make one change at a time so you know which dependency fixed the behavior.
If a light activates later than expected, avoid inventing a distance threshold or exact delay: Apple’s cited documentation does not promise either. Treat the trigger as location-based and allow for the phone and home system to process the event.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.What are the privacy and reliability trade-offs?
Location automations require location sharing, so every selected resident should understand that their device location is being used to decide whether the automation runs. Limit the people list to those who genuinely need to trigger the lights, and use a scene that exposes only the necessary fixtures.
Also popular on Amazon
- 【Read before You Buy】 Note: This adapter is USB 2.0 version and cannot transmit HDM, VGA, or other video signals. Nevertheless, they are fully capable of charging devices,duplicating files, and can be seamlessly integrated with USB-C earphones, wireless network adapters, and SD card adapters.
- 【Easy to Use and Safe】Thanks to modern manufacturing techniques, we've made these adapters sufficiently compact so that they can remain inserted in your device without noticeable protrusion or inconvenience. This means you don't have to constantly plug and unplug them, reducing the likelihood of wear and misalignment, and making them more convenient to carry around.
- 【Reliable Quality】Engineered for enhanced durability, durable aluminum alloy shell material,get excellent wear resistance and heat dissipation,the male USB C and female USB connectors & the male USB and female USB C connectors are designed to be plugged and unplugged up to 20000 times. Provides data transfer, device charging, memory space expansion, and additional computer peripherals.
- 【Think more for you】Do you need to connect a USB-C-enabled device to an odd device that only has USB-A ports? Then these USB-A male to USB-C female adapters are made for you.Simply insert the adapter into the USB-A port on the device, and you can instantly connect your USB-C device to the device that originally didn't have the correct connection port.
- 【Trusted xiwxi Quality and Service】As a responsible brand seller, you will receive xiwxi's 12-month Quality assurance and lifetime friendly customer service, you're not just buying a product,you're investing in peace of mind with all-round quality and exceptional customer service.
Reliability improves when the lighting device, phone permissions, home access, and hub requirements are all documented and maintained. It is still wise to keep a manual wall switch or in-app control available: a geofence is not a guaranteed security system, and Apple does not specify an exact boundary or response time.
Useful patterns for seasonal entry lighting
- Single-resident return: People Arrive for one person plus after sunset, activating entry and hallway lights.
- Shared household arrival: Anyone arriving plus after sunset, useful when any resident may return first.
- One-time household welcome: First person arriving plus after sunset, preventing later arrivals from repeatedly invoking the same welcome scene.
- Separate sunset routine: A sunset-triggered automation for people already home, kept separate from the arrival automation so each event has a clear purpose.
- Departure companion: People Leave to turn off selected lights, with its own people rule and location review rather than assuming it mirrors the arrival setup.
What should you remember?
The most dependable seasonal design is an arrival trigger constrained by after sunset. Set the people and location deliberately, enable Location Services and Share My Location on the controlling iPhone or iPad, and choose anyone arriving or first person arriving according to the household behavior you want. Use a suitable hub when away control or Thread accessories require one, and do not expect an undocumented geofence radius or instant response.
Quick wins for a faster PC:
Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Clear out junk files and repair common Windows errorsFree Scan →Frequently Asked Questions
Can HomeKit turn lights on at sunset even if I am already home?
Yes, but that is a different automation from an arrival-after-sunset routine. Create a sunset-based automation for the lights you want to activate when darkness arrives, because an arrival event does not occur merely because the clock reaches sunset.
Why does a non-home location remove other household members from my automation?
Apple limits automations using a location other than home to the user who created them. Invited home users are removed from that automation, so use the home location when multiple residents must be eligible triggers.
Do I need a Thread hub for every smart light?
No universal hub requirement applies to every accessory. Apple specifically requires a Thread-enabled hub for Thread-based accessories when using automations, notifications, or control while away; check the requirements for a non-Thread light separately.
Can I set an exact distance for the geofence?
Apple’s cited Home documentation does not specify a user-configurable radius, exact boundary, or guaranteed trigger delay. Configure the arrival rule for the intended home location, but do not rely on it as a precise-distance or security trigger.

