This is a simple software that will check the battery level of your computer et send it to Home Assistant.
OS | Normally | Tested |
---|---|---|
Linux | ✅ | ❌ |
Windows | ✅ | ✅ |
MacOS | ✅ | ❌ |
Simply download the latest release and run the executable.
C:\Users\%USERNAME%\AppData\Roaming\ha-battery-level\settings.toml
~/.config/ha-battery-level/settings.toml
~/Library/Application Support/ha-battery-level/settings.toml
Building apps requires gcc as well as the gtk3
and libayatana-appindicator3
development headers to be installed. For Debian or Ubuntu, you may install these using:
sudo apt-get install gcc libgtk-3-dev libayatana-appindicator3-dev
(Source: getlantern/systray)
git clone https://github.com/oriionn/ha-battery-level.git
cd ha-battery-level
go build -ldflags -H=windowsgui
go build
This project is licensed under the MIT License - see the LICENSE file for details.