I switched to the http://HiPi.io/BuyaPi.ca/PiShop.us UPS HAT when I upgraded to a Pi 4.
However, the provided code did not work with OpenELEC, so I forked it and fixed it up.
Instructions are in my pull request below for anyone else who may want to use this UPS with OpenELEC 10.
Product Page:
UPS Hat - HiPi.io
Overview Tech Specs Buy Now UPS HAT UPS HAT for Raspberry Pi Introducing our own uninterruptible power source for the raspberry pi! The UPS hat is powerful…
www.hipi.io
Pull Request and Instructions:
LibreELEC 10 Compatibility by skinlayers · Pull Request #6 · hipi-io/ups-hat
Convert bash scripts to be POSIX compatible.
LibreELEC is based on busybox, so bash is actually an alias for ash on that platform.
ash doesn't support bare…
github.com
Enjoy!
skinlayers