# Automations and Flows

Create useful automations (Flows) with Everything Presence One in Homey.

## Prerequisites

* EP1 added in Homey and visible on the Devices tab
* At least one light or scene you can control from Homey

## Flow basics

* When: the trigger (e.g., Motion turned on)
* And: conditions (e.g., only after sunset, or if a light is off)
* Then: the action (e.g., turn on a light)

## Recipe 1: Turn on a light when motion is detected


1. In Homey, create a new Flow.
2. When: Select Everything Presence under apps > EP1 > Motion Alarm turned on.
3. And (optional): Only after a certain time of day.
4. Then: Turn on your chosen light or scene.


:::warning
Screenshot of EP1 Homey Flow needed.

:::

## Recipe 2: Turn off the light when the room is empty


1. Create a second Flow.
2. When: Select Everything Presence under apps > EP1 > Motion alarm turned off.
3. And (optional): Any optional conditions
4. Then: Turn off the same light.

## Recipe 3: Dim lights based on light level


1. Create a new Flow.
2. When: Select Everything Presence under apps > EP1 > Light level changes (measure_luminance).
3. And (optional): Only when Motion is on.
4. Then: Set light brightness.


:::warning
Screenshot of EP1 Homey Flow with luminance trigger needed.

:::

## Advanced (optional)

* Combine temperature/humidity with presence to control HVAC scenes.
* Add a time window to limit automation to certain hours.

## Verify

* Trigger each Flow by moving in front of EP1 or changing light conditions.
* Confirm actions run and show in Homey's Flow timeline.

## Troubleshooting

| Symptom | Likely cause | Fix |
|---------|--------------|-----|
| Flow does not run on Motion | Wrong device selected or disabled trigger | Re‑select EP1 as the trigger device; check device status in Homey |
| Lights turn off too quickly | No delay or short timeout | Use the "Off Delay" controls for the PIR, mmWave or Occupancy sensor under device settings. See [Homey Sensors and Controls](/doc/afc39d73-07bc-4a07-b8e3-710910229424) |
| Brightness changes too often | Light level triggers too frequently | Add an "And" condition (only when Motion is on) or adjust thresholds |

## Next steps

* Full capability list: [Homey Sensors and Controls](/doc/afc39d73-07bc-4a07-b8e3-710910229424)
* Home Assistant alternative: [Set up your EP1 device in Home Assistant](/doc/4b6082c4-cff2-4b2e-a563-374c976974b1)

---

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