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
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:
- 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
- [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
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%