#How to make certain entities do things when the vacuum robot is vacuuming the room they're in?

1 messages · Page 1 of 1 (latest)

quick mural
#

I don't need hand-holding, just need someone to point me in the right direction.

I have the Roborock integration, meaning my HA has an entity that indicates which room the robot is currently working in.
Each of those rooms has ESPhome controlled devices.
I want to set up something so that whenever the robot is cleaning a room, the ESPhome device in that room enters a specific state until the robot leaves.

How would I best go about this? I mean, an automation, obviously, but how would I structure it?
Should I create scenes for each room and trigger the scenes? Or directly control the devices? Would I need one automation per room?
I'm struggling to wrap my head around this and come up with a plan.

naive trellis
#

My first idea would be, single automation and a chooser in there per room + no room.

Scene is only useful if you need to change multiple devices, especially if you want to use the same setting from multiple locations. Otherwise it's just easier to set up the device directly.

quick mural
#

ah ok a chooser, I'll look into that, thanks

#

hadn't occurred to me

quick mural
#

What if I wanted the devices to change state immediately when the robot enters their room, but then to only return to base-state X mins after the robot left the room?

naive trellis
#

You can have a state trigger with a for time set. That will trigger that time after the change so would give you the option in the automation to see that and thus act then.