Automation Examples
Automation Examples
Create simple, reliable automations with Everything Presence One in Home Assistant.
Prerequisites
EP1 added to Home Assistant and entities available (see Home Assistant Entities Overview)
At least one light or scene controllable in Home Assistant
Automation Basics
Trigger: when something happens (e.g., Occupancy turns on)
Condition (optional): only at certain times or if a device is off
Action: what to do (e.g., turn on a light)
Example 1: Turn on a light when room is occupied
Go to Settings → Automations & Scenes → Create Automation
Click Add Trigger → State
Select your EP1 Occupancy entity
Set To:
on(Optional) Add a Condition → Sun → After sunset
Click Add Action → Device → Select your light → Turn on
Save the automation
Example 2: Turn off the light when room is clear
Create a new automation
Trigger: State → EP1 Occupancy → To:
off→ For: 2 minutes(Optional) Condition: State → Your light → is
onAction: Turn off the same light
Start with a 2-5 minute delay ("For" duration) to avoid lights turning off when people are sitting still. Adjust based on your needs.
Example 3: Presence-based climate control
Turn off heating/cooling when room is empty:
Trigger: State → EP1 Occupancy → To:
off→ For: 10 minutesAction: Climate → Set HVAC mode → Off (or set to away temperature)
Create a second automation to restore when occupied:
Trigger: State → EP1 Occupancy → To:
onAction: Climate → Set HVAC mode → Heat/Cool
Example 4: Notification when room occupied (security)
Trigger: State → EP1 Occupancy → To:
onCondition: Time → After 11:00 PM, Before 6:00 AM
Action: Send notification to your phone
Verify Your Automation
Walk in front of the EP1 and watch the automation run
Check Settings → Automations → [Your Automation] → Traces if it didn't fire
Verify the entity name matches exactly (check in Developer Tools → States)
Troubleshooting
Symptom | Likely Cause | Fix |
|---|---|---|
Automation never triggers | Wrong entity or state | Confirm entity ID matches your device name |
Lights turn off too quickly | No delay or short timeout | Increase the "For" duration (try 2-5 minutes) |
Automation triggers randomly | False positives from sensor |
Next Steps
Home Assistant Entities Overview - All available sensors and controls
How to Tune Your EP1 Sensor - Optimize detection for your room
Troubleshooting - Common issues and solutions