I’ve been really impressed with how Home Assistant can automate everyday tasks, and I wanted to share an automation I recently set up. It’s designed to open the curtains in the morning based on alarm clocks, but with a few smart twists to make it more convenient.
The Automation in Action
The idea is simple: when the alarm rings, the automation checks if my partner is home. If they’re not, it opens the curtains right away. If they are, it waits for their alarm to go off, but no more than 3 hours. This way, it ensures the curtains open as soon as both of us are awake.
Why I Added Restrictions
To make it even smarter, I added a restriction so the automation doesn’t run more than once every 10 hours. This prevents the curtains from opening again if we forget to turn off the next alarm. I also set a time condition so it only triggers between 8:00 AM and 12:30 PM, avoiding any false triggers in the evening.
How It Works
- Detection: Uses presence sensors to check if my partner is home.
- Alarm Check: If they’re home, it waits for their alarm to go off.
- Time Limit: Ensures it doesn’t wait more than 3 hours to prevent any delays.
- Restriction: Only runs once every 10 hours to avoid multiple triggers.
- Time Window: Only activates between 8:00 AM and 12:30 PM.
Setting It Up
I used the Home Assistant app on both Android and iOS to set this up. The automation involves creating a button in Home Assistant that’s triggered when an alarm stops. It then checks who stopped the alarm and acts accordingly. For Android, I had to enable the sensor for the next alarm in the Home Assistant settings.
Why This Matters
This automation has been a game-changer for mornings. It ensures the curtains open at the right time without any manual intervention. The added restrictions make it robust and prevent any unwanted behavior.
I’d love to hear if anyone else has implemented similar automations or has suggestions for improvements! Let’s share our smart home hacks and make our mornings even better! ![]()