Help setting up a battery automation

Please see #11 here:
How to help us help you - or How to ask a good question - Configuration - Home Assistant Community (home-assistant.io)