# SmartThings Automation Examples for EPL

# SmartThings Automation Examples for EPL

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 EPL trigger or condition, and `Then` for the action such as lights, scenes, notifications, or ventilation.

## Turn lights on when the room is occupied

If:

* EPL `Presence` changes to `Motion detected`

Then:

* Turn on the room lights

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

Optional condition:

* EPL `Illuminance` is below your preferred brightness level

[Image placeholder: SmartThings routine using EPL Illuminance as a condition]

## Use a zone for a desk light

If:

* EPL `Zone 1` changes to `Motion detected`

Then:

* Turn on the desk light

If:

* EPL `Zone 1` changes to `No motion detected`

Then:

* Turn off the desk light

[Image placeholder: SmartThings routine using EPL Zone 1 for a desk light]

Tip: set Zone 1 to cover the desk area before creating the routine. Use [Zone Configurator](https://docs.everythingsmart.io/doc/zone-configurator-93b9scGsa2) to create or adjust zones.

## Use a zone for a sofa or seating area

If:

* EPL `Zone 2` changes to `Motion detected`

Then:

* Set living room lights to your evening scene

This works best when the zone has already been tuned so it only covers the seating area.

## Use illuminance to avoid daytime lighting

If:

* EPL `Presence` changes to `Motion detected`

Condition:

* EPL `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:

* EPL `CO2` rises above your chosen ppm value

Then:

* Send a notification
* Turn on ventilation, if available

[Image placeholder: SmartThings routine using EPL CO2 as an air quality trigger]

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

---

**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)