Home Automation: Motion Detection.

In this guide I'll show you how to create a basic automation using motion from a motion sensor as the trigger.

Home Automation

Dec 29, 2025

Home Automation: Motion Detection.

In this guide I'll show you how to create a basic automation using motion from a motion sensor as the trigger.

Home Automation

Dec 29, 2025

Home Automation: Motion Detection.

In this guide I'll show you how to create a basic automation using motion from a motion sensor as the trigger.

Home Automation

Dec 29, 2025


Difficulty
Duration
Requires
Easy
5 Minutes
• Home Hub
• Motion Sensor

In this guide, we’ll build simple automation that will turn on a light when motion is detected from a motion sensor. For this automation, I’ll be using the Onvis SMS1 sensor, but this would be the same regardless of motion sensor type just as long as its exposed to Homekit..

  1. Open the Home app

  2. Select the + symbol (top right)

  3. Then select Create Home Automation.

  4. Select A Sensor Detects Something.

  5. Then select the motion sensor from your Home accessories.

  6. Ensure that Detects Motion is selected.

  7. Select Time and select During the night.

  8. Select the i symbol and then select your Start and End.

  9. Here I have selected the start to at Sunset and at Sunrise

  10. Then select the light or lights we want to switch on when motion is detected. In this automation, I’ve selected the Office lamp light.

Press the accessory icon once to turn it on or off. If you long-press you can set the switch on brightness.

You can then set how long the accessory stays on for once the automation runs, here I’ve selected 15 mins.

And that’s it. Simple automation to switch on a light if motion is detected within a certain time frame. In a later tutorial I’ll show you how you can create this automation but convert it to a shortcut so instead of having the light switch off after 15 minutes within the automation, we’ll switch off the light when the motion sensor no longer detects motion.

As always, please take a moment to rate this post below if you found it helpful.

Stay in the loop with all the latest updates from the site—subscribe to the newsletter today!

Stay in the loop with all the latest updates from the site—subscribe to the newsletter today!

Create a free website with Framer, the website builder loved by startups, designers and agencies.