Phone charger on/off by battery level

Please post the full automation and make sure it’s properly formatted.

Your previous trace screenshot shows automation.aphone_charge_control was turned off, so something must have told it to switch off the automation.