Motion Triggered Smart Lights as an Alexa Routine
In this article
Yes, you can set up motion-triggered smart lights as an Alexa routine. You'll need a compatible motion sensor (like an Echo device with a built-in motion sensor, or a separate Zigbee/Works with Alexa sensor) and smart lights that Alexa can control. The routine tells Alexa: when motion is detected, turn on the lights. Here's how to do it in the Alexa app.
What You'll Need
- An Amazon Alexa app (free, on iOS or Android)
- A smart motion sensor that works with Alexa (e.g., Echo with motion detection, or a Zigbee sensor paired to an Echo hub, or a Wi-Fi sensor like the Aqara or Philips Hue motion sensor)
- Smart lights (bulbs, plugs, or switches) that are already set up in the Alexa app
- Both the sensor and the lights must be in the same Amazon account and connected to the same Wi-Fi network (or Zigbee hub)
Step-by-Step
- Open the Alexa app on your phone and sign in.
- Make sure your motion sensor is discovered. Go to Devices > All Devices. If your sensor isn't listed, add it: tap the + icon, then Add Device, and follow the in-app instructions for your specific sensor brand. (Labels may vary slightly by app version and device.)
- Verify your smart lights appear in the same Devices list. If not, add them the same way.
- Create a new routine. Tap the More tab (three horizontal lines) at the bottom, then select Routines.
- Tap the + (plus) icon to start a new routine.
- Give your routine a name (e.g., "Motion Lights On").
- Tap When this happens (the trigger).
- Select Smart Home > Motion > Detected. (If your sensor supports it, you can also choose “No motion detected” for turning lights off.)
- Choose the specific motion sensor you want to use from the list. Tap Next.
- Now tap Add action > Smart Home > Turn On.
- Select the lights you want to turn on. You can pick individual bulbs or a group. Tap Next.
- Optionally, adjust the brightness or color if your lights support it (tap Device settings after selecting the lights).
- Tap Save at the bottom.
- Test it: walk in front of the sensor. The lights should turn on within a few seconds.
To turn the lights off automatically after a period of no motion, create a second routine with the trigger Motion > No motion detected and the action Turn Off. Some sensors let you set a timeout in the sensor's own app, but a separate routine works for all.
Common Mistakes
- Using the wrong trigger type: In the routine, you must choose Smart Home > Motion > Detected, not “Motion Sensor” as a device action. The latter only reports state, it doesn't trigger.
- Sensor not paired correctly: If the sensor isn't in your Devices list, the routine can't see it. Re-pair it via the sensor's own app first, then discover it in Alexa.
- Lights not in the same account: All devices must be linked to the same Amazon account. If you have multiple Alexa accounts, the routine won't cross accounts.
- Routine not saving: If you don't tap Save at the end, the routine is discarded. Always confirm it appears in your Routines list.
- Using “Motion detected” as a condition instead of a trigger: A condition restricts when a routine runs, it doesn't start it. You need it as the “When” trigger.
Tips
- Set a specific time window in the routine if you only want motion lights at night. Tap Set time range under the trigger to limit it to, say, 6 PM to 7 AM.
- Use a group for lights in the same room so you can select one group instead of many individual bulbs.
- If your sensor has a built-in light sensor (like the Aqara), you can combine motion + low light as a condition, but that requires the sensor's own app to expose that state to Alexa.
- For a “hallway” effect, create a routine that turns on a light at 50% brightness during the day and 20% at night—use two separate routines with different time ranges.
- Name your routines clearly (e.g., “Motion On – Hallway”) so you can find them later.
Troubleshooting
Lights don't turn on when motion is detected.
- Check that the sensor is actually detecting motion: in the Alexa app, go to Devices, select your sensor, and see if its status changes to “Motion detected” when you move. If not, the sensor may be out of battery, out of range, or not properly placed.
- Make sure the routine is enabled (the toggle next to it is on).
- Verify the lights are responsive: say “Alexa, turn on [light name]” to test them directly.
- Restart your Echo device (unplug for 10 seconds) and your Wi-Fi router. Sometimes the sensor loses connection.
- If the sensor uses Zigbee, ensure it's paired to a compatible Echo hub (like Echo Plus, Echo Show 10, or Echo 4th gen). Not all Echos have Zigbee.
- If nothing works, delete the routine and create it again from scratch.
Routine triggers but lights don't turn on.
- Check the action: open the routine and confirm the correct lights are selected. Sometimes a light gets unlinked or renamed.
- If you selected a group, make sure the group still contains the lights.
- Try turning on the lights manually via the Alexa app to ensure they still respond.
Sensor shows “Unavailable” in the app.
- Replace the battery (most sensors use a CR2450 or similar).
- Move the sensor closer to the Echo hub or router.
- Re-pair the sensor: remove it from Alexa, then add it again using the sensor's own app or the Alexa device discovery.
Frequently Asked Questions
Can I use any motion sensor with Alexa?
Only sensors that are “Works with Alexa” or that connect via a hub that integrates with Alexa (like Zigbee or a brand's own hub) will work. Check the sensor's packaging or the manufacturer's website for Alexa compatibility.
Do I need an Echo device with a built-in motion sensor?
No, but it's convenient. Echo devices like the Echo Dot (5th gen) or Echo Show have built-in motion sensors. If you have a separate sensor, that works too as long as it's paired to Alexa.
Can I set different lights for different times of day?
Yes, create separate routines with different time ranges. For example, one routine for daytime (motion turns on lights at full brightness) and one for nighttime (dimmed).
How do I turn the lights off automatically?
Create a second routine with the trigger “No motion detected” and the action “Turn Off”. Some sensors also have a built-in timeout in their own app, but the routine method works universally.
Why doesn't my sensor appear in the routine trigger list?
Make sure the sensor is discovered in the Alexa app under Devices. If it's still not showing, the sensor might not be compatible with Alexa routines. Check the manufacturer's documentation for Alexa routine support.
Can I use this with outdoor lights?
Yes, if the smart lights and sensor are within Wi-Fi range and are Alexa-compatible. Just be aware of weatherproofing for outdoor sensors.