Is it theoretically possible to build a device that connects to a laptop via USB-C, receives battery level information and connects laptop to a charger only if the battery level is in certain range?
I am totally inexperienced in electrical engineering, hence also (if the above is possible at all):
- Is it something complicated / platform specific (on a hardware level) or relatively easy to do having some basic knowledge?
- How is it different with Thunderbolt 3?
Assumptions:
- Laptop supports USB-C power delivery charging.