Hacker News new | ask | show | jobs
by nirav72 1151 days ago
That’s basically what I did for a android tablet mounted to a wall for home assistant control panel. Had a shelly smart plug that could be controlled via a simple http get request. I used tasker to monitor the charge state. When it reached specific state value, it would then make an http request to the shelly plug to turn off. Same when battery level dropped below a certain percentage.
2 comments

Just watch out for battery degradation, at some point the % shown will not mean anything.

Even at 100% the battery won't be able to give enough power to even stay ON unless plugged in all the time. This is why we need removable and easily replaceable batteries as most devices are 2-3 years of regular use will have a degraded battery.

Yes - you're absolutely right. Eventually I'm going to see degradation in capacity. Fortunately, the tablet is a Amazon fire 10 tablet (rooted) and relatively cheap to replace. I paid $100 for it 3 years ago.
That's actually a really clever hack.