Bluetti: Difference between revisions

From wikipost
Jump to navigation Jump to search
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 4: Line 4:
<pre>
<pre>


# apt-get install git mosquitto python3-pip
# apt-get install git bluez mosquitto python3-pip python3-venv


---[/etc/mosquitto/mosquitto.conf]---
---[/etc/mosquitto/mosquitto.conf]---
Line 10: Line 10:
---
---


---[/etc/rc.local]---
su -c "/home/<user>/bin/bluetti/start-bluetti-client &" <user>
---


$ mkdir ~/bin

$ mkdir ~/bin/bluetti

$ cd /home/<user>/bin/bluetti
$ cd ~/bin/bluetti
$ python -m venv venv
$ python -m venv venv
$ . venv/bin/activate
$ . venv/bin/activate
$ pip3 install git+https://github.com/ftrueck/bluetti_mqtt
$ pip3 install git+https://github.com/ftrueck/bluetti_mqtt




(venv) me@host:~/bin/bluetti $ bluetti-mqtt --scan
Scanning....
Found EB3A2314000814597: address F4:D9:1A:B4:7F:04









Line 25: Line 34:


update the MAC address in the 'start-bluetti-client' script
update the MAC address in the 'start-bluetti-client' script


---[/etc/rc.local]---
su -c "/home/<user>/bin/bluetti/start-bluetti-client &" <user>
---


</pre>
</pre>

Latest revision as of 11:33, 28 September 2025

Resources to get battery voltage and other stats from Bluetti Power Boxes on linux.



# apt-get install git bluez mosquitto python3-pip python3-venv

---[/etc/mosquitto/mosquitto.conf]---
allow_anonymous true
---


$ mkdir ~/bin
$ mkdir ~/bin/bluetti
$ cd ~/bin/bluetti
$ python -m venv venv
$ . venv/bin/activate
$ pip3 install git+https://github.com/ftrueck/bluetti_mqtt




(venv) me@host:~/bin/bluetti $ bluetti-mqtt --scan
Scanning....
Found EB3A2314000814597: address F4:D9:1A:B4:7F:04







run 'bluetoothctl' to show the EB3A ID and MAC

update the MAC address in the 'start-bluetti-client' script


---[/etc/rc.local]---
su -c "/home/<user>/bin/bluetti/start-bluetti-client &" <user>
---