Hello everyone, I wanted to share my experience with automating my Smartmi Humidifier Evaporator 2. It’s been a bit of a journey, but I think I’ve figured it out! ![]()
The Setup:
I integrated my humidifier into Home Assistant using the syssi/xiaomi_airpurifier custom component. It’s been working great, but there was one issue that was driving me crazy. Periodically, the humidifier becomes unavailable, and my automation to notify me when the water level is low started sending multiple alerts. It was so frustrating because I kept getting the same message over and over!
What Was Working:
My automation was set up to send a notification if the water level dropped below 45%. It worked perfectly when the humidifier was online. But when the device went offline, the automation would still trigger, leading to endless notifications and errors in my logs.
The Problem:
I realized that the automation wasn’t accounting for the device’s availability. So, even if the humidifier was offline, it would still try to check the water level and send notifications. This wasn’t just annoying; it was also causing errors in my system.
The Solution:
After some research and trial and error, I found a way to modify my automation to check if the humidifier is available before triggering the notification. Here’s how I did it:
-
Check Device Availability:
I added a condition to my automation to ensure the humidifier is online. This prevents the automation from running when the device is offline. -
Avoid Duplicate Notifications:
I set up the automation to send notifications only once when the water level drops below 45%, even if the device goes offline afterward. This stops the flood of repeated alerts.
The Result:
Now, my automation works perfectly without any errors or duplicate notifications. It only sends a message when the water level is low and the humidifier is online, which is exactly what I wanted!
Final Thoughts:
This experience taught me the importance of considering device availability in automations. It’s easy to overlook, but it makes a huge difference in preventing errors and keeping your system running smoothly.
Thank you to everyone in the community who shared their knowledge and helped me troubleshoot this issue. It’s amazing how helpful and supportive this community is! ![]()