# SmartThings Automation Examples for EP1

# SmartThings Automation Examples for EP1

These examples use the standard SmartThings routine builder.

To create a routine, open the SmartThings app and go to `Automations` > `+` > `Create routine`.

Use `If` for the EP1 trigger or condition, and `Then` for the action such as lights, scenes, notifications, or ventilation.

## Turn lights on when the room is occupied

Use this for normal room lighting.

If:

* EP1 `Presence` changes to `Motion detected`

Then:

* Turn on the room lights

[Image placeholder: SmartThings routine editor showing EP1 Presence as the trigger]

Optional condition:

* EP1 `Illuminance` is below your preferred brightness level

 ![](https://docs.everythingsmart.io/api/files.get?sig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJ1cGxvYWRzL2U1MTYzNjNkLThhMWItNDI0Zi1hOTk5LTI0ZDFmMDUxZDNhZi82YzkyYWE3Zi1jNGM2LTQ4MzUtYjMyMy1jNzhmZmVmMjY2NWUvU2NyZWVuc2hvdF8yMDI2MDUwNy0wMDE4MjgucG5nIiwidHlwZSI6ImF0dGFjaG1lbnQiLCJpYXQiOjE3OTM2ODIwMDAsImV4cCI6MTc5Mzc2ODQwMH0.lys3qkRol-i52a_bAbjLE5x8XCbmoaCwlccbTLcw8hI " =257x470")


## Turn lights off after the room is empty

If:

* EP1 `Presence` changes to `No motion detected`

Then:

* Turn off the room lights

Tip: adjust the occupancy off delay in the EP1 settings if lights turn off too quickly or stay on too long.

## Use PIR for fast entry detection

If:

* EP1 `PIR Motion` changes to `Motion detected`

Then:

* Turn on lights or start an entry routine

This can be useful where you want a quick reaction as someone enters the room.

## Use illuminance to avoid turning lights on during the day

If:

* EP1 `Presence` changes to `Motion detected`

Condition:

* EP1 `Illuminance` is below your chosen lux value

Then:

* Turn on the lights

## Air quality notification with CO2

This requires the optional CO2 module and CO2-enabled firmware.

If:

* EP1 `CO2` rises above your chosen ppm value

Then:

* Send a notification
* Turn on ventilation, if available

 ![](https://docs.everythingsmart.io/api/files.get?sig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJ1cGxvYWRzL2U1MTYzNjNkLThhMWItNDI0Zi1hOTk5LTI0ZDFmMDUxZDNhZi8wMTBlYjcwMC03NDZlLTQxNDItYmQ0OS0yMzhlZTFhNzAxMDYvU2NyZWVuc2hvdF8yMDI2MDUwNy0wMDE2NTIucG5nIiwidHlwZSI6ImF0dGFjaG1lbnQiLCJpYXQiOjE3OTM2ODIwMDAsImV4cCI6MTc5Mzc2ODQwMH0.MBX-msJvbF3DM95lcH2dQGxeDyhLgxgZHjDXlxEKj_o " =342x470")


For CO2 module setup and calibration details, see [Integrate the Carbon Dioxide (CO2) Module for EP1](https://docs.everythingsmart.io/doc/integrate-the-carbon-dioxide-co-module-Vy6NCfsTkE).

---

**Documents**

- [EP1 vs EPL: Which Sensor is Right for You?](https://docs.everythingsmart.io/s/products/doc/ep1-vs-epl-which-sensor-is-right-for-you-5B3RxiY3Kp)
- [Everything Presence One (EP1)](https://docs.everythingsmart.io/s/products/doc/everything-presence-one-ep1-3R178yZSUP)
- [Everything Presence Pro](https://docs.everythingsmart.io/s/products/doc/everything-presence-pro-nh3fIXmow9)
- [Everything Presence Lite (EPL)](https://docs.everythingsmart.io/s/products/doc/everything-presence-lite-epl-ZVnBzYzuX2)
- [Zone Configurator](https://docs.everythingsmart.io/s/products/doc/zone-configurator-93b9scGsa2)
- [Knowledge Base Articles](https://docs.everythingsmart.io/s/products/doc/knowledge-base-articles-KnRRmk4zvt)