Limit the maximum charging percentage of your battery.
It sends a signal to your Mac when battery power on your iPhone gets low.
Track the batteries of your devices from your Mac.