Hey everyone! I’ve been diving into setting up some simple automations for my phone’s battery level notifications, and I wanted to share my experiences and ask for some advice.
I started by creating a basic automation that triggers when my phone’s battery level reaches 90% during charging. I added a condition to ensure it only activates when the phone is charging. Here’s how I set it up:
plaintext
platform: numeric_state
entity_id: sensor.redmi_note_8_pro_battery_level
above: ‘90’
And for the condition:
plaintext
condition: state
entity_id: sensor.redmi_note_8_pro_battery_state
state: charging
I also set up an action to call the notify service on my phone. When I manually trigger this automation, it works perfectly—I get the notification right away. But here’s the thing: when I remove the condition and just set it to trigger when the battery level is above 90%, nothing happens. The notification never comes through.
I’ve tried troubleshooting this by removing the condition entirely, but it still doesn’t work. It’s like the automation just doesn’t want to fire on its own. I’m not sure if it’s a timing issue or something else.
Another thing I’ve noticed is that notifications through the HA phone app can be a bit delayed. Sometimes it takes a few minutes for the notification to show up on my phone, even though I haven’t set any delays. If I open the HA app while waiting, the notification appears immediately. I suspect this has to do with Android’s background processing policies, but I’m not entirely sure.
I’ve allowed background access for the HA app, and I’ve played around with the notification settings, but nothing seems to make a consistent difference. This delay is a bit frustrating, especially when I’m trying to set up automations that need to react in real time.
If anyone has any tips or tricks for making these automations more reliable or reducing the notification delay, I’d love to hear them! Also, if you’ve successfully set up similar battery level notifications, I’d love to hear how you did it.
Thanks in advance for your help! Let’s keep learning and improving our smart home setups together! ![]()