There is one improvement that I want to do. As it is now, when power is lost, the power resistors will still be in the circuit, draining the batteries. This will somewhat reduce their capacity. So I will let the resistors be put into the circuit through a contactor, or relay, with a 220V AC coil. The coil will be powered by mains. So if mains power is on, the relay will put the resistors into the circuit, cutting the chirping. If mains power is off, the relay will remove the resistors from the circuit, thereby preserving battery capacity.
I could even make it smarter, where the resistors will only be put into the circuit if the charger is NOT charging the batteries, but it is sufficient the way it is.