Why would the battery be heated if it's not charging? You can set a gap - e.g. 80-100% where the battery won't start charging until it drops below 80%. Look at the documentation for your relevant power-management module.
Heat transfer from the device it's plugged into.