My favorite automations

Here are some of my automations, that I really love
I use mainly HomeKit (for simplicity), but sometimes I use Aqara or combination of both.

1. Bathroom lightning

This started as simple as door open → light on and when no presence → light off, however a UX bug appeared when people unaware of the automation started using it.
My light is controlled via the Single Switch Module T1, which is wired to a physical light switch and it turned out that every single person entering the bathroom was almost simultaneously first opening the door (or their presence was detected if door was already open) and then flipping the light switch which resulted in light turning on and off again, due to the light switch.
Their faces were always looking like a lightbulb was burned :smiley:

So in order to solve this, I had to figure out a way to prevent people from turning the light off accidentally.

Device List:

  • 1x Aqara Door and Window Sensor
  • 1x Presense Sensor FP2
  • 1x Single Switch Module T1 (With Neutral)

Automation Rules:

HomeKit
  • when the door opens then turn the light on
  • when the door closes and not occupied then turn the light of
  • when not occupied then turn the light off
  • when occupied then turn the light on
Aqara
  • [Keep light ON] if light turn off then turn light on - this automation is enabled/disabled via the next automations which allows selectively to keep the light on
  • if door open then enable [Keep light ON], wait 5 seconds, disable [Keep light ON]
  • if presence and door opened for over 1 min then enable [Keep light ON], wait 5 seconds, disable [Keep light ON]

2. Bathroom leak prevention

Sometimes, when taking a shower, if our syphon gets clogged, the water starts to build up and spills under the door, causing a minor flooding in the hallway. This can even happen even when you are washing away the shampoo/soap from your face and not being able to see it happening. So far, this happened twice and I decided to solve this problem once and for all.

I installed a leak sensor on the doorstep that allows me to automatically stop the water (via a valve controller) and stop the water heater (via single switch module + 20A contactor).

The water leak sensor is hidden within the door frame and wires are used to position it’s contacts at the doorstep.

The 20A contactor is used, becuase the single switch module is rated up to 10A, but the water heater is ~13A, so technically the single switch module controls the contactor, which controls the water heater.

Additionally, when the water is turned off, the water heater is turned off as well, in order to prevent heat pressure buildup.

Device List:

  • 1x Valve Controller T1
  • 1x Water Leak Sensor
  • 1x Single Switch Module T1 (With Neutral)

Automation Rules:

  • when leak is detect at doorstep then turn water off
  • when water is turned off then turn water heater off
Video


3. Bedroom ceiling light brightness in background

When the night comes and advance, I would really like to dim the light gradually and restore it to full brightness when the night is over.
Since that is not possible out of the box, I’ve built a combination of several automations and scenes that make it works for me so far.

For these automations, I use HomeKit and Home+ app, which allows me to set specific properties, like only the brightness. So I have scenes for every desired brightness, in my case 100%, 80% 65%, 50%, 35%, 20%

Compared to Home and Aqara apps, there is no way to set only the brightness even when the light is off. They always turn the light on while setting the brightness, which is undesired, because even if the light is off, I would like to set/reduce it’s brightness so it is ready when turned on later.

Compared to setting the brightness when turning on - this causes the light to start at eg. 100% and reduce it’s brightness shortly to eg. 50%, which screw up the gradual turn on/off effect.

Device List:

  • 1x Aqara Ceiling Light T1M

Scenes:

  • 100%
  • 80%
  • 65%
  • 50%
  • 35%
  • 20%

Automation Rules:

  • when sunrise then set brightness to 100%
  • when 1 hour before sunset then set brightness to 80%
  • when sunset then set brightness to 65%
  • when 1 hour after sunset then set brightness to 50%
  • when 2 hours after sunset then set brightness to 35%
  • when 3 hours after sunset then set brightness to 20%
Images
1 Like

@AqaraBot what do you think?

@fielder_glades.0a It sounds like you’ve put a lot of thought and effort into creating smart and efficient automations for your home! Your solutions, especially for the bathroom lighting and leak prevention, show a great understanding of both the technology and practical needs of a household. It’s impressive how you’ve tackled common issues, like accidental light switch activations and potential water leaks, with clever use of Aqara devices and automation rules.

Your approach to gradually adjusting the bedroom light brightness is particularly innovative. By using scenes to manage brightness levels throughout the night, you’re effectively enhancing the ambiance without disrupting sleep. It’s a thoughtful touch that highlights the power of smart home technology in improving daily life.

Thank you for sharing these insights and examples with the community! It’s always inspiring to see how others are utilizing technology to solve real-world problems. Keep up the great work, and feel free to share more of your creative solutions!

Forgot to mention that I flooded my bathroom intentionally in order to determine where to put the wire contacts, so that this is the place where water first goes before actual flooding occurs

@fielder_glades.0a It’s great to hear about your thorough approach to setting up the water leak sensor! Intentionally flooding your bathroom to pinpoint the optimal placement for the wire contacts shows dedication to ensuring your setup is as effective as possible. This proactive testing can make a big difference in preventing future water damage. Thanks for sharing this extra insight—it’s valuable for anyone looking to optimize their own smart home devices. Keep these insights coming!

:clap: :clap: :clap: Thanks for the detailed sharing!

1 Like