Change settings automatically on low battery

I have a battery doorbell and I have it wired connected. But if my dad is sometimes doing gardening all day it will drain the battery completely, I wish their was a way when the better got below 20% it would switch to button only recording, this would give my trickle charging time to constantly recover the batter before it drains completely. Low battery warning should allow trigger to power saving settings.