Can't connect via bluetooth
yarosman opened this issue · 7 comments
Hello. I try to use default ble example with logging to connect JBD-AP21S001-L20S-150A-B, but nothing work
[02:03:56][VV][api.service:470]: on_ping_request: PingRequest {}
[02:03:56][VV][api.service:043]: send_ping_response: PingResponse {}
[02:03:56][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected
[02:03:58][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected
[02:04:00][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected
[02:04:02][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected
[02:04:04][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected
[02:04:06][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected
[02:04:08][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected
[02:04:10][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected
Does your ESP32 report/see other BLE devices around you? Is your ESP able to see the BMS but unable to connect? How old/new is your BMS? Could you provide a photo of the BLE dongle? Do you own an Android device? I could provide some instructions how to do a traffic capture of the data between the Android App and the BMS.
Does your ESP32 report/see other BLE devices around you?
Yes, I enableesp32_ble_tracker
,bluetooth_proxy
and saw other devices in the logsIs your ESP able to see the BMS but unable to connect?
ESP was saw BMS because of
[14:28:37][V][bluetooth_proxy:033]: Proxying packet from yarosman BMS - A4:C1:37:41:59:DA. RSSI: -55 dB
// after enabling jbd_bms_ble
[14:36:55][D][esp32_ble_tracker:216]: Pausing scan to make connection...
[14:36:55][I][esp32_ble_client:064]: [3] [A4:C1:37:41:59:DA] 0x00 Attempting BLE connection
[14:36:56][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected
How old/new is your BMS?
Manufact.data 10 Jan 2022Could you provide a photo of the BLE dongle?
No, it's under the hood of my batteryDo you own an Android device? I could provide some instructions how to do a traffic capture of the data between the Android App and the BMS.
No, I don't have, but I can get it. Can you give me the instruction ?
Could you temporary remove the bluetooth_proxy
component and tell me the ESPHome version you are using? A full log would be helpful too.
esphome version = 2022.12.8
Logs
[21:29:43][C][wifi:504]: WiFi:
[21:29:43][C][wifi:362]: Local MAC: 78:21:84:BB:43:7C
[21:29:43][C][wifi:363]: SSID: [redacted]
[21:29:43][C][wifi:364]: IP Address: 192.168.1.208
[21:29:43][C][wifi:366]: BSSID: [redacted]
[21:29:43][C][wifi:367]: Hostname: 'jbd-bms'
[21:29:43][C][wifi:369]: Signal strength: -32 dB ▂▄▆█
[21:29:43][V][wifi:371]: Priority: 0.0
[21:29:43][C][wifi:373]: Channel: 10
[21:29:43][C][wifi:374]: Subnet: 255.255.255.0
[21:29:43][C][wifi:375]: Gateway: 192.168.1.1
[21:29:43][C][wifi:376]: DNS1: 192.168.1.1
[21:29:43][C][wifi:377]: DNS2: 0.0.0.0
[21:29:43][C][logger:293]: Logger:
[21:29:43][C][logger:294]: Level: VERY_VERBOSE
[21:29:43][C][logger:295]: Log Baud Rate: 115200
[21:29:43][C][logger:296]: Hardware UART: UART0
[21:29:43][C][logger:298]: Level for 'scheduler': DEBUG
[21:29:43][C][logger:298]: Level for 'component': DEBUG
[21:29:43][C][logger:298]: Level for 'esp32_ble_tracker': DEBUG
[21:29:43][C][logger:298]: Level for 'sensor': DEBUG
[21:29:43][C][jbd_bms_ble:337]: JbdBmsBle:
[21:29:43][C][jbd_bms_ble:338]: Fake traffic enabled: NO
[21:29:43][C][jbd_bms_ble:340]: Total voltage 'jbd-bms total voltage'
[21:29:43][C][jbd_bms_ble:340]: Device Class: 'voltage'
[21:29:43][C][jbd_bms_ble:340]: State Class: 'measurement'
[21:29:43][C][jbd_bms_ble:340]: Unit of Measurement: 'V'
[21:29:43][C][jbd_bms_ble:340]: Accuracy Decimals: 2
[21:29:43][C][jbd_bms_ble:341]: Battery strings 'jbd-bms battery strings'
[21:29:43][C][jbd_bms_ble:341]: State Class: 'measurement'
[21:29:43][C][jbd_bms_ble:341]: Unit of Measurement: ''
[21:29:43][C][jbd_bms_ble:341]: Accuracy Decimals: 0
[21:29:43][C][jbd_bms_ble:341]: Icon: 'mdi:car-battery'
[21:29:43][C][jbd_bms_ble:342]: Software version 'jbd-bms software version'
[21:29:43][C][jbd_bms_ble:342]: State Class: 'measurement'
[21:29:43][C][jbd_bms_ble:342]: Unit of Measurement: ''
[21:29:43][C][jbd_bms_ble:342]: Accuracy Decimals: 1
[21:29:43][C][jbd_bms_ble:343]: Current 'jbd-bms current'
[21:29:43][C][jbd_bms_ble:343]: Device Class: 'current'
[21:29:43][C][jbd_bms_ble:343]: State Class: 'measurement'
[21:29:43][C][jbd_bms_ble:343]: Unit of Measurement: 'A'
[21:29:43][C][jbd_bms_ble:343]: Accuracy Decimals: 1
[21:29:43][C][jbd_bms_ble:343]: Icon: 'mdi:current-dc'
[21:29:43][C][jbd_bms_ble:344]: Power 'jbd-bms power'
[21:29:43][C][jbd_bms_ble:344]: Device Class: 'power'
[21:29:43][C][jbd_bms_ble:344]: State Class: 'measurement'
[21:29:43][C][jbd_bms_ble:344]: Unit of Measurement: 'W'
[21:29:43][C][jbd_bms_ble:344]: Accuracy Decimals: 1
[21:29:43][C][jbd_bms_ble:345]: Charging Power 'jbd-bms charging power'
[21:29:43][C][jbd_bms_ble:345]: Device Class: 'power'
[21:29:43][C][jbd_bms_ble:345]: State Class: 'measurement'
[21:29:43][C][jbd_bms_ble:345]: Unit of Measurement: 'W'
[21:29:43][C][jbd_bms_ble:345]: Accuracy Decimals: 2
[21:29:43][C][jbd_bms_ble:346]: Discharging Power 'jbd-bms discharging power'
[21:29:43][C][jbd_bms_ble:346]: Device Class: 'power'
[21:29:43][C][jbd_bms_ble:346]: State Class: 'measurement'
[21:29:43][C][jbd_bms_ble:346]: Unit of Measurement: 'W'
[21:29:43][C][jbd_bms_ble:346]: Accuracy Decimals: 2
[21:29:43][C][jbd_bms_ble:347]: State of charge 'jbd-bms state of charge'
[21:29:43][C][jbd_bms_ble:347]: State Class: 'measurement'
[21:29:43][C][jbd_bms_ble:347]: Unit of Measurement: '%'
[21:29:43][C][jbd_bms_ble:347]: Accuracy Decimals: 0
[21:29:43][C][jbd_bms_ble:347]: Icon: 'mdi:battery-50'
[21:29:43][C][jbd_bms_ble:348]: Nominal capacity 'jbd-bms nominal capacity'
[21:29:43][C][jbd_bms_ble:348]: State Class: 'measurement'
[21:29:43][C][jbd_bms_ble:348]: Unit of Measurement: 'Ah'
[21:29:43][C][jbd_bms_ble:348]: Accuracy Decimals: 2
[21:29:43][C][jbd_bms_ble:348]: Icon: 'mdi:battery-50'
[21:29:43][C][jbd_bms_ble:349]: Charging cycles 'jbd-bms charging cycles'
[21:29:43][C][jbd_bms_ble:349]: State Class: 'measurement'
[21:29:43][C][jbd_bms_ble:349]: Unit of Measurement: ''
[21:29:43][C][jbd_bms_ble:349]: Accuracy Decimals: 0
[21:29:43][C][jbd_bms_ble:349]: Icon: 'mdi:battery-sync'
[21:29:43][C][jbd_bms_ble:350]: Capacity remaining 'jbd-bms capacity remaining'
[21:29:43][C][jbd_bms_ble:350]: State Class: 'measurement'
[21:29:44][C][jbd_bms_ble:350]: Unit of Measurement: 'Ah'
[21:29:44][C][jbd_bms_ble:350]: Accuracy Decimals: 2
[21:29:44][C][jbd_bms_ble:350]: Icon: 'mdi:battery-50'
[21:29:44][C][jbd_bms_ble:351]: Average cell voltage sensor 'jbd-bms average cell voltage'
[21:29:44][C][jbd_bms_ble:351]: Device Class: 'voltage'
[21:29:44][C][jbd_bms_ble:351]: State Class: 'measurement'
[21:29:44][C][jbd_bms_ble:351]: Unit of Measurement: 'V'
[21:29:44][C][jbd_bms_ble:351]: Accuracy Decimals: 4
[21:29:44][C][jbd_bms_ble:352]: Maximum cell voltage 'jbd-bms max cell voltage'
[21:29:44][C][jbd_bms_ble:352]: Device Class: 'voltage'
[21:29:44][C][jbd_bms_ble:352]: State Class: 'measurement'
[21:29:44][C][jbd_bms_ble:352]: Unit of Measurement: 'V'
[21:29:44][C][jbd_bms_ble:352]: Accuracy Decimals: 3
[21:29:44][C][jbd_bms_ble:352]: Icon: 'mdi:battery-plus-outline'
[21:29:44][C][jbd_bms_ble:353]: Min voltage cell 'jbd-bms min voltage cell'
[21:29:44][C][jbd_bms_ble:353]: State Class: 'measurement'
[21:29:44][C][jbd_bms_ble:353]: Unit of Measurement: ''
[21:29:44][C][jbd_bms_ble:353]: Accuracy Decimals: 0
[21:29:44][C][jbd_bms_ble:353]: Icon: 'mdi:battery-minus-outline'
[21:29:44][C][jbd_bms_ble:354]: Max voltage cell 'jbd-bms max voltage cell'
[21:29:44][C][jbd_bms_ble:354]: State Class: 'measurement'
[21:29:44][C][jbd_bms_ble:354]: Unit of Measurement: ''
[21:29:44][C][jbd_bms_ble:354]: Accuracy Decimals: 0
[21:29:44][C][jbd_bms_ble:354]: Icon: 'mdi:battery-plus-outline'
[21:29:44][C][jbd_bms_ble:355]: Minimum cell voltage 'jbd-bms min cell voltage'
[21:29:44][C][jbd_bms_ble:355]: Device Class: 'voltage'
[21:29:44][C][jbd_bms_ble:355]: State Class: 'measurement'
[21:29:44][C][jbd_bms_ble:355]: Unit of Measurement: 'V'
[21:29:44][C][jbd_bms_ble:355]: Accuracy Decimals: 3
[21:29:44][C][jbd_bms_ble:355]: Icon: 'mdi:battery-minus-outline'
[21:29:44][C][jbd_bms_ble:356]: Temperature 1 'jbd-bms temperature 1'
[21:29:44][C][jbd_bms_ble:356]: Device Class: 'temperature'
[21:29:44][C][jbd_bms_ble:356]: State Class: 'measurement'
[21:29:44][C][jbd_bms_ble:356]: Unit of Measurement: '°C'
[21:29:44][C][jbd_bms_ble:356]: Accuracy Decimals: 1
[21:29:44][C][jbd_bms_ble:357]: Temperature 2 'jbd-bms temperature 2'
[21:29:44][C][jbd_bms_ble:357]: Device Class: 'temperature'
[21:29:44][C][jbd_bms_ble:357]: State Class: 'measurement'
[21:29:44][C][jbd_bms_ble:357]: Unit of Measurement: '°C'
[21:29:44][C][jbd_bms_ble:357]: Accuracy Decimals: 1
[21:29:44][C][jbd_bms_ble:358]: Temperature 3 'jbd-bms temperature 3'
[21:29:44][C][jbd_bms_ble:358]: Device Class: 'temperature'
[21:29:44][C][jbd_bms_ble:358]: State Class: 'measurement'
[21:29:44][C][jbd_bms_ble:358]: Unit of Measurement: '°C'
[21:29:44][C][jbd_bms_ble:358]: Accuracy Decimals: 1
[21:29:44][C][jbd_bms_ble:359]: Temperature 4 'jbd-bms temperature 4'
[21:29:44][C][jbd_bms_ble:359]: Device Class: 'temperature'
[21:29:44][C][jbd_bms_ble:359]: State Class: 'measurement'
[21:29:44][C][jbd_bms_ble:359]: Unit of Measurement: '°C'
[21:29:44][C][jbd_bms_ble:359]: Accuracy Decimals: 1
[21:29:44][C][jbd_bms_ble:360]: Temperature 5 'jbd-bms temperature 5'
[21:29:44][C][jbd_bms_ble:360]: Device Class: 'temperature'
[21:29:44][C][jbd_bms_ble:360]: State Class: 'measurement'
[21:29:44][C][jbd_bms_ble:360]: Unit of Measurement: '°C'
[21:29:44][C][jbd_bms_ble:360]: Accuracy Decimals: 1
[21:29:44][C][jbd_bms_ble:361]: Temperature 6 'jbd-bms temperature 6'
[21:29:44][C][jbd_bms_ble:361]: Device Class: 'temperature'
[21:29:44][C][jbd_bms_ble:361]: State Class: 'measurement'
[21:29:44][C][jbd_bms_ble:361]: Unit of Measurement: '°C'
[21:29:44][C][jbd_bms_ble:361]: Accuracy Decimals: 1
[21:29:44][C][jbd_bms_ble:362]: Cell Voltage 1 'jbd-bms cell voltage 1'
[21:29:44][C][jbd_bms_ble:362]: Device Class: 'voltage'
[21:29:44][C][jbd_bms_ble:362]: State Class: 'measurement'
[21:29:44][C][jbd_bms_ble:362]: Unit of Measurement: 'V'
[21:29:44][C][jbd_bms_ble:362]: Accuracy Decimals: 3
[21:29:44][C][jbd_bms_ble:363]: Cell Voltage 2 'jbd-bms cell voltage 2'
[21:29:44][C][jbd_bms_ble:363]: Device Class: 'voltage'
[21:29:44][C][jbd_bms_ble:363]: State Class: 'measurement'
[21:29:44][C][jbd_bms_ble:363]: Unit of Measurement: 'V'
[21:29:44][C][jbd_bms_ble:363]: Accuracy Decimals: 3
[21:29:44][C][jbd_bms_ble:364]: Cell Voltage 3 'jbd-bms cell voltage 3'
[21:29:44][C][jbd_bms_ble:364]: Device Class: 'voltage'
[21:29:44][C][jbd_bms_ble:364]: State Class: 'measurement'
[21:29:44][C][jbd_bms_ble:364]: Unit of Measurement: 'V'
[21:29:44][C][jbd_bms_ble:364]: Accuracy Decimals: 3
[21:29:44][C][jbd_bms_ble:365]: Cell Voltage 4 'jbd-bms cell voltage 4'
[21:29:44][C][jbd_bms_ble:365]: Device Class: 'voltage'
[21:29:44][C][jbd_bms_ble:365]: State Class: 'measurement'
[21:29:44][C][jbd_bms_ble:365]: Unit of Measurement: 'V'
[21:29:44][C][jbd_bms_ble:365]: Accuracy Decimals: 3
[21:29:44][C][jbd_bms_ble:366]: Cell Voltage 5 'jbd-bms cell voltage 5'
[21:29:44][C][jbd_bms_ble:366]: Device Class: 'voltage'
[21:29:44][C][jbd_bms_ble:366]: State Class: 'measurement'
[21:29:44][C][jbd_bms_ble:366]: Unit of Measurement: 'V'
[21:29:44][C][jbd_bms_ble:366]: Accuracy Decimals: 3
[21:29:44][C][jbd_bms_ble:367]: Cell Voltage 6 'jbd-bms cell voltage 6'
[21:29:44][C][jbd_bms_ble:367]: Device Class: 'voltage'
[21:29:44][C][jbd_bms_ble:367]: State Class: 'measurement'
[21:29:44][C][jbd_bms_ble:367]: Unit of Measurement: 'V'
[21:29:44][C][jbd_bms_ble:367]: Accuracy Decimals: 3
[21:29:44][C][jbd_bms_ble:368]: Cell Voltage 7 'jbd-bms cell voltage 7'
[21:29:44][C][jbd_bms_ble:368]: Device Class: 'voltage'
[21:29:44][C][jbd_bms_ble:368]: State Class: 'measurement'
[21:29:44][C][jbd_bms_ble:368]: Unit of Measurement: 'V'
[21:29:44][C][jbd_bms_ble:368]: Accuracy Decimals: 3
[21:29:44][C][jbd_bms_ble:369]: Cell Voltage 8 'jbd-bms cell voltage 8'
[21:29:44][C][jbd_bms_ble:369]: Device Class: 'voltage'
[21:29:44][C][jbd_bms_ble:369]: State Class: 'measurement'
[21:29:44][C][jbd_bms_ble:369]: Unit of Measurement: 'V'
[21:29:44][C][jbd_bms_ble:369]: Accuracy Decimals: 3
[21:29:44][C][jbd_bms_ble:370]: Cell Voltage 9 'jbd-bms cell voltage 9'
[21:29:44][C][jbd_bms_ble:370]: Device Class: 'voltage'
[21:29:44][C][jbd_bms_ble:370]: State Class: 'measurement'
[21:29:44][C][jbd_bms_ble:370]: Unit of Measurement: 'V'
[21:29:44][C][jbd_bms_ble:370]: Accuracy Decimals: 3
[21:29:44][C][jbd_bms_ble:371]: Cell Voltage 10 'jbd-bms cell voltage 10'
[21:29:44][C][jbd_bms_ble:371]: Device Class: 'voltage'
[21:29:44][C][jbd_bms_ble:371]: State Class: 'measurement'
[21:29:44][C][jbd_bms_ble:371]: Unit of Measurement: 'V'
[21:29:44][C][jbd_bms_ble:371]: Accuracy Decimals: 3
[21:29:44][C][jbd_bms_ble:372]: Cell Voltage 11 'jbd-bms cell voltage 11'
[21:29:44][C][jbd_bms_ble:372]: Device Class: 'voltage'
[21:29:44][C][jbd_bms_ble:372]: State Class: 'measurement'
[21:29:44][C][jbd_bms_ble:372]: Unit of Measurement: 'V'
[21:29:44][C][jbd_bms_ble:372]: Accuracy Decimals: 3
[21:29:44][C][jbd_bms_ble:373]: Cell Voltage 12 'jbd-bms cell voltage 12'
[21:29:44][C][jbd_bms_ble:373]: Device Class: 'voltage'
[21:29:44][C][jbd_bms_ble:373]: State Class: 'measurement'
[21:29:44][C][jbd_bms_ble:373]: Unit of Measurement: 'V'
[21:29:44][C][jbd_bms_ble:373]: Accuracy Decimals: 3
[21:29:44][C][jbd_bms_ble:374]: Cell Voltage 13 'jbd-bms cell voltage 13'
[21:29:44][C][jbd_bms_ble:374]: Device Class: 'voltage'
[21:29:44][C][jbd_bms_ble:374]: State Class: 'measurement'
[21:29:44][C][jbd_bms_ble:374]: Unit of Measurement: 'V'
[21:29:44][C][jbd_bms_ble:374]: Accuracy Decimals: 3
[21:29:44][C][jbd_bms_ble:375]: Cell Voltage 14 'jbd-bms cell voltage 14'
[21:29:44][C][jbd_bms_ble:375]: Device Class: 'voltage'
[21:29:44][C][jbd_bms_ble:375]: State Class: 'measurement'
[21:29:44][C][jbd_bms_ble:375]: Unit of Measurement: 'V'
[21:29:44][C][jbd_bms_ble:375]: Accuracy Decimals: 3
[21:29:44][C][jbd_bms_ble:376]: Cell Voltage 15 'jbd-bms cell voltage 15'
[21:29:44][C][jbd_bms_ble:376]: Device Class: 'voltage'
[21:29:44][C][jbd_bms_ble:376]: State Class: 'measurement'
[21:29:44][C][jbd_bms_ble:376]: Unit of Measurement: 'V'
[21:29:44][C][jbd_bms_ble:376]: Accuracy Decimals: 3
[21:29:44][C][jbd_bms_ble:377]: Cell Voltage 16 'jbd-bms cell voltage 16'
[21:29:44][C][jbd_bms_ble:377]: Device Class: 'voltage'
[21:29:44][C][jbd_bms_ble:377]: State Class: 'measurement'
[21:29:44][C][jbd_bms_ble:377]: Unit of Measurement: 'V'
[21:29:44][C][jbd_bms_ble:377]: Accuracy Decimals: 3
[21:29:44][C][jbd_bms_ble:378]: Cell Voltage 17 'jbd-bms cell voltage 17'
[21:29:44][C][jbd_bms_ble:378]: Device Class: 'voltage'
[21:29:44][C][jbd_bms_ble:378]: State Class: 'measurement'
[21:29:44][C][jbd_bms_ble:378]: Unit of Measurement: 'V'
[21:29:44][C][jbd_bms_ble:378]: Accuracy Decimals: 3
[21:29:44][C][jbd_bms_ble:379]: Cell Voltage 18 'jbd-bms cell voltage 18'
[21:29:44][C][jbd_bms_ble:379]: Device Class: 'voltage'
[21:29:44][C][jbd_bms_ble:379]: State Class: 'measurement'
[21:29:44][C][jbd_bms_ble:379]: Unit of Measurement: 'V'
[21:29:44][C][jbd_bms_ble:379]: Accuracy Decimals: 3
[21:29:44][C][jbd_bms_ble:380]: Cell Voltage 19 'jbd-bms cell voltage 19'
[21:29:44][C][jbd_bms_ble:380]: Device Class: 'voltage'
[21:29:44][C][jbd_bms_ble:380]: State Class: 'measurement'
[21:29:44][C][jbd_bms_ble:380]: Unit of Measurement: 'V'
[21:29:44][C][jbd_bms_ble:380]: Accuracy Decimals: 3
[21:29:44][C][jbd_bms_ble:381]: Cell Voltage 20 'jbd-bms cell voltage 20'
[21:29:44][C][jbd_bms_ble:381]: Device Class: 'voltage'
[21:29:44][C][jbd_bms_ble:381]: State Class: 'measurement'
[21:29:44][C][jbd_bms_ble:381]: Unit of Measurement: 'V'
[21:29:44][C][jbd_bms_ble:381]: Accuracy Decimals: 3
[21:29:44][C][jbd_bms_ble:382]: Cell Voltage 21 'jbd-bms cell voltage 21'
[21:29:44][C][jbd_bms_ble:382]: Device Class: 'voltage'
[21:29:44][C][jbd_bms_ble:382]: State Class: 'measurement'
[21:29:44][C][jbd_bms_ble:382]: Unit of Measurement: 'V'
[21:29:44][C][jbd_bms_ble:382]: Accuracy Decimals: 3
[21:29:44][C][jbd_bms_ble:383]: Cell Voltage 22 'jbd-bms cell voltage 22'
[21:29:44][C][jbd_bms_ble:383]: Device Class: 'voltage'
[21:29:44][C][jbd_bms_ble:383]: State Class: 'measurement'
[21:29:44][C][jbd_bms_ble:383]: Unit of Measurement: 'V'
[21:29:44][C][jbd_bms_ble:383]: Accuracy Decimals: 3
[21:29:44][C][jbd_bms_ble:384]: Cell Voltage 23 'jbd-bms cell voltage 23'
[21:29:44][C][jbd_bms_ble:384]: Device Class: 'voltage'
[21:29:44][C][jbd_bms_ble:384]: State Class: 'measurement'
[21:29:44][C][jbd_bms_ble:384]: Unit of Measurement: 'V'
[21:29:44][C][jbd_bms_ble:384]: Accuracy Decimals: 3
[21:29:44][C][jbd_bms_ble:385]: Cell Voltage 24 'jbd-bms cell voltage 24'
[21:29:44][C][jbd_bms_ble:385]: Device Class: 'voltage'
[21:29:44][C][jbd_bms_ble:385]: State Class: 'measurement'
[21:29:45][C][jbd_bms_ble:385]: Unit of Measurement: 'V'
[21:29:45][C][jbd_bms_ble:385]: Accuracy Decimals: 3
[21:29:45][C][jbd_bms_ble:386]: Cell Voltage 25 'jbd-bms cell voltage 25'
[21:29:45][C][jbd_bms_ble:386]: Device Class: 'voltage'
[21:29:45][C][jbd_bms_ble:386]: State Class: 'measurement'
[21:29:45][C][jbd_bms_ble:386]: Unit of Measurement: 'V'
[21:29:45][C][jbd_bms_ble:386]: Accuracy Decimals: 3
[21:29:45][C][jbd_bms_ble:387]: Cell Voltage 26 'jbd-bms cell voltage 26'
[21:29:45][C][jbd_bms_ble:387]: Device Class: 'voltage'
[21:29:45][C][jbd_bms_ble:387]: State Class: 'measurement'
[21:29:45][C][jbd_bms_ble:387]: Unit of Measurement: 'V'
[21:29:45][C][jbd_bms_ble:387]: Accuracy Decimals: 3
[21:29:45][C][jbd_bms_ble:388]: Cell Voltage 27 'jbd-bms cell voltage 27'
[21:29:45][C][jbd_bms_ble:388]: Device Class: 'voltage'
[21:29:45][C][jbd_bms_ble:388]: State Class: 'measurement'
[21:29:45][C][jbd_bms_ble:388]: Unit of Measurement: 'V'
[21:29:45][C][jbd_bms_ble:388]: Accuracy Decimals: 3
[21:29:45][C][jbd_bms_ble:389]: Cell Voltage 28 'jbd-bms cell voltage 28'
[21:29:45][C][jbd_bms_ble:389]: Device Class: 'voltage'
[21:29:45][C][jbd_bms_ble:389]: State Class: 'measurement'
[21:29:45][C][jbd_bms_ble:389]: Unit of Measurement: 'V'
[21:29:45][C][jbd_bms_ble:389]: Accuracy Decimals: 3
[21:29:45][C][jbd_bms_ble:390]: Cell Voltage 29 'jbd-bms cell voltage 29'
[21:29:45][C][jbd_bms_ble:390]: Device Class: 'voltage'
[21:29:45][C][jbd_bms_ble:390]: State Class: 'measurement'
[21:29:45][C][jbd_bms_ble:390]: Unit of Measurement: 'V'
[21:29:45][C][jbd_bms_ble:390]: Accuracy Decimals: 3
[21:29:45][C][jbd_bms_ble:391]: Cell Voltage 30 'jbd-bms cell voltage 30'
[21:29:45][C][jbd_bms_ble:391]: Device Class: 'voltage'
[21:29:45][C][jbd_bms_ble:391]: State Class: 'measurement'
[21:29:45][C][jbd_bms_ble:391]: Unit of Measurement: 'V'
[21:29:45][C][jbd_bms_ble:391]: Accuracy Decimals: 3
[21:29:45][C][jbd_bms_ble:392]: Cell Voltage 31 'jbd-bms cell voltage 31'
[21:29:45][C][jbd_bms_ble:392]: Device Class: 'voltage'
[21:29:45][C][jbd_bms_ble:392]: State Class: 'measurement'
[21:29:45][C][jbd_bms_ble:392]: Unit of Measurement: 'V'
[21:29:45][C][jbd_bms_ble:392]: Accuracy Decimals: 3
[21:29:45][C][jbd_bms_ble:393]: Cell Voltage 32 'jbd-bms cell voltage 32'
[21:29:45][C][jbd_bms_ble:393]: Device Class: 'voltage'
[21:29:45][C][jbd_bms_ble:393]: State Class: 'measurement'
[21:29:45][C][jbd_bms_ble:393]: Unit of Measurement: 'V'
[21:29:45][C][jbd_bms_ble:393]: Accuracy Decimals: 3
[21:29:45][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected
[21:29:45][C][ble_switch:076]: BLE Client Switch 'jbd-bms enable bluetooth connection'
[21:29:45][C][ble_switch:078]: Icon: 'mdi:bluetooth'
[21:29:45][C][ble_switch:099]: Restore Mode: restore defaults to OFF
[21:29:45][C][jbd_bms_ble.switch:076]: JbdBmsBle Switch 'jbd-bms discharging'
[21:29:45][C][jbd_bms_ble.switch:078]: Icon: 'mdi:battery-charging-50'
[21:29:45][C][jbd_bms_ble.switch:099]: Restore Mode: restore defaults to OFF
[21:29:45][C][jbd_bms_ble.switch:076]: JbdBmsBle Switch 'jbd-bms charging'
[21:29:45][C][jbd_bms_ble.switch:078]: Icon: 'mdi:battery-charging-50'
[21:29:45][C][jbd_bms_ble.switch:099]: Restore Mode: restore defaults to OFF
[21:29:45][C][jbd_bms_ble.switch:076]: JbdBmsBle Switch 'jbd-bms balancer'
[21:29:45][C][jbd_bms_ble.switch:078]: Icon: 'mdi:seesaw'
[21:29:45][C][jbd_bms_ble.switch:099]: Restore Mode: restore defaults to OFF
[21:29:45][C][esp32_ble_tracker:870]: BLE Tracker:
[21:29:45][C][esp32_ble_tracker:871]: Scan Duration: 300 s
[21:29:45][C][esp32_ble_tracker:872]: Scan Interval: 320.0 ms
[21:29:45][C][esp32_ble_tracker:873]: Scan Window: 30.0 ms
[21:29:45][C][esp32_ble_tracker:874]: Scan Type: ACTIVE
[21:29:45][C][esp32_ble_tracker:875]: Continuous Scanning: True
[21:29:45][C][ble_client:027]: BLE Client:
[21:29:45][C][ble_client:028]: Address: A4:C1:37:41:59:DA
[21:29:45][C][captive_portal:088]: Captive Portal:
[21:29:45][C][mdns:103]: mDNS:
[21:29:45][C][mdns:104]: Hostname: jbd-bms
[21:29:45][V][mdns:105]: Services:
[21:29:45][V][mdns:107]: - _esphomelib, _tcp, 6053
[21:29:45][V][mdns:109]: TXT: version = 2022.12.8
[21:29:45][V][mdns:109]: TXT: mac = 782184bb437c
[21:29:45][V][mdns:109]: TXT: platform = ESP32
[21:29:45][V][mdns:109]: TXT: board = esp32dev
[21:29:45][V][mdns:109]: TXT: network = wifi
[21:29:45][C][ota:093]: Over-The-Air Updates:
[21:29:45][C][ota:094]: Address: jbd-bms.local:3232
[21:29:45][C][api:138]: API Server:
[21:29:45][C][api:139]: Address: jbd-bms.local:6053
[21:29:45][C][api:143]: Using noise encryption: NO
[21:29:46][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected
[21:29:48][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected
[21:29:50][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected
[21:29:52][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected
[21:29:54][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected
[21:29:56][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected
[21:29:58][VV][api.service:470]: on_ping_request: PingRequest {}
[21:29:58][VV][api.service:043]: send_ping_response: PingResponse {}
[21:29:58][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected
[21:30:00][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected
[21:30:02][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected
[21:30:04][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected
[21:30:06][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected
[21:30:08][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected
[21:30:10][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected
[21:30:12][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected
[21:30:13][VV][api.service:470]: on_ping_request: PingRequest {}
[21:30:13][VV][api.service:043]: send_ping_response: PingResponse {}
[21:30:14][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected
[21:30:16][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected
[21:30:18][W][jbd_bms_ble:172]: [A4:C1:37:41:59:DA] Not connected
Hmm.. we should capture some BLE traffic to get an idea what's different to my implementation. One last idea: May be the ESP is too close or to far away from your BMS. Play around with the distance.
@syssi Hello. I found the problem. There is some problem with jbd ble dongle, after some time it refuses to accept new connections, it was described in batmon-ha
When I turned off Bluetooth on my phone and turned off/on jbd dongle, after that esp32 was connected to jbd.
Is it correct that switches don't work ?
Yes! The switches aren't implemented yet but they are coming soon!