fl4p / batmon-ha

Add-on for Home Assistant to connect JK, JBD, Daly, ANT, SOK and Supervolt BMS via Bluetooth
MIT License
313 stars 60 forks source link

Offline usage #244

Open slundell opened 4 months ago

slundell commented 4 months ago

When the addon starts, it checks if it needs to install a new bleak or influxdb using pip. This requires internet connection. If possible, this package should be cached, or preinstalled - or should maybe continue to run but with default package versions.

fl4p commented 4 months ago

Yes, I am working on this. batmon uses an older bleak fork that has a proper pairing agent, and the environment files in the Docker will be reset every time the container starts, so it needs to re-download bleak every time. I am about to create a 2nd virtual env for the older version.

Influxdb should be added to the Dockerfile .

If you remove influxdb from the batmon settings and disable install_newer_bleak, it will work offline

fl4p commented 4 months ago

Also, batmon should probably just continue even if pip fails