Hey everyone, I wanted to share my recent project that has really transformed how I interact with my smart home. It all started when I realized how much time I was spending on my phone just to control my Roborock vacuum cleaner. I was always on the go, especially in the mornings, and fumbling with the app just wasn’t cutting it. So, I decided to take matters into my own hands and create a simple yet powerful automation system using just one button!
The Setup
The core of this system is a single button that controls my Roborock vacuum in multiple ways. Here’s how it works:
-
Single Click: This starts a predefined cleaning routine. If the vacuum isn’t already cleaning, it kicks off a quick segment clean. I’ve set it to run once, which is perfect for a quick tidy-up.
-
Double Click: For those days when I really need the place spotless, double-clicking triggers the same routine but runs it three times. It’s like having a deep clean at my fingertips!
-
Long Press: This is my go-to for stopping the vacuum or sending it back to its docking station. It’s incredibly handy, especially if I hear it running when I’m not expecting it.
-
While Cleaning: If the vacuum is already in action, a single click pauses it. Resume with another click, and if it’s paused for too long, it automatically heads back home. This prevents any accidental over-cleaning!
The Challenges
Setting this up wasn’t without its hurdles. Initially, my partner accidentally triggered the vacuum in the middle of the night, leading to an unexpected cleaning session. To prevent this, I added a Do Not Disturb mode that disables the automation during late hours. It’s a small tweak, but it makes a world of difference!
The Solution
I used a combination of Home Assistant automations and a custom blueprint to achieve this. The blueprint handles the button presses and translates them into commands for the Roborock. It’s been a fantastic learning experience, and I’m proud of how it turned out!
Why This Matters
This setup has streamlined my morning routine and given me peace of mind knowing my home is always clean. Plus, it’s been a great way to experiment with Home Assistant’s capabilities. I’d love to hear your thoughts or any suggestions on how to improve it further!
If you’re interested in trying this out, I’ve shared the blueprint details in the comments. Feel free to reach out if you have any questions or need help getting started!
Happy automating! ![]()