sw-home / fhem-bluetoothsmartbms Goto Github PK
View Code? Open in Web Editor NEWGet readings from the Bluetooth Smart BMS from https://www.lithiumbatterypcb.com/ in FHEM
License: GNU Affero General Public License v3.0
Get readings from the Bluetooth Smart BMS from https://www.lithiumbatterypcb.com/ in FHEM
License: GNU Affero General Public License v3.0
Hey,
i'm trying to get your python3 script running but i'm running into this Exception and i'm pretty lost from here.
Do you have an idea what the problem is?
pi@raspberrypi:/opt/FHEM-BluetoothSmartBMS/Raspberry$ sudo python3 bmstcp.py AA:BB:CC:A2:23:45 9998 [AA:BB:CC:A2:23:45] Connecting [AA:BB:CC:A2:23:45] Connected BMS server for AA:BB:CC:A2:23:45 is listening on 0.0.0.0:9998 ERROR:dbus.connection:Exception in handler for D-Bus signal: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/dbus/connection.py", line 230, in maybe_handle_message self._handler(*args, **kwargs) File "/usr/local/lib/python3.7/dist-packages/gatt/gatt_linux.py", line 398, in properties_changed self.services_resolved() File "bmstcp.py", line 31, in services_resolved s for s in self.services StopIteration [AA:BB:CC:A2:23:45] Disconnected
Hello,
I hope that I am not completely wrong with my request here, since this is probably more about problems with the project.
The script bmsinfo.py works fine for me. Thank you very much! I don't manage to use ist with Node-Red. I was able to establish a Bluetooth connection with Node-Red. I can also send a command and end the connection again.
But I can't get it to read and display the values.
Can anyone help me?
Hi,
I try to connect to my SmartBMS the way you mention but I reciev an error:
sudo python3 bmstcp.py A4:C1:38:06:BC:A6 9998
[A4:C1:38:06:BC:A6] Connecting
[A4:C1:38:06:BC:A6] Connection failed: Input/output error
I am able to connect using gatttool:
sudo gatttool -i hci0 -b A4:C1:38:06:BC:A6 -I
[A4:C1:38:06:BC:A6][LE]> connect
Attempting to connect to A4:C1:38:06:BC:A6
Connection successful
Any idea what I could do?
Thanks
Maarten
Hi. I'm really new, need some help
after execute: sudo python3 bmstcp.py A4:C1:38:17:FA:44 9998
I get:
File "/home/pop/bmstcp.py", line 8
^
SyntaxError: invalid syntax
Hi there, thanks for your great work.
Is it possible to include the SOC (State of Charge) into the code?
Or do i have to calculate it by my own out of the Battery Voltage?
Thank You and a happy new Year!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.