Set up a button routine and litter-box vacuum trigger

A commenter used Claude to wire a Home Assistant button into morning and bedtime routines, plus a vacuum cleanup tied to the litter box.

Done with Claudeยท Intermediateยท Oct 2026

What they did
They paired an Aqara Wireless Mini Switch with Home Assistant as the physical control for a daily routine. One press triggered different actions by time of day: in the morning it brought the lights up gradually, played a reminder, and started music; at night it dimmed the lights slowly, played a bedtime reminder, queued a sleep playlist, and secured any outside doors that were still open. In the same system, a litter-box cycle told a Roborock to clean the area in front of it, but only if the game room was empty and the living-room TV was not playing media.
How it went
They called these their favorite automations. The litter-box flow also turns a nearby closet light red when the waste bin is close to full.
Tips
Use presence and media-state checks if you want a cleanup routine to skip busy times. For any step that could lock doors or otherwise change security settings, have the agent pause and ask before running it.

Try it yourself with Claude

Help me build two Home Assistant automations for my home. First, make a [morning] and [night] routine that starts when I press [button/device name], with lights that fade, a spoken reminder, and a playlist for each time of day, plus a step that locks any exterior doors that are still unlocked at night. Second, when [litter box trigger] happens, send [robot vacuum model] to clean in front of it, but only if [room] is empty and the [TV/media device] is not playing. Show me the YAML using my entity names as placeholders, and ask me to approve before any action that locks doors, sends a command, or makes other irreversible changes.

Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.

Read the original on reddit.com โ†—

Get 3 agent uses like this every morning

With the day's top AI news. Free, and one click to unsubscribe.