cot: battery indicator final

This can likely be cleaned up a lot, but it does work.