Toggle Switch based on battery level - On works, Off Doesn't?

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