# /etc/systemd/system/van-li3-battery.service [Unit] Description=Publish Li3 BMS battery telemetry to Home Assistant via MQTT After=network-online.target bluetooth.target mosquitto.service Wants=network-online.target [Service] ExecStart=/usr/local/sbin/van-li3-battery # The script retries BLE scan/connect internally (including self-healing a # wedged bluetoothd discovery state — see the script's docstring) and only # exits on MQTT-level failure, which shouldn't happen in normal operation. # Restart=always is a backstop for that case, matching van-gps-owntracks. Restart=always RestartSec=10 [Install] WantedBy=multi-user.target