IoT smart battery