Closed markusgg84 closed 2 years ago
It looks like multiple BLE client connection are broken ESPHome 2022.9.3. See https://github.com/syssi/esphome-jk-bms/issues/189
Could you try this workaround: https://github.com/syssi/esphome-jk-bms/issues/189#issuecomment-1274756531
And please try to use the ESP-IDF framework instead of Arduino:
framework:
type: esp-idf
version: latest
To better isolate the error you could start with a single BLE connection / BMS.
Didn't help, here is the log output:
`
[14:36:23][W][jk_bms_ble:291]: [c8:47:8c:e5:04:89] Not connected
[14:36:23][W][jk_bms_ble:291]: [c8:47:8c:e5:1c:74] Not connected
[14:36:23][D][esp-idf:000]: I (5850) wifi:
[14:36:23][D][esp-idf:000]: state: init -> auth (b0)
[14:36:23][D][esp-idf:000]:
[14:36:23]
[14:36:23][D][esp-idf:000]: I (5861) wifi:
[14:36:23][D][esp-idf:000]: state: auth -> assoc (0)
[14:36:23][D][esp-idf:000]:
[14:36:23]
[14:36:23][D][esp-idf:000]: I (5875) wifi:
[14:36:23][D][esp-idf:000]: state: assoc -> run (10)
[14:36:23][D][esp-idf:000]:
[14:36:23]
[14:36:23][D][esp-idf:000]: I (5905) wifi:
[14:36:23][D][esp-idf:000]: connected with MGG, aid = 2, channel 11, BW20, bssid = 44:4e:6d:6c:f7:70
[14:36:23][D][esp-idf:000]:
[14:36:23]
[14:36:23][D][esp-idf:000]: I (5906) wifi:
[14:36:23][D][esp-idf:000]: security: WPA2-PSK, phy: bgn, rssi: -28
[14:36:23][D][esp-idf:000]:
[14:36:23]
[14:36:23][D][esp-idf:000]: I (5909) wifi:
[14:36:23][D][esp-idf:000]: pm start, type: 1
[14:36:23]
[14:36:23][D][esp-idf:000]:
[14:36:23]
[14:36:23][D][esp-idf:000]: I (5924) wifi:
[14:36:23][D][esp-idf:000]: AP's beacon interval = 102400 us, DTIM period = 1
[14:36:23][D][esp-idf:000]:
[14:36:23]
[14:36:23][D][esp-idf:000]: W (5942) wifi:
[14:36:23][D][esp-idf:000]:
[14:36:24][C][wifi:355]: IP Address: 192.168.188.163 [14:36:24][C][wifi:357]: BSSID: 44:4E:6D:6C:F7:70
[14:36:24][C][wifi:360]: Signal strength: -28 dB ▂▄▆█
[14:36:24][C][wifi:364]: Channel: 11
[14:36:24][C][wifi:365]: Subnet: 255.255.255.0
[14:36:24][C][wifi:366]: Gateway: 192.168.188.1
[14:36:24][C][wifi:367]: DNS1: 192.168.188.1
[14:36:24][C][wifi:368]: DNS2: 0.0.0.0
[14:36:24][C][ota:085]: Over-The-Air Updates:
[14:36:24][C][ota:086]: Address: jk-bms.local:3232
[14:36:24][W][ota:095]: Last Boot was an unhandled reset, will proceed to safe mode in 8 restarts
[14:36:24][C][api:025]: Setting up Home Assistant API server...
[14:36:24][C][mqtt:029]: Setting up MQTT...
[14:36:24][I][mqtt:176]: Connecting to MQTT...
[14:36:24][D][esp-idf:000]: W (6689) wifi:
[14:36:24][D][esp-idf:000]:
I've got the same issue with only one device.
It looks like you hit a resource limit. Please remove most of the sensors (just for testing). If it's working you can decrease the log level to free some resources and try to increase the number of sensors step by step.
That work, thank you!
It looks like the BLE client component is broken at 2022.10.1 Please be careful!
I'm trying to connect to 2 JKBMS but i've connection issues. I've double checked the wifi and ble mac adresses. I've started from the esp32-ble-example-multiple-devices.yaml
Log Output:
First part of the config file: