Control Lights with Multiple Motion Sensors

Control Lights with Multiple Motion Sensors

In large or irregularly shaped spaces - such as an L-shaped hallway - you often want to control the lighting using multiple motion sensors. With a workflow and the Hub Mode in Controller for HomeKit, that’s easily done. This step-by-step guide shows you exactly how to set it up. We’ll use two motion sensors and one presence sensor, but you can add as many sensors as you like.

Start Event

First, add all motion and presence sensors as start events. To ensure the workflow is triggered by any change - not just a specific state like motion detected or no motion - tap on “equal to” and select “any”.

Steps

Add an "If/Else" Step

Add an If/Else step and include all motion sensors that have not detected motion as conditions. Make sure to set the comparison operator to “And”.

Add a "Wait" Step

In the “If” step, add a 30-second Wait step. This defines how long the light should remain on after no motion is detected. Feel free to adjust the duration to suit your needs - 30 seconds has worked well in our setup.

Add a "Control Accessory" Step

Also in the If step, set the power state of all lights to off.

Add a "Control Accessory" Step

In the Else case, set the power state of all lights to on. You can also define a specific brightness or color if desired.

Settings

Under Settings, set Restart Workflow to "Stop the current workflow and start a new one".

This ensures that if all motion sensors stop detecting motion, but one detects movement again within the 30-second delay, the light remains on.

Final Overview

As soon as one of the motion sensors detects movement, the light turns on. It will only turn off when all motion sensors stop detecting motion and no motion is detected again within the following 30 seconds.

Want More Smart Ideas?

Subscribe to our HomeDevices newsletter and get tips, tutorials, and news — all about building a smarter, greener home.

By subscribing to our newsletter, you agree to our privacy policy.

Want More Smart Ideas?

Subscribe to our HomeDevices newsletter and get tips, tutorials, and news — all about building a smarter, greener home.

By subscribing to our newsletter, you agree to our privacy policy.

Want More Smart Ideas?

Subscribe to our HomeDevices newsletter and get tips, tutorials, and news — all about building a smarter, greener home.

By subscribing to our newsletter, you agree to our privacy policy.

Get Inspired

Carbon Dioxide Alert

Get notified when CO₂ levels exceed 1000 ppm.

Location-Based Workflow

Automate your routines based on where you are.

Laundry Done Alert

Receive a notification when your washing machine has finished.

Beat the Heat

Automatically close your blinds on hot days.

Wake-Up Light

Use any Apple Home Lamp as a Wake-Up Light.

Irrigation Schedule

Keep your garden green.

Control Lights with Multiple Motion Sensors

For large or irregularly shaped spaces.

Stepwise Brightness Control via Button

Control light brightness step by step.

Custom Notification with Live Camera Feed

Open the camera stream instantly.

Smart Bathroom Fan Control

Make your fan truly intelligent.

New Mail Notification

Get notified when new mail arrives.

Integrate Speakers into Workflows

Control volume, play music, or pause playback.

Battery Warning

Get battery alerts when they matter.

Sleep Timer

Use a sleep timer with Apple Home.

Execute Workflow Only Once a Day

Ensures the workflow runs only once.

Accessory Values in Notifications

Send notifications featuring real-time accessory values.

NFC Tags

Automate Apple Home Accessories with NFC.

Blink Lights

Make a light blink and effortlessly return it to its original state.

Display Camera When Motion Is Detected

Automatically display the camera livestream whenever motion is detected.

Open Window Reminder

Get a reminder if you forget to close a window after ventilating.

Toggle Lamp

Easily toggle a lamp using a single switch.

Turn Light Off Using Motion Sensor

Efficiently control your lighting with a motion sensor.

Get Inspired

Carbon Dioxide Alert

Get notified when CO₂ levels exceed 1000 ppm.

Location-Based Workflow

Automate your routines based on where you are.

Laundry Done Alert

Receive a notification when your washing machine has finished.

Beat the Heat

Automatically close your blinds on hot days.

Wake-Up Light

Use any Apple Home Lamp as a Wake-Up Light.

Irrigation Schedule

Keep your garden green.

Control Lights with Multiple Motion Sensors

For large or irregularly shaped spaces.

Stepwise Brightness Control via Button

Control light brightness step by step.

Custom Notification with Live Camera Feed

Open the camera stream instantly.

Smart Bathroom Fan Control

Make your fan truly intelligent.

New Mail Notification

Get notified when new mail arrives.

Integrate Speakers into Workflows

Control volume, play music, or pause playback.

Battery Warning

Get battery alerts when they matter.

Sleep Timer

Use a sleep timer with Apple Home.

Execute Workflow Only Once a Day

Ensures the workflow runs only once.

Accessory Values in Notifications

Send notifications featuring real-time accessory values.

NFC Tags

Automate Apple Home Accessories with NFC.

Blink Lights

Make a light blink and effortlessly return it to its original state.

Display Camera When Motion Is Detected

Automatically display the camera livestream whenever motion is detected.

Open Window Reminder

Get a reminder if you forget to close a window after ventilating.

Toggle Lamp

Easily toggle a lamp using a single switch.

Turn Light Off Using Motion Sensor

Efficiently control your lighting with a motion sensor.

Get Inspired

Carbon Dioxide Alert

Get notified when CO₂ levels exceed 1000 ppm.

Location-Based Workflow

Automate your routines based on where you are.

Laundry Done Alert

Receive a notification when your washing machine has finished.

Beat the Heat

Automatically close your blinds on hot days.

Wake-Up Light

Use any Apple Home Lamp as a Wake-Up Light.

Irrigation Schedule

Keep your garden green.

Control Lights with Multiple Motion Sensors

For large or irregularly shaped spaces.

Stepwise Brightness Control via Button

Control light brightness step by step.

Custom Notification with Live Camera Feed

Open the camera stream instantly.

Smart Bathroom Fan Control

Make your fan truly intelligent.

New Mail Notification

Get notified when new mail arrives.

Integrate Speakers into Workflows

Control volume, play music, or pause playback.

Battery Warning

Get battery alerts when they matter.

Sleep Timer

Use a sleep timer with Apple Home.

Execute Workflow Only Once a Day

Ensures the workflow runs only once.

Accessory Values in Notifications

Send notifications featuring real-time accessory values.

NFC Tags

Automate Apple Home Accessories with NFC.

Blink Lights

Make a light blink and effortlessly return it to its original state.

Display Camera When Motion Is Detected

Automatically display the camera livestream whenever motion is detected.

Open Window Reminder

Get a reminder if you forget to close a window after ventilating.

Toggle Lamp

Easily toggle a lamp using a single switch.

Turn Light Off Using Motion Sensor

Efficiently control your lighting with a motion sensor.