INFO ESPHome 2024.7.0 INFO Reading configuration /config/testboard2.yaml... INFO Updating https://github.com/syssi/esphome-jbd-bms.git@liontron-support INFO Starting log output from 192.168.176.54 using esphome API INFO Successfully connected to bms @ 192.168.176.54 in 0.069s INFO Successful handshake with bms @ 192.168.176.54 in 0.121s [21:56:59][I][app:100]: ESPHome version 2024.7.0 compiled on Jul 26 2024, 21:47:34 [21:56:59][C][logger:185]: Logger: [21:56:59][C][logger:186]: Level: VERY_VERBOSE [21:56:59][C][logger:188]: Log Baud Rate: 115200 [21:56:59][C][logger:189]: Hardware UART: UART0 [21:56:59][C][logger:193]: Level for 'jbd_bms_ble': VERY_VERBOSE [21:56:59][C][logger:193]: Level for 'ble_client': VERBOSE [21:56:59][C][logger:193]: Level for 'esp32_ble': DEBUG [21:56:59][C][logger:193]: Level for 'esp32_ble_client': VERY_VERBOSE [21:56:59][C][logger:193]: Level for 'esp32_ble_tracker': VERBOSE [21:56:59][C][logger:193]: Level for 'esp32.preferences': WARN [21:56:59][C][logger:193]: Level for 'scheduler': DEBUG [21:56:59][C][logger:193]: Level for 'component': DEBUG [21:56:59][C][logger:193]: Level for 'sensor': DEBUG [21:56:59][C][logger:193]: Level for 'api': WARN [21:56:59][C][logger:193]: Level for 'api.service': WARN [21:56:59][C][logger:193]: Level for 'json': WARN [21:56:59][C][logger:193]: Level for 'web_server_idf': WARN [21:56:59][C][logger:193]: Level for 'mdns': WARN [21:56:59][C][logger:193]: Level for 'wifi': WARN [21:56:59][C][logger:193]: Level for 'api.socket': WARN [21:56:59][C][logger:193]: Level for 'esp-idf': VERY_VERBOSE [21:56:59][C][logger:193]: Level for 'api.connection': WARN [21:57:00][C][jbd_bms_ble:395]: JbdBmsBle: [21:57:00][C][jbd_bms_ble:396]: Fake traffic enabled: NO [21:57:00][C][jbd_bms_ble:398]: Balancing 'bms balancing' [21:57:00][C][jbd_bms_ble:399]: Charging 'bms charging' [21:57:00][C][jbd_bms_ble:400]: Discharging 'bms discharging' [21:57:00][C][jbd_bms_ble:402]: Total voltage 'bms total voltage' [21:57:00][C][jbd_bms_ble:402]: Device Class: 'voltage' [21:57:00][C][jbd_bms_ble:402]: State Class: 'measurement' [21:57:00][C][jbd_bms_ble:402]: Unit of Measurement: 'V' [21:57:00][C][jbd_bms_ble:402]: Accuracy Decimals: 2 [21:57:00][C][jbd_bms_ble:403]: Battery strings 'bms battery strings' [21:57:00][C][jbd_bms_ble:403]: State Class: 'measurement' [21:57:00][C][jbd_bms_ble:403]: Unit of Measurement: '' [21:57:00][C][jbd_bms_ble:403]: Accuracy Decimals: 0 [21:57:00][C][jbd_bms_ble:403]: Icon: 'mdi:car-battery' [21:57:00][C][jbd_bms_ble:404]: Software version 'bms software version' [21:57:00][C][jbd_bms_ble:404]: State Class: 'measurement' [21:57:00][C][jbd_bms_ble:404]: Unit of Measurement: '' [21:57:00][C][jbd_bms_ble:404]: Accuracy Decimals: 1 [21:57:00][C][jbd_bms_ble:404]: Icon: 'mdi:numeric' [21:57:00][C][jbd_bms_ble:405]: Current 'bms current' [21:57:00][C][jbd_bms_ble:405]: Device Class: 'current' [21:57:00][C][jbd_bms_ble:405]: State Class: 'measurement' [21:57:00][C][jbd_bms_ble:405]: Unit of Measurement: 'A' [21:57:00][C][jbd_bms_ble:405]: Accuracy Decimals: 1 [21:57:00][C][jbd_bms_ble:405]: Icon: 'mdi:current-dc' [21:57:00][C][jbd_bms_ble:406]: Power 'bms power' [21:57:00][C][jbd_bms_ble:406]: Device Class: 'power' [21:57:00][C][jbd_bms_ble:406]: State Class: 'measurement' [21:57:00][C][jbd_bms_ble:406]: Unit of Measurement: 'W' [21:57:00][C][jbd_bms_ble:406]: Accuracy Decimals: 1 [21:57:00][C][jbd_bms_ble:407]: Charging Power 'bms charging power' [21:57:00][C][jbd_bms_ble:407]: Device Class: 'power' [21:57:00][C][jbd_bms_ble:407]: State Class: 'measurement' [21:57:00][C][jbd_bms_ble:407]: Unit of Measurement: 'W' [21:57:00][C][jbd_bms_ble:407]: Accuracy Decimals: 2 [21:57:00][C][jbd_bms_ble:408]: Discharging Power 'bms discharging power' [21:57:00][C][jbd_bms_ble:408]: Device Class: 'power' [21:57:00][C][jbd_bms_ble:408]: State Class: 'measurement' [21:57:00][C][jbd_bms_ble:408]: Unit of Measurement: 'W' [21:57:00][C][jbd_bms_ble:408]: Accuracy Decimals: 2 [21:57:00][C][jbd_bms_ble:409]: State of charge 'bms state of charge' [21:57:00][C][jbd_bms_ble:409]: Device Class: 'battery' [21:57:00][C][jbd_bms_ble:409]: State Class: 'measurement' [21:57:00][C][jbd_bms_ble:409]: Unit of Measurement: '%' [21:57:00][C][jbd_bms_ble:409]: Accuracy Decimals: 0 [21:57:00][C][jbd_bms_ble:410]: Operation status bitmask 'bms operation status bitmask' [21:57:00][C][jbd_bms_ble:410]: State Class: 'measurement' [21:57:00][C][jbd_bms_ble:410]: Unit of Measurement: '' [21:57:00][C][jbd_bms_ble:410]: Accuracy Decimals: 0 [21:57:00][C][jbd_bms_ble:410]: Icon: 'mdi:heart-pulse' [21:57:00][C][jbd_bms_ble:411]: Errors bitmask 'bms errors bitmask' [21:57:00][C][jbd_bms_ble:411]: State Class: 'measurement' [21:57:00][C][jbd_bms_ble:411]: Unit of Measurement: '' [21:57:00][C][jbd_bms_ble:411]: Accuracy Decimals: 0 [21:57:00][C][jbd_bms_ble:411]: Icon: 'mdi:alert-circle-outline' [21:57:00][C][jbd_bms_ble:412]: Nominal capacity 'bms nominal capacity' [21:57:00][C][jbd_bms_ble:412]: State Class: 'measurement' [21:57:00][C][jbd_bms_ble:412]: Unit of Measurement: 'Ah' [21:57:00][C][jbd_bms_ble:412]: Accuracy Decimals: 2 [21:57:00][C][jbd_bms_ble:412]: Icon: 'mdi:battery-50' [21:57:00][C][jbd_bms_ble:413]: Charging cycles 'bms charging cycles' [21:57:00][C][jbd_bms_ble:413]: State Class: 'measurement' [21:57:00][C][jbd_bms_ble:413]: Unit of Measurement: '' [21:57:00][C][jbd_bms_ble:413]: Accuracy Decimals: 0 [21:57:00][C][jbd_bms_ble:413]: Icon: 'mdi:battery-sync' [21:57:00][C][jbd_bms_ble:414]: Balancer status bitmask 'bms balancer status bitmask' [21:57:00][C][jbd_bms_ble:414]: State Class: 'measurement' [21:57:00][C][jbd_bms_ble:414]: Unit of Measurement: '' [21:57:00][C][jbd_bms_ble:414]: Accuracy Decimals: 0 [21:57:00][C][jbd_bms_ble:414]: Icon: 'mdi:seesaw' [21:57:00][C][jbd_bms_ble:415]: Capacity remaining 'bms capacity remaining' [21:57:00][C][jbd_bms_ble:415]: State Class: 'measurement' [21:57:00][C][jbd_bms_ble:415]: Unit of Measurement: 'Ah' [21:57:00][C][jbd_bms_ble:415]: Accuracy Decimals: 2 [21:57:00][C][jbd_bms_ble:416]: Average cell voltage sensor 'bms average cell voltage' [21:57:00][C][jbd_bms_ble:416]: Device Class: 'voltage' [21:57:00][C][jbd_bms_ble:416]: State Class: 'measurement' [21:57:00][C][jbd_bms_ble:416]: Unit of Measurement: 'V' [21:57:00][C][jbd_bms_ble:416]: Accuracy Decimals: 4 [21:57:00][C][jbd_bms_ble:417]: Delta cell voltage sensor 'bms delta cell voltage' [21:57:00][C][jbd_bms_ble:417]: Device Class: 'voltage' [21:57:00][C][jbd_bms_ble:417]: State Class: 'measurement' [21:57:00][C][jbd_bms_ble:417]: Unit of Measurement: 'V' [21:57:00][C][jbd_bms_ble:417]: Accuracy Decimals: 4 [21:57:00][C][jbd_bms_ble:418]: Maximum cell voltage 'bms max cell voltage' [21:57:00][C][jbd_bms_ble:418]: Device Class: 'voltage' [21:57:00][C][jbd_bms_ble:418]: State Class: 'measurement' [21:57:00][C][jbd_bms_ble:418]: Unit of Measurement: 'V' [21:57:00][C][jbd_bms_ble:418]: Accuracy Decimals: 3 [21:57:00][C][jbd_bms_ble:418]: Icon: 'mdi:battery-plus-outline' [21:57:00][C][jbd_bms_ble:419]: Min voltage cell 'bms min voltage cell' [21:57:00][C][jbd_bms_ble:419]: State Class: 'measurement' [21:57:00][C][jbd_bms_ble:419]: Unit of Measurement: '' [21:57:00][C][jbd_bms_ble:419]: Accuracy Decimals: 0 [21:57:00][C][jbd_bms_ble:419]: Icon: 'mdi:battery-minus-outline' [21:57:00][C][jbd_bms_ble:420]: Max voltage cell 'bms max voltage cell' [21:57:00][C][jbd_bms_ble:420]: State Class: 'measurement' [21:57:00][C][jbd_bms_ble:420]: Unit of Measurement: '' [21:57:00][C][jbd_bms_ble:420]: Accuracy Decimals: 0 [21:57:00][C][jbd_bms_ble:420]: Icon: 'mdi:battery-plus-outline' [21:57:00][C][jbd_bms_ble:421]: Minimum cell voltage 'bms min cell voltage' [21:57:00][C][jbd_bms_ble:421]: Device Class: 'voltage' [21:57:00][C][jbd_bms_ble:421]: State Class: 'measurement' [21:57:00][C][jbd_bms_ble:421]: Unit of Measurement: 'V' [21:57:00][C][jbd_bms_ble:421]: Accuracy Decimals: 3 [21:57:00][C][jbd_bms_ble:421]: Icon: 'mdi:battery-minus-outline' [21:57:00][C][jbd_bms_ble:423]: Temperature 1 'bms temperature 1' [21:57:00][C][jbd_bms_ble:423]: Device Class: 'temperature' [21:57:00][C][jbd_bms_ble:423]: State Class: 'measurement' [21:57:00][C][jbd_bms_ble:423]: Unit of Measurement: '°C' [21:57:00][C][jbd_bms_ble:423]: Accuracy Decimals: 1 [21:57:00][C][jbd_bms_ble:424]: Temperature 2 'bms temperature 2' [21:57:00][C][jbd_bms_ble:424]: Device Class: 'temperature' [21:57:00][C][jbd_bms_ble:424]: State Class: 'measurement' [21:57:00][C][jbd_bms_ble:424]: Unit of Measurement: '°C' [21:57:00][C][jbd_bms_ble:424]: Accuracy Decimals: 1 [21:57:00][C][jbd_bms_ble:429]: Cell Voltage 1 'bms cell voltage 1' [21:57:00][C][jbd_bms_ble:429]: Device Class: 'voltage' [21:57:00][C][jbd_bms_ble:429]: State Class: 'measurement' [21:57:00][C][jbd_bms_ble:429]: Unit of Measurement: 'V' [21:57:00][C][jbd_bms_ble:429]: Accuracy Decimals: 3 [21:57:00][C][jbd_bms_ble:430]: Cell Voltage 2 'bms cell voltage 2' [21:57:00][C][jbd_bms_ble:430]: Device Class: 'voltage' [21:57:00][C][jbd_bms_ble:430]: State Class: 'measurement' [21:57:00][C][jbd_bms_ble:430]: Unit of Measurement: 'V' [21:57:00][C][jbd_bms_ble:430]: Accuracy Decimals: 3 [21:57:00][C][jbd_bms_ble:431]: Cell Voltage 3 'bms cell voltage 3' [21:57:00][C][jbd_bms_ble:431]: Device Class: 'voltage' [21:57:00][C][jbd_bms_ble:431]: State Class: 'measurement' [21:57:00][C][jbd_bms_ble:431]: Unit of Measurement: 'V' [21:57:00][C][jbd_bms_ble:431]: Accuracy Decimals: 3 [21:57:00][C][jbd_bms_ble:432]: Cell Voltage 4 'bms cell voltage 4' [21:57:00][C][jbd_bms_ble:432]: Device Class: 'voltage' [21:57:00][C][jbd_bms_ble:432]: State Class: 'measurement' [21:57:00][C][jbd_bms_ble:432]: Unit of Measurement: 'V' [21:57:00][C][jbd_bms_ble:432]: Accuracy Decimals: 3 [21:57:00][C][jbd_bms_ble:462]: Operation status 'bms operation status' [21:57:00][C][jbd_bms_ble:462]: Icon: 'mdi:heart-pulse' [21:57:00][C][jbd_bms_ble:463]: Errors 'bms errors' [21:57:00][C][jbd_bms_ble:463]: Icon: 'mdi:alert-circle-outline' [21:57:00][C][jbd_bms_ble:464]: Device model 'bms device model' [21:57:00][C][jbd_bms_ble:464]: Icon: 'mdi:chip' [21:57:00][W][esp32_ble_tracker:114]: Too many BLE events to process. Some devices may not show up. [21:57:00][C][ble_switch:068]: BLE Client Switch 'bms enable bluetooth connection' [21:57:00][C][ble_switch:070]: Icon: 'mdi:bluetooth' [21:57:00][C][ble_switch:091]: Restore Mode: always OFF [21:57:00][C][jbd_bms_ble.switch:068]: JbdBmsBle Switch 'bms discharging' [21:57:00][C][jbd_bms_ble.switch:070]: Icon: 'mdi:battery-charging-50' [21:57:00][C][jbd_bms_ble.switch:091]: Restore Mode: always OFF [21:57:00][C][jbd_bms_ble.switch:068]: JbdBmsBle Switch 'bms charging' [21:57:00][C][jbd_bms_ble.switch:070]: Icon: 'mdi:battery-charging-50' [21:57:00][C][jbd_bms_ble.switch:091]: Restore Mode: always OFF [21:57:00][C][esp32_ble:383]: ESP32 BLE: [21:57:00][C][esp32_ble:385]: MAC address: E0:5A:1B:A0:1E:66 [21:57:00][C][esp32_ble:386]: IO Capability: none [21:57:00][C][esp32_ble_tracker:653]: BLE Tracker: [21:57:00][C][esp32_ble_tracker:654]: Scan Duration: 300 s [21:57:00][C][esp32_ble_tracker:655]: Scan Interval: 320.0 ms [21:57:00][C][esp32_ble_tracker:656]: Scan Window: 30.0 ms [21:57:00][C][esp32_ble_tracker:657]: Scan Type: ACTIVE [21:57:00][C][esp32_ble_tracker:658]: Continuous Scanning: True [21:57:00][C][ble_client:027]: BLE Client: [21:57:00][C][ble_client:028]: Address: 70:3E:97:D1:BE:20 [21:57:00][C][esphome.ota:073]: Over-The-Air updates: [21:57:00][C][esphome.ota:074]: Address: bms.local:3232 [21:57:00][C][esphome.ota:075]: Version: 2 [21:57:00][C][esphome.ota:078]: Password configured [21:57:00][C][safe_mode:018]: Safe Mode: [21:57:00][C][safe_mode:020]: Boot considered successful after 60 seconds [21:57:00][C][safe_mode:021]: Invoke after 10 boot attempts [21:57:00][C][safe_mode:023]: Remain in safe mode for 300 seconds [21:57:01][V][esp32_ble_tracker:638]: Unhandled type: advType: 0x14 [21:57:01][V][esp32_ble_tracker:638]: Unhandled type: advType: 0x15 [21:57:07][VV][jbd_bms_ble:552]: Send command: DD.A5.03.00.FF.FD.77 (7) [21:57:07][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=4 gattc_if=3 [21:57:07][D][esp32_ble_client:110]: [0] [70:3E:97:D1:BE:20] ESP_GATTC_WRITE_CHAR_EVT [21:57:12][W][web_server_idf:070][httpd]: Only application/x-www-form-urlencoded supported for POST request [21:57:12][D][switch:016]: 'bms enable bluetooth connection' Turning OFF. [21:57:12][I][ble_client:043]: [70:3E:97:D1:BE:20] Disabling BLE client. [21:57:12][I][esp32_ble_client:084]: [0] [70:3E:97:D1:BE:20] Disconnecting. [21:57:12][D][switch:055]: 'bms enable bluetooth connection': Sending state OFF [21:57:12][VV][esp-idf:000][BTU_TASK]: W (33042) BT_HCI: hci cmd send: disconnect: hdl 0x0, rsn:0x13 [21:57:12][VV][esp-idf:000][BTU_TASK]: W (33053) BT_APPL: gattc_conn_cb: if=3 st=0 id=3 rsn=0x16 [21:57:12][VV][esp-idf:000][BTU_TASK]: W (33060) BT_HCI: hcif disc complete: hdl 0x0, rsn 0x16 [21:57:12][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=5 gattc_if=3 [21:57:12][D][esp32_ble_client:110]: [0] [70:3E:97:D1:BE:20] ESP_GATTC_CLOSE_EVT [21:57:12][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=41 gattc_if=3 [21:57:12][D][esp32_ble_client:172]: [0] [70:3E:97:D1:BE:20] ESP_GATTC_DISCONNECT_EVT, reason 22 [21:57:18][W][web_server_idf:070][httpd]: Only application/x-www-form-urlencoded supported for POST request [21:57:18][D][switch:012]: 'bms enable bluetooth connection' Turning ON. [21:57:18][D][switch:055]: 'bms enable bluetooth connection': Sending state ON [21:57:19][D][esp32_ble_client:110]: [0] [70:3E:97:D1:BE:20] Found device [21:57:19][D][esp32_ble_tracker:669]: Found device 70:3E:97:D1:BE:20 RSSI=-83 [21:57:19][D][esp32_ble_tracker:690]: Address Type: PUBLIC [21:57:19][D][esp32_ble_tracker:692]: Name: '0223400011' [21:57:19][D][esp32_ble_tracker:695]: TX Power: 2 [21:57:19][D][esp32_ble_tracker:219]: Pausing scan to make connection... [21:57:19][D][esp32_ble_tracker:219]: Pausing scan to make connection... [21:57:19][VV][esp-idf:000][BTU_TASK]: E (40366) BT_BTM: BTM_BleScan scan not active [21:57:19][VV][esp-idf:000][BTU_TASK]: W (40371) BT_APPL: bta_dm_ble_scan stop scan failed, status=0x6 [21:57:19][I][esp32_ble_client:067]: [0] [70:3E:97:D1:BE:20] 0x00 Attempting BLE connection [21:57:19][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=40 gattc_if=3 [21:57:19][D][esp32_ble_client:110]: [0] [70:3E:97:D1:BE:20] ESP_GATTC_CONNECT_EVT [21:57:19][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=2 gattc_if=3 [21:57:19][D][esp32_ble_client:110]: [0] [70:3E:97:D1:BE:20] ESP_GATTC_OPEN_EVT [21:57:19][D][esp32_ble_tracker:270]: Starting scan... [21:57:20][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=46 gattc_if=3 [21:57:20][D][esp32_ble_client:306]: [0] [70:3E:97:D1:BE:20] Event 46 [21:57:20][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=7 gattc_if=3 [21:57:20][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=7 gattc_if=3 [21:57:20][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=7 gattc_if=3 [21:57:20][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=7 gattc_if=3 [21:57:20][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=7 gattc_if=3 [21:57:20][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=6 gattc_if=3 [21:57:20][D][esp32_ble_client:110]: [0] [70:3E:97:D1:BE:20] ESP_GATTC_SEARCH_CMPL_EVT [21:57:20][V][esp32_ble_client:223]: [0] [70:3E:97:D1:BE:20] Service UUID: 0x1800 [21:57:20][V][esp32_ble_client:225]: [0] [70:3E:97:D1:BE:20] start_handle: 0x1 end_handle: 0x7 [21:57:20][V][esp32_ble_client:223]: [0] [70:3E:97:D1:BE:20] Service UUID: 0x1801 [21:57:20][V][esp32_ble_client:225]: [0] [70:3E:97:D1:BE:20] start_handle: 0x8 end_handle: 0xb [21:57:20][V][esp32_ble_client:223]: [0] [70:3E:97:D1:BE:20] Service UUID: 0x180A [21:57:20][V][esp32_ble_client:225]: [0] [70:3E:97:D1:BE:20] start_handle: 0xc end_handle: 0xe [21:57:20][V][esp32_ble_client:223]: [0] [70:3E:97:D1:BE:20] Service UUID: 0xFF00 [21:57:20][V][esp32_ble_client:225]: [0] [70:3E:97:D1:BE:20] start_handle: 0xf end_handle: 0x16 [21:57:20][V][esp32_ble_client:223]: [0] [70:3E:97:D1:BE:20] Service UUID: 00010203-0405-0607-0809-0A0B0C0D1912 [21:57:20][V][esp32_ble_client:225]: [0] [70:3E:97:D1:BE:20] start_handle: 0x17 end_handle: 0x1b [21:57:20][I][esp32_ble_client:227]: [0] [70:3E:97:D1:BE:20] Connected [21:57:20][V][esp32_ble_client:069]: [0] [70:3E:97:D1:BE:20] characteristic 0xFF01, handle 0x11, properties 0x12 [21:57:20][V][esp32_ble_client:069]: [0] [70:3E:97:D1:BE:20] characteristic 0xFF02, handle 0x15, properties 0x6 [21:57:20][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=18 gattc_if=3 [21:57:20][D][esp32_ble_client:188]: [0] [70:3E:97:D1:BE:20] cfg_mtu status 0, mtu 128 [21:57:20][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=38 gattc_if=3 [21:57:20][D][esp32_ble_client:110]: [0] [70:3E:97:D1:BE:20] ESP_GATTC_REG_FOR_NOTIFY_EVT [21:57:20][D][esp32_ble_client:296]: Wrote notify descriptor 1, properties=18 [21:57:20][D][ble_client:058]: All clients established, services released [21:57:20][W][component:237]: Component esp32_ble took a long time for an operation (196 ms). [21:57:20][W][component:238]: Components should block for at most 30 ms. [21:57:20][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=9 gattc_if=3 [21:57:20][D][esp32_ble_client:110]: [0] [70:3E:97:D1:BE:20] ESP_GATTC_WRITE_DESCR_EVT [21:57:21][V][esp32_ble_tracker:638]: Unhandled type: advType: 0x14 [21:57:21][V][esp32_ble_tracker:638]: Unhandled type: advType: 0x15 [21:57:22][VV][jbd_bms_ble:552]: Send command: DD.A5.03.00.FF.FD.77 (7) [21:57:22][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=4 gattc_if=3 [21:57:22][D][esp32_ble_client:110]: [0] [70:3E:97:D1:BE:20] ESP_GATTC_WRITE_CHAR_EVT [21:57:25][V][esp32_ble_tracker:638]: Unhandled type: advType: 0x14 [21:57:25][V][esp32_ble_tracker:638]: Unhandled type: advType: 0x15 [21:57:37][VV][jbd_bms_ble:552]: Send command: DD.A5.03.00.FF.FD.77 (7) [21:57:37][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=4 gattc_if=3 [21:57:37][D][esp32_ble_client:110]: [0] [70:3E:97:D1:BE:20] ESP_GATTC_WRITE_CHAR_EVT [21:57:40][I][safe_mode:041]: Boot seems successful; resetting boot loop counter [21:57:43][V][esp32_ble_tracker:638]: Unhandled type: advType: 0x14 [21:57:43][V][esp32_ble_tracker:638]: Unhandled type: advType: 0x15 [21:57:49][V][esp32_ble_tracker:638]: Unhandled type: advType: 0x14 [21:57:49][V][esp32_ble_tracker:638]: Unhandled type: advType: 0x15 [21:57:52][VV][jbd_bms_ble:552]: Send command: DD.A5.03.00.FF.FD.77 (7) [21:57:52][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=4 gattc_if=3 [21:57:52][D][esp32_ble_client:110]: [0] [70:3E:97:D1:BE:20] ESP_GATTC_WRITE_CHAR_EVT [21:58:02][V][esp32_ble_tracker:638]: Unhandled type: advType: 0x14 [21:58:02][V][esp32_ble_tracker:638]: Unhandled type: advType: 0x15 [21:58:03][V][esp32_ble_tracker:638]: Unhandled type: advType: 0x14 [21:58:03][V][esp32_ble_tracker:638]: Unhandled type: advType: 0x15 [21:58:05][V][esp32_ble_tracker:638]: Unhandled type: advType: 0x14 [21:58:05][V][esp32_ble_tracker:638]: Unhandled type: advType: 0x15 [21:58:07][VV][jbd_bms_ble:552]: Send command: DD.A5.03.00.FF.FD.77 (7) [21:58:07][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=4 gattc_if=3 [21:58:07][D][esp32_ble_client:110]: [0] [70:3E:97:D1:BE:20] ESP_GATTC_WRITE_CHAR_EVT [21:58:22][VV][jbd_bms_ble:552]: Send command: DD.A5.03.00.FF.FD.77 (7) [21:58:22][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=4 gattc_if=3 [21:58:22][D][esp32_ble_client:110]: [0] [70:3E:97:D1:BE:20] ESP_GATTC_WRITE_CHAR_EVT [21:58:25][V][esp32_ble_tracker:638]: Unhandled type: advType: 0x14 [21:58:25][V][esp32_ble_tracker:638]: Unhandled type: advType: 0x15 [21:58:37][VV][jbd_bms_ble:552]: Send command: DD.A5.03.00.FF.FD.77 (7) [21:58:37][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=4 gattc_if=3 [21:58:37][D][esp32_ble_client:110]: [0] [70:3E:97:D1:BE:20] ESP_GATTC_WRITE_CHAR_EVT [21:58:47][W][web_server_idf:070][httpd]: Only application/x-www-form-urlencoded supported for POST request [21:58:47][D][switch:016]: 'bms enable bluetooth connection' Turning OFF. [21:58:47][I][ble_client:043]: [70:3E:97:D1:BE:20] Disabling BLE client. [21:58:47][I][esp32_ble_client:084]: [0] [70:3E:97:D1:BE:20] Disconnecting. [21:58:47][D][switch:055]: 'bms enable bluetooth connection': Sending state OFF [21:58:47][VV][esp-idf:000][BTU_TASK]: W (128850) BT_HCI: hci cmd send: disconnect: hdl 0x0, rsn:0x13 [21:58:47][VV][esp-idf:000][BTU_TASK]: W (128858) BT_APPL: gattc_conn_cb: if=3 st=0 id=3 rsn=0x16 [21:58:47][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=5 gattc_if=3 [21:58:47][D][esp32_ble_client:110]: [0] [70:3E:97:D1:BE:20] ESP_GATTC_CLOSE_EVT [21:58:47][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=41 gattc_if=3 [21:58:47][D][esp32_ble_client:172]: [0] [70:3E:97:D1:BE:20] ESP_GATTC_DISCONNECT_EVT, reason 22 [21:58:50][V][esp32_ble_tracker:638]: Unhandled type: advType: 0x14 [21:58:50][V][esp32_ble_tracker:638]: Unhandled type: advType: 0x15 [21:58:50][W][web_server_idf:070][httpd]: Only application/x-www-form-urlencoded supported for POST request [21:58:50][D][switch:012]: 'bms enable bluetooth connection' Turning ON. [21:58:50][D][switch:055]: 'bms enable bluetooth connection': Sending state ON [21:58:50][D][esp32_ble_client:110]: [0] [70:3E:97:D1:BE:20] Found device [21:58:50][D][esp32_ble_tracker:669]: Found device 70:3E:97:D1:BE:20 RSSI=-83 [21:58:50][D][esp32_ble_tracker:690]: Address Type: PUBLIC [21:58:50][D][esp32_ble_tracker:692]: Name: '0223400011' [21:58:50][D][esp32_ble_tracker:695]: TX Power: 2 [21:58:50][D][esp32_ble_tracker:219]: Pausing scan to make connection... [21:58:50][D][esp32_ble_tracker:219]: Pausing scan to make connection... [21:58:50][VV][esp-idf:000][BTU_TASK]: E (131700) BT_BTM: BTM_BleScan scan not active [21:58:50][VV][esp-idf:000][BTU_TASK]: W (131705) BT_APPL: bta_dm_ble_scan stop scan failed, status=0x6 [21:58:51][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=40 gattc_if=3 [21:58:51][D][esp32_ble_client:110]: [0] [70:3E:97:D1:BE:20] ESP_GATTC_CONNECT_EVT [21:58:51][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=2 gattc_if=3 [21:58:51][D][esp32_ble_client:110]: [0] [70:3E:97:D1:BE:20] ESP_GATTC_OPEN_EVT [21:58:51][D][esp32_ble_tracker:270]: Starting scan... [21:58:52][D][binary_sensor:036]: 'bms online status': Sending state OFF [21:58:52][V][text_sensor:013]: 'bms errors': Received new state Offline [21:58:52][D][text_sensor:064]: 'bms errors': Sending state 'Offline' [21:58:52][D][sensor:094]: 'bms state of charge': Sending state nan % with 0 decimals of accuracy [21:58:52][D][sensor:094]: 'bms total voltage': Sending state nan V with 2 decimals of accuracy [21:58:52][D][sensor:094]: 'bms current': Sending state nan A with 1 decimals of accuracy [21:58:52][D][sensor:094]: 'bms power': Sending state nan W with 1 decimals of accuracy [21:58:52][D][sensor:094]: 'bms charging power': Sending state nan W with 2 decimals of accuracy [21:58:52][D][sensor:094]: 'bms discharging power': Sending state nan W with 2 decimals of accuracy [21:58:52][D][sensor:094]: 'bms nominal capacity': Sending state nan Ah with 2 decimals of accuracy [21:58:52][D][sensor:094]: 'bms charging cycles': Sending state nan with 0 decimals of accuracy [21:58:52][D][sensor:094]: 'bms capacity remaining': Sending state nan Ah with 2 decimals of accuracy [21:58:52][D][sensor:094]: 'bms min cell voltage': Sending state nan V with 3 decimals of accuracy [21:58:52][D][sensor:094]: 'bms max cell voltage': Sending state nan V with 3 decimals of accuracy [21:58:52][D][sensor:094]: 'bms min voltage cell': Sending state nan with 0 decimals of accuracy [21:58:52][D][sensor:094]: 'bms max voltage cell': Sending state nan with 0 decimals of accuracy [21:58:52][D][sensor:094]: 'bms delta cell voltage': Sending state nan V with 4 decimals of accuracy [21:58:52][D][sensor:094]: 'bms average cell voltage': Sending state nan V with 4 decimals of accuracy [21:58:52][D][sensor:094]: 'bms operation status bitmask': Sending state nan with 0 decimals of accuracy [21:58:52][D][sensor:094]: 'bms errors bitmask': Sending state nan with 0 decimals of accuracy [21:58:52][D][sensor:094]: 'bms balancer status bitmask': Sending state nan with 0 decimals of accuracy [21:58:52][D][sensor:094]: 'bms battery strings': Sending state nan with 0 decimals of accuracy [21:58:52][D][sensor:094]: 'bms software version': Sending state nan with 1 decimals of accuracy [21:58:52][D][sensor:094]: 'bms temperature 1': Sending state nan °C with 1 decimals of accuracy [21:58:52][D][sensor:094]: 'bms temperature 2': Sending state nan °C with 1 decimals of accuracy [21:58:52][D][sensor:094]: 'bms cell voltage 1': Sending state nan V with 3 decimals of accuracy [21:58:52][D][sensor:094]: 'bms cell voltage 2': Sending state nan V with 3 decimals of accuracy [21:58:52][D][sensor:094]: 'bms cell voltage 3': Sending state nan V with 3 decimals of accuracy [21:58:52][D][sensor:094]: 'bms cell voltage 4': Sending state nan V with 3 decimals of accuracy [21:58:52][W][jbd_bms_ble:171]: [70:3E:97:D1:BE:20] Not connected [21:58:52][W][component:237]: Component jbd_bms_ble took a long time for an operation (223 ms). [21:58:52][W][component:238]: Components should block for at most 30 ms. [21:58:52][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=46 gattc_if=3 [21:58:52][D][esp32_ble_client:306]: [0] [70:3E:97:D1:BE:20] Event 46 [21:58:52][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=7 gattc_if=3 [21:58:52][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=7 gattc_if=3 [21:58:52][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=7 gattc_if=3 [21:58:52][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=7 gattc_if=3 [21:58:52][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=7 gattc_if=3 [21:58:52][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=6 gattc_if=3 [21:58:52][D][esp32_ble_client:110]: [0] [70:3E:97:D1:BE:20] ESP_GATTC_SEARCH_CMPL_EVT [21:58:52][V][esp32_ble_client:223]: [0] [70:3E:97:D1:BE:20] Service UUID: 0x1800 [21:58:52][V][esp32_ble_client:225]: [0] [70:3E:97:D1:BE:20] start_handle: 0x1 end_handle: 0x7 [21:58:52][V][esp32_ble_client:223]: [0] [70:3E:97:D1:BE:20] Service UUID: 0x1801 [21:58:52][V][esp32_ble_client:225]: [0] [70:3E:97:D1:BE:20] start_handle: 0x8 end_handle: 0xb [21:58:52][V][esp32_ble_client:223]: [0] [70:3E:97:D1:BE:20] Service UUID: 0x180A [21:58:52][V][esp32_ble_client:225]: [0] [70:3E:97:D1:BE:20] start_handle: 0xc end_handle: 0xe [21:58:52][V][esp32_ble_client:223]: [0] [70:3E:97:D1:BE:20] Service UUID: 0xFF00 [21:58:52][V][esp32_ble_client:225]: [0] [70:3E:97:D1:BE:20] start_handle: 0xf end_handle: 0x16 [21:58:52][V][esp32_ble_client:223]: [0] [70:3E:97:D1:BE:20] Service UUID: 00010203-0405-0607-0809-0A0B0C0D1912 [21:58:52][V][esp32_ble_client:225]: [0] [70:3E:97:D1:BE:20] start_handle: 0x17 end_handle: 0x1b [21:58:52][I][esp32_ble_client:227]: [0] [70:3E:97:D1:BE:20] Connected [21:58:52][V][esp32_ble_client:069]: [0] [70:3E:97:D1:BE:20] characteristic 0xFF01, handle 0x11, properties 0x12 [21:58:52][V][esp32_ble_client:069]: [0] [70:3E:97:D1:BE:20] characteristic 0xFF02, handle 0x15, properties 0x6 [21:58:52][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=18 gattc_if=3 [21:58:52][D][esp32_ble_client:188]: [0] [70:3E:97:D1:BE:20] cfg_mtu status 0, mtu 128 [21:58:52][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=38 gattc_if=3 [21:58:52][D][esp32_ble_client:110]: [0] [70:3E:97:D1:BE:20] ESP_GATTC_REG_FOR_NOTIFY_EVT [21:58:52][D][esp32_ble_client:296]: Wrote notify descriptor 1, properties=18 [21:58:52][D][ble_client:058]: All clients established, services released [21:58:52][W][component:237]: Component esp32_ble took a long time for an operation (225 ms). [21:58:52][W][component:238]: Components should block for at most 30 ms. [21:58:52][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=9 gattc_if=3 [21:58:52][D][esp32_ble_client:110]: [0] [70:3E:97:D1:BE:20] ESP_GATTC_WRITE_DESCR_EVT [21:59:07][VV][jbd_bms_ble:552]: Send command: DD.A5.03.00.FF.FD.77 (7) [21:59:07][V][esp32_ble_client:121]: [0] [70:3E:97:D1:BE:20] gattc_event_handler: event=4 gattc_if=3 [21:59:07][D][esp32_ble_client:110]: [0] [70:3E:97:D1:BE:20] ESP_GATTC_WRITE_CHAR_EVT