Closed matata86 closed 1 year ago
Have you configured a device entry? Where did you get the device address from?
the XiaoxiangBMS app on my iPhone shows the address bytes in reverse order, so if the iOS app says aa:bb:cc:dd:ee:ff, the address should be configured as ff:ee:dd:cc:bb:aa.
I have the same issue very regularly.
~ bluetoothctl devices
does show all devices, the addon at the (almost) same time, does not. I think the whole setup is not very robust against unstable connections as it does not use https://bleak.readthedocs.io/en/latest/api/scanner.html#starting-and-stopping but only scans once and then assumes the BMS is available ... ?
The scan uses bleak, there are some issues with bleak. If the device does not appear in the scan, batmon will not be able to connect.
Try to enable install_newer_bleak
and bt_power_cycle
closed due to inactivity. empty scan results is usually not a issue with batmon but with the OS, permission, container etc