Wall smart charcher

I have a flush-mounted box in the wall where I want to place my tablet. Now I’m looking for a smart charger that I can place in here. This charger should then switch off when my tablet is 80% charged and switch on again when the battery is below 20% again.
Does anyone have a tip as to which charger I can use for this?

I would just remove the battery and power the tablet directly. All that limiting the charge amount does is delay the eventual battery failure.

If you want to build such a charger thenwhat sensor would you use to see the battery level? The battery will age over time and eventually even 79% would be a struggle and it would be charging 100% of the time. And you may not know it until the battery melts down. So, what have you accomplished?

You could use a shelly plug to switch the charger on/off and some automation in HA.

I do not understand this obsession with self-managing wall-mounted tablet batteries. I’ve had an Amazon Fire 7 tablet running on the wall running 24/7/365 for over nine years now. The thing is grossly obsolete and has been cut off from updates by Amazon for a while now. I’ve also had an Amazon Fire 10 hanging on the wall running 24/7/365 for coming up on six years now, and it is also still running fine. These devices come with battery-management chips in them, so why not just let them do their thing and not stress out with trying to out-smart the silicon? My experience from the Fire 7 says that the device will be obsolete long before the battery fails…