Here you have a project to be aware of the status of the battery while charging, providing useful information in real-time and helping to protect the battery and the device itself against critical temperatures and warning you when charged at a specific level.
These are the main features:
• Real time information (notification and floating scene)
• Battery level and temperature protection (charging limits).
• Enable/disable charging in the background (charging limits). (root only)
• Solid and colored battery icon, according to the current level (%).
This is the info you will know in real time:
• Connection type (AC, USB, Wireless)
• Estimated total charging time
• Input current (mA)
• Max input from charger (mA, V, W)
• Temperature (ºC/°F)
• Voltage (V)
• Watts (W)
An 'Initial Setup' task is included, which needs to be executed on first import, regardless of whether it is imported from TaskerNet or XML.
Although the project obtains the values from the system itself, these will never reflect the accuracy of those returned by specific power meters.
- Thanks to @AndersonMarcio, @cruzer_blaze2, @GeovanDamascenofor, @gerardo246, @MeloProfessional and @Valdorg for helping on building and testing/debugging the project.
- Here you will find the task from which the color animation feature was based on. (Credits: @MeloProfessional)
- Single click the notification to show 'Desktop View' mode.
- During the first seconds or perhaps minutes, some of the values may not appear. That's because Tasker must wait for the intent to collect all the corresponding data. If some of them remain unset for a long time, that means that your device doesn't support retrieving such information, or the project is not yet adapted for your device.
- The capacity (%) and temperature (ºC/ºF) can be used as charging limiters to protect the battery and the device itself. When a certain value (configured from 'Setup' task) is detected during charging, the device will automatically cut off the power even if the charger remains plugged in, if rooted; and, a notification (voice) will begin to warn of this situation, if not rooted.
- By default, the 'BM - Timer' profile (trigger: temperature) will check every 10 min if charging can be resumed without user interaction. Configure it according to your needs.
- The file(s) that allows cutting off the power and resuming charging in the background, if supported, must be configured for your device. Look for the actions labeled as yellow (Enable/Disable Charging) on 'BM - Collect Battery Data' task and the task linked to the 'BM - Timer' profile.
- If Tasker fails to write to the 'Enable/Disable Charging' file, try using 'chmod +rw' or a permission that works for you.
- To find the right file(s) for toggling charging in the background, if available for your device, you can try 'ACCA' app, or 'Tasker Charging Switch' project (Credits: @MeloProfessional).
- If you don't know the battery design capacity of your device you can get it using this profile.
- If you see the 'time_error' message for charging time, that means that your SDK is not the minimum required and there was an error getting mAh of your battery. So, you will need to configure the capacity from 'Setup' task, manually.
- A debug task (Debug Task) is included in case the user has problems with erroneous values or not shown. Follow the instructions inside it to know how to use it.
Battery Monitor v1.3
Keep and eye at your battery when charging