Automation planner
Start with an automation idea, then find the devices and hubs you need
Choose a scene such as presence lighting, front door security, away mode, smart locks, energy alerts, climate comfort, or garden watering. The planner maps it to required devices, hub/controller gaps, feature limits, and Home Assistant YAML.
Turn lights on when someone enters a room and turn them off when the room becomes empty.
Devices you already own
Presence & lighting
Presence-based room lighting
Turn lights on when someone enters a room and turn them off when the room becomes empty.
Local risk
high
Security scene
No
Owned matches
0
- Choose a presence or motion sensor that exposes stable entities to Home Assistant.
- Connect lights through a local path when possible, such as Hue Bridge, Matter, Zigbee, or a native integration.
- Generate YAML only after the trigger and light entities are visible.
- Aqara Presence Sensor FP2
- Eve Motion
- Aqara Motion Sensor P1
- Philips Hue Bridge
- Home Assistant
- compatible presence or motion sensor
- light or lighting bridge
- Presence sensors can require vendor app calibration.
- Basic motion sensors may turn lights off while people are still still.
- Cloud-only lights can add delay to automations.
Recommended devices
alias: Turn on light when presence is detected
trigger:
- platform: state
entity_id: binary_sensor.presence_sensor
to: "on"
condition:
- condition: sun
after: sunset
action:
- service: light.turn_on
target:
entity_id: light.hallway
mode: singleNeed a setup decision?
$1.99 setup report
Send your hubs, target ecosystem, and this page context. We will return a concise path for what to connect, what hub is missing, which features may not work, and what to buy instead.
Share or save this result
Copy the current setup URL or a concise diagnosis summary.