Comments (2)
I don't currently have a raspbian system to verify this with, but once I do I'll update the README with instructions.
If you ran pip install bluetti_mqtt
then you should have a bluetti-mqtt
command installed (you might have needed to use pip3
). On Ubuntu it's in /home/$USER/.local/bin/
, but you can find where it is by running which bluetti-mqtt
. If that doesn't work, run python -m site --user-base
and look in the bin
subfolder.
$ python -m site --user-base
/home/ubuntu/.local
$ ls /home/ubuntu/.local/bin/
bleak-lescan bluetti-logger bluetti-mqtt
Once you have the path to the bluetti-mqtt
command you can use that in a systemd service. This file should be placed at /etc/systemd/system/bluetti-mqtt.service
. You'll need to update the path, MQTT broker host, and bluetooth addresses.
[Unit]
Description=Bluetti MQTT
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=30
TimeoutStopSec=15
User=pi
ExecStart=/PATH/TO/bluetti-mqtt --broker BROKER_HOST_HERE BLUETOOTH_ADDRESS
KillSignal=SIGINT
[Install]
WantedBy=multi-user.target
Once you've created the file, you should be able to run sudo systemctl enable bluetti-mqtt
, so that it automatically starts when you reboot, and sudo systemctl start bluetti-mqtt
to start it. If that doesn't work, try running sudo journalctl -u bluetti-mqtt
to see if it printed out any errors.
from bluetti_mqtt.
Thanks, now it's working :)
from bluetti_mqtt.
Related Issues (20)
- Connecting to AC200M HOT 3
- Support for EP760
- bluetti-mqtt: error: TypeError: 'NoneType' object is not subscriptable 2023-11-20 14:47:38 INFO Shutting down... HOT 1
- Error connecting to device - HA+Bluetti2MQTT+AC200M HOT 1
- Simple Command Example Request HOT 2
- bluetti-mqtt HAOS add-on no longer working after latest upgrade HOT 1
- Support of Bluetti Balcony System HOT 1
- AC200M connectivity to B230 HOT 1
- What would be involved to add support for EP800? HOT 3
- DON'T UPDATE YOUR STATIONS! HOT 21
- Errors when connecting (EP500Pro) on Raspberry Pi HOT 6
- Support of Bluetti Balcony System
- Suport for AC200L HOT 12
- I just installed with misquitto mqtt on home assistant and get the following error when I try to start blueti-mqtt HOT 5
- EP500Pro secret BMS menu, more Data?
- bluetti-logger not logging
- Support for AC180 HOT 1
- Support for AC2A
- Bluetooth connection will not initiate with AC500
- AC70P support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bluetti_mqtt.