Overview
This Home Assistant automation synchronizes your home lights with the movements of your robot vacuum.
It automatically turns on the light in the room where the vacuum is cleaning or entering, and switches it off when the vacuum leaves or stops.
Features
Lights turn on when the vacuum starts cleaning.
Lights turn on when the vacuum enters a room.
Lights turn off when the vacuum leaves a room.
Lights turn off when the vacuum is paused, docked, idle, or in an error state.
Optional ambient light sensor with lux threshold.
Optional presence detection (prevents lights from switching when someone is home).
Optional adjustable brightness level for lights.
Requirements
Mandatory
- A working Home Assistant setup.
- A robot vacuum that exposes a current room sensor (e.g., Dreame L40s Pro Ultra with
sensor.current_room). - Light entities (
light.xxx) mapped to your rooms.
Optional
- Presence entities (
person.xxx) to prevent lights from switching if someone is home. - An ambient light sensor (
sensor.xxx) with a lux threshold to avoid turning lights on when it’s already bright. - Adjustable brightness level for lights when turning them on.
Import Blueprint
Setup
- Copy the blueprint YAML file into your
blueprints/automation/folder. (Only needed if the import button above cannot be used.) - Restart Home Assistant or reload automations. (Only needed if the import button above cannot be used.)
- Create a new automation using this blueprint.
- Fill in the inputs:
- Vacuum entity.
- Room sensor.
- JSON mapping of rooms → lights.
- (Optional) Presence entities, light sensor, brightness level.
Example JSON mapping of rooms → lights
{
"Bathroom": "light.lumieres_sdb",
"Dining Hall": "light.lumieres_sam",
"Living Room": "light.lumieres_salon",
"Kitchen": "light.lumieres_cuisine"
}