I’ve recently been exploring ways to optimize the battery life of my tablet, and I stumbled upon an interesting solution using a Shelly 1PM Mini. After some research and experimentation, I’ve managed to create an automation that monitors the tablet’s battery level and controls the power supply accordingly. Here’s how it works!
First, I set up a custom sensor to track the tablet’s battery percentage. Then, I created an automation that activates the power outlet when the battery drops below 20% and deactivates it once it reaches 80%. This cycle ensures the tablet doesn’t overcharge while maintaining optimal battery health. The best part? It’s incredibly simple to set up using Home Assistant’s automation editor. Simply navigate to the device settings, select the automation option, and paste the provided YAML code. Just remember to adjust the entity IDs to match your setup!
I’ve been using this system for a few weeks now, and it’s been working like a charm. My tablet’s battery life has improved significantly, and I no longer have to worry about manually managing the charging process. It’s a small but impactful tweak that makes daily life a bit easier.
If anyone has questions or suggestions for improving this setup, I’d love to hear them! Happy automating! ![]()