dbuezas / eq3btsmart

60 stars 9 forks source link

Missing firmware version #46

Closed psychowood closed 1 year ago

psychowood commented 1 year ago

I've got 8 TRVs in action, all (currently :) ) working through a bt proxy.

I noticed that 2 out them report firmware 1.20, while the others have the value "unknown".

Is there a way to check the installed firmware version? Could it be that really low firmwares are not reporting the value?

dbuezas commented 1 year ago

When you reinsert the batteries, the trv will show the fw version shortly. It could well be that very old versions don't report that value, I know that v1.20 don't report eco and comfort temperatures for example

psychowood commented 1 year ago

Thanks, I'll give a look at the actual version. I'm always a little hesitant about firmware upgrades when DYIing, but since 1.46 is now usable with bt proxies I may give it a try.

psychowood commented 1 year ago

Just in case someone was wondering, those are the firmware versions embedded in the calorbt app:

- apk v1.7.1  -> ???
- apk v1.2.1  -> firmware 1.20
- apk v1.2.3  -> firmware 1.20
- apk v1.3.3  -> firmware 1.44 (first version with 6char pin pairing)
- apk v1.3.6  -> firmware 1.46
- apk v1.3.20 -> firmware 1.46

Regarding v1.7.1: firmware file is embedded, I couldn't extract the exact version from the sources. It looks like there is no explicit version check in place, and this app version could be used to force a downgrade by replacing the file and rebuilding the apk. At least as long as newer firmwares the eq3 firmware did not change the update methods.

dbuezas commented 1 year ago

It would be nuts if somebody decompiled a firmware and found a way to expose the actual measured ambient temperature. I would absolutely add that to the integration

psychowood commented 1 year ago

It would be nuts if somebody decompiled a firmware and found a way to expose the actual measured ambient temperature. I would absolutely add that to the integration

I'll pass to someone more skilled than me :)

Staying in topic, today I discovered that all my TRVs reported (for the first time in weeks, since I first tried your integration) v1.20 ...

I honestly don't know what to say.

immagine
psychowood commented 1 year ago

Aaaand... after restarting the ESP32 bt proxy, all the TRVs came back online, but this time not a single one has the firmware version entity available.

Just in case you could find the esp proxy trace useful, after issuing the "Fetch" and "Fetch Schedule" command:

INFO Reading configuration /config/esphome/esp32-bluetooth-proxy-f0127c.yaml...
INFO Starting log output from esp32-bluetooth-proxy-f0127c.local using esphome API
INFO Successfully connected to esp32-bluetooth-proxy-f0127c.local
[22:37:25][I][app:102]: ESPHome version 2022.12.8 compiled on Feb  2 2023, 01:01:23
[22:37:25][I][app:104]: Project esphome.bluetooth-proxy version 1.0
[22:37:25][C][wifi:504]: WiFi:
[22:37:25][C][wifi:362]:   Local MAC: XX:XX:XX:XX:XX:7C
[22:37:25][C][wifi:363]:   SSID: 'tomato-iot'[redacted]
[22:37:26][C][wifi:364]:   IP Address: 192.168.1.108
[22:37:26][C][wifi:366]:   BSSID: XX:XX:XX:XX:XX:A7[redacted]
[22:37:26][C][wifi:367]:   Hostname: 'esp32-bluetooth-proxy-f0127c'
[22:37:26][C][wifi:369]:   Signal strength: -46 dB ▂▄▆█
[22:37:26][C][wifi:373]:   Channel: 1
[22:37:26][C][wifi:374]:   Subnet: 255.255.255.0
[22:37:26][C][wifi:375]:   Gateway: 192.168.1.1
[22:37:26][C][wifi:376]:   DNS1: 192.168.1.4
[22:37:26][C][wifi:377]:   DNS2: 192.168.1.1
[22:37:26][C][logger:293]: Logger:
[22:37:26][C][logger:294]:   Level: DEBUG
[22:37:26][C][logger:295]:   Log Baud Rate: 115200
[22:37:26][C][logger:296]:   Hardware UART: UART0
[22:37:26][C][bluetooth_proxy:065]: Bluetooth Proxy:
[22:37:26][C][bluetooth_proxy:066]:   Active: YES
[22:37:26][C][safe_mode.button:022]: Safe Mode Button 'Safe Mode Boot'
[22:37:26][C][safe_mode.button:022]:   Icon: 'mdi:restart-alert'
[22:37:26][C][restart.button:017]: Restart Button 'BT Proxy Restart'
[22:37:26][C][copy.sensor:015]: Copy Sensor 'WiFi Signal Percent'
[22:37:26][C][copy.sensor:015]:   Device Class: 'signal_strength'
[22:37:26][C][copy.sensor:015]:   State Class: 'measurement'
[22:37:26][C][copy.sensor:015]:   Unit of Measurement: 'Signal %'
[22:37:26][C][copy.sensor:015]:   Accuracy Decimals: 0
[22:37:26][C][esp32_ble_tracker:870]: BLE Tracker:
[22:37:26][C][esp32_ble_tracker:871]:   Scan Duration: 300 s
[22:37:26][C][esp32_ble_tracker:872]:   Scan Interval: 1100.0 ms
[22:37:26][C][esp32_ble_tracker:873]:   Scan Window: 1100.0 ms
[22:37:26][C][esp32_ble_tracker:874]:   Scan Type: ACTIVE
[22:37:26][C][esp32_ble_tracker:875]:   Continuous Scanning: True
[22:37:26][C][mdns:103]: mDNS:
[22:37:26][C][mdns:104]:   Hostname: esp32-bluetooth-proxy-f0127c
[22:37:26][C][ota:093]: Over-The-Air Updates:
[22:37:26][C][ota:094]:   Address: esp32-bluetooth-proxy-f0127c.local:3232
[22:37:26][C][api:138]: API Server:
[22:37:26][C][api:139]:   Address: esp32-bluetooth-proxy-f0127c.local:6053
[22:37:26][C][api:143]:   Using noise encryption: NO
[22:37:26][C][improv_serial:032]: Improv Serial:
[22:37:26][C][wifi_signal.sensor:009]: WiFi Signal 'WiFi Signal dB'
[22:37:26][C][wifi_signal.sensor:009]:   Device Class: 'signal_strength'
[22:37:26][C][wifi_signal.sensor:009]:   State Class: 'measurement'
[22:37:26][C][wifi_signal.sensor:009]:   Unit of Measurement: 'dBm'
[22:37:26][C][wifi_signal.sensor:009]:   Accuracy Decimals: 0
[22:37:26][C][debug:044]: Debug component:
[22:37:26][C][debug:046]:   Device info 'Device Info'
[22:37:26][C][debug:046]:     Icon: 'mdi:chip'
[22:37:26][C][debug:049]:   Free space on heap 'Heap Free'
[22:37:26][C][debug:049]:     State Class: ''
[22:37:26][C][debug:049]:     Unit of Measurement: 'B'
[22:37:26][C][debug:049]:     Accuracy Decimals: 0
[22:37:26][C][debug:049]:     Icon: 'mdi:counter'
[22:37:26][C][debug:050]:   Largest free heap block 'Heap Max Block'
[22:37:26][C][debug:050]:     State Class: ''
[22:37:26][C][debug:050]:     Unit of Measurement: 'B'
[22:37:26][C][debug:050]:     Accuracy Decimals: 0
[22:37:26][C][debug:050]:     Icon: 'mdi:counter'
[22:37:26][D][debug:056]: ESPHome version 2022.12.8
[22:37:26][D][debug:060]: Free Heap Size: 93308 bytes
[22:37:26][D][debug:127]: Chip: Model=ESP32, Features=WIFI_BGN,BLE,BT, Cores=2, Revision=3
[22:37:26][D][debug:135]: ESP-IDF Version: 4.4.2
[22:37:26][D][debug:140]: EFuse MAC: XX:XX:XX:XX:XX:7C
[22:37:26][D][debug:193]: Reset Reason: Software Reset CPU
[22:37:26][D][debug:238]: Wakeup Reason: Unknown
[22:37:26][D][text_sensor:067]: 'Device Info': Sending state '2022.12.8|Chip: ESP32 Features:WIFI_BGN,BLE,BT, Cores:2 Revision:3|ESP-IDF: 4.4.2|EFuse MAC: XX:XX:XX:XX:XX:7C|Reset: Software Reset CPU|Wakeup: Unknown'
[22:37:26][D][text_sensor:067]: 'Reset Reason': Sending state 'Software Reset CPU'
[22:37:32][I][bluetooth_proxy:250]: [0] [XX:XX:XX:XX:XX:B3] Connecting v3 with cache
[22:37:32][D][esp32_ble_tracker:216]: Pausing scan to make connection...
[22:37:32][I][esp32_ble_client:064]: [0] [XX:XX:XX:XX:XX:B3] 0x00 Attempting BLE connection
[22:37:33][D][esp-idf:000]: W (202658) BT_HCI: hcif disc complete: hdl 0x0, rsn 0x3e
[22:37:37][D][esp32_ble_tracker:327]: Starting scan...
[22:37:37][D][esp-idf:000]: E (206717) BT_L2CAP: slave connection parameters update failed, the parameters are out of range
[22:37:37][D][esp-idf:000]: E (206734) BT_APPL: service change write ccc failed
[22:37:37][W][bluetooth_proxy.connection:101]: [0] [XX:XX:XX:XX:XX:B3] Error writing char/descriptor at handle 0x430, status=5
[22:37:37][I][esp32_ble_client:078]: [0] [XX:XX:XX:XX:XX:B3] Disconnecting.
[22:37:37][D][esp-idf:000]: W (207282) BT_HCI: hci cmd send: disconnect: hdl 0x0, rsn:0x13
[22:37:37][D][esp-idf:000]: W (207287) BT_APPL: gattc_conn_cb: if=3 st=0 id=3 rsn=0x16
[22:37:37][D][esp-idf:000]: W (207289) BT_APPL: gattc_conn_cb: if=4 st=0 id=4 rsn=0x16
[22:37:37][D][esp-idf:000]: W (207291) BT_APPL: gattc_conn_cb: if=5 st=0 id=5 rsn=0x16
[22:37:37][D][esp-idf:000]: W (207330) BT_HCI: hcif disc complete: hdl 0x0, rsn 0x16
[22:37:43][I][bluetooth_proxy:250]: [0] [XX:XX:XX:XX:XX:6E] Connecting v3 with cache
[22:37:43][D][esp32_ble_tracker:216]: Pausing scan to make connection...
[22:37:43][I][esp32_ble_client:064]: [0] [XX:XX:XX:XX:XX:6E] 0x00 Attempting BLE connection
[22:37:46][D][esp32_ble_tracker:327]: Starting scan...
[22:37:46][D][esp-idf:000]: E (215673) BT_L2CAP: slave connection parameters update failed, the parameters are out of range
[22:37:46][D][esp-idf:000]: E (215689) BT_APPL: service change write ccc failed
[22:37:46][W][bluetooth_proxy.connection:101]: [0] [XX:XX:XX:XX:XX:6E] Error writing char/descriptor at handle 0x430, status=5
[22:37:46][I][bluetooth_proxy:250]: [1] [XX:XX:XX:XX:XX:B3] Connecting v3 with cache
[22:37:46][D][esp32_ble_tracker:216]: Pausing scan to make connection...
[22:37:46][I][esp32_ble_client:064]: [1] [XX:XX:XX:XX:XX:B3] 0x00 Attempting BLE connection
[22:37:46][I][esp32_ble_client:078]: [0] [XX:XX:XX:XX:XX:6E] Disconnecting.
[22:37:46][D][esp-idf:000]: W (215976) BT_HCI: hci cmd send: disconnect: hdl 0x0, rsn:0x13
[22:37:46][D][esp-idf:000]: W (215982) BT_APPL: gattc_conn_cb: if=3 st=0 id=3 rsn=0x16
[22:37:46][D][esp-idf:000]: W (215986) BT_APPL: gattc_conn_cb: if=4 st=0 id=4 rsn=0x16
[22:37:46][D][esp-idf:000]: W (215988) BT_APPL: gattc_conn_cb: if=5 st=0 id=5 rsn=0x16
[22:37:46][D][esp-idf:000]: W (216016) BT_HCI: hcif disc complete: hdl 0x0, rsn 0x16
[22:37:47][D][esp-idf:000]: W (216509) BT_HCI: hcif disc complete: hdl 0x1, rsn 0x3e
[22:37:48][D][esp32_ble_tracker:327]: Starting scan...
[22:37:48][D][esp-idf:000]: E (217564) BT_L2CAP: slave connection parameters update failed, the parameters are out of range
[22:37:48][D][esp-idf:000]: E (217569) BT_APPL: service change write ccc failed
[22:37:48][W][bluetooth_proxy.connection:101]: [1] [XX:XX:XX:XX:XX:B3] Error writing char/descriptor at handle 0x430, status=5
[22:37:48][I][esp32_ble_client:078]: [1] [XX:XX:XX:XX:XX:B3] Disconnecting.
[22:37:48][D][esp-idf:000]: W (217929) BT_HCI: hci cmd send: disconnect: hdl 0x0, rsn:0x13
[22:37:48][D][esp-idf:000]: W (217932) BT_APPL: gattc_conn_cb: if=3 st=0 id=259 rsn=0x16
[22:37:48][D][esp-idf:000]: W (217934) BT_APPL: gattc_conn_cb: if=4 st=0 id=260 rsn=0x16
[22:37:48][D][esp-idf:000]: W (217938) BT_APPL: gattc_conn_cb: if=5 st=0 id=261 rsn=0x16
[22:37:48][I][bluetooth_proxy:250]: [0] [XX:XX:XX:XX:XX:B3] Connecting v3 with cache
[22:37:48][D][esp32_ble_tracker:216]: Pausing scan to make connection...
[22:37:48][D][esp-idf:000]: W (217981) BT_HCI: hcif disc complete: hdl 0x0, rsn 0x16
[22:37:48][I][esp32_ble_client:064]: [0] [XX:XX:XX:XX:XX:B3] 0x00 Attempting BLE connection
[22:37:48][W][bluetooth_proxy:236]: [0] [XX:XX:XX:XX:XX:B3] Connection request ignored, already connecting
[22:37:48][I][bluetooth_proxy:250]: [1] [XX:XX:XX:XX:XX:F0] Connecting v3 with cache
[22:37:53][I][esp32_ble_client:064]: [1] [XX:XX:XX:XX:XX:F0] 0x00 Attempting BLE connection
[22:37:53][D][esp-idf:000]: E (223157) BT_L2CAP: slave connection parameters update failed, the parameters are out of range
[22:37:53][D][esp-idf:000]: E (223206) BT_APPL: service change write ccc failed
[22:37:53][W][bluetooth_proxy.connection:101]: [0] [XX:XX:XX:XX:XX:B3] Error writing char/descriptor at handle 0x430, status=5
[22:37:54][I][esp32_ble_client:078]: [0] [XX:XX:XX:XX:XX:B3] Disconnecting.
[22:37:54][D][esp-idf:000]: W (223587) BT_HCI: hci cmd send: disconnect: hdl 0x0, rsn:0x13
[22:37:54][D][esp-idf:000]: W (223590) BT_APPL: gattc_conn_cb: if=3 st=0 id=3 rsn=0x16
[22:37:54][D][esp-idf:000]: W (223592) BT_APPL: gattc_conn_cb: if=4 st=0 id=4 rsn=0x16
[22:37:54][D][esp-idf:000]: W (223593) BT_APPL: gattc_conn_cb: if=5 st=0 id=5 rsn=0x16
[22:37:54][I][bluetooth_proxy:250]: [0] [XX:XX:XX:XX:XX:B3] Connecting v3 with cache
[22:37:54][D][esp-idf:000]: W (223651) BT_HCI: hcif disc complete: hdl 0x0, rsn 0x16
[22:37:54][W][bluetooth_proxy:228]: [0] [XX:XX:XX:XX:XX:B3] Connection request ignored, device already discovered
[22:37:54][I][esp32_ble_client:064]: [0] [XX:XX:XX:XX:XX:B3] 0x00 Attempting BLE connection
[22:37:54][D][esp-idf:000]: E (224138) BT_L2CAP: slave connection parameters update failed, the parameters are out of range
[22:37:54][D][esp-idf:000]: E (224156) BT_APPL: service change write ccc failed
[22:37:54][W][bluetooth_proxy.connection:101]: [1] [XX:XX:XX:XX:XX:F0] Error writing char/descriptor at handle 0x430, status=5
[22:37:55][I][esp32_ble_client:078]: [1] [XX:XX:XX:XX:XX:F0] Disconnecting.
[22:37:55][D][esp-idf:000]: W (224481) BT_HCI: hci cmd send: disconnect: hdl 0x1, rsn:0x13
[22:37:55][D][esp-idf:000]: W (224488) BT_APPL: gattc_conn_cb: if=3 st=0 id=259 rsn=0x16
[22:37:55][D][esp-idf:000]: W (224490) BT_APPL: gattc_conn_cb: if=4 st=0 id=260 rsn=0x16
[22:37:55][D][esp-idf:000]: W (224493) BT_APPL: gattc_conn_cb: if=5 st=0 id=261 rsn=0x16
[22:37:55][D][esp-idf:000]: W (224523) BT_HCI: hcif disc complete: hdl 0x1, rsn 0x16
[22:37:56][I][bluetooth_proxy:250]: [1] [XX:XX:XX:XX:XX:61] Connecting v3 with cache
[22:37:56][D][esp-idf:000]: E (225813) BT_L2CAP: slave connection parameters update failed, the parameters are out of range
[22:37:56][I][esp32_ble_client:064]: [1] [XX:XX:XX:XX:XX:61] 0x00 Attempting BLE connection
[22:37:56][D][esp-idf:000]: E (225847) BT_APPL: service change write ccc failed
[22:37:56][W][bluetooth_proxy.connection:101]: [0] [XX:XX:XX:XX:XX:B3] Error writing char/descriptor at handle 0x430, status=5
[22:37:56][I][esp32_ble_client:078]: [0] [XX:XX:XX:XX:XX:B3] Disconnecting.
[22:37:56][D][esp-idf:000]: W (226209) BT_HCI: hci cmd send: disconnect: hdl 0x0, rsn:0x13
[22:37:56][D][esp-idf:000]: W (226213) BT_APPL: gattc_conn_cb: if=3 st=0 id=3 rsn=0x16
[22:37:56][D][esp-idf:000]: W (226216) BT_APPL: gattc_conn_cb: if=4 st=0 id=4 rsn=0x16
[22:37:56][D][esp-idf:000]: W (226217) BT_APPL: gattc_conn_cb: if=5 st=0 id=5 rsn=0x16
[22:37:56][W][bluetooth_proxy:240]: [0] [XX:XX:XX:XX:XX:B3] Connection request ignored, device is disconnecting
[22:37:56][D][esp-idf:000]: W (226246) BT_HCI: hcif disc complete: hdl 0x0, rsn 0x16
[22:37:57][D][esp32_ble_tracker:327]: Starting scan...
[22:37:57][D][esp-idf:000]: E (226535) BT_L2CAP: slave connection parameters update failed, the parameters are out of range
[22:37:57][D][esp-idf:000]: E (226553) BT_APPL: service change write ccc failed
[22:37:57][I][bluetooth_proxy:250]: [0] [XX:XX:XX:XX:XX:B3] Connecting v3 with cache
[22:37:57][D][esp32_ble_tracker:216]: Pausing scan to make connection...
[22:37:57][I][esp32_ble_client:064]: [0] [XX:XX:XX:XX:XX:B3] 0x00 Attempting BLE connection
[22:37:57][W][bluetooth_proxy.connection:101]: [1] [XX:XX:XX:XX:XX:61] Error writing char/descriptor at handle 0x430, status=5
[22:37:57][I][esp32_ble_client:078]: [1] [XX:XX:XX:XX:XX:61] Disconnecting.
[22:37:57][D][esp-idf:000]: W (226938) BT_HCI: hci cmd send: disconnect: hdl 0x1, rsn:0x13
[22:37:57][D][esp-idf:000]: W (226941) BT_APPL: gattc_conn_cb: if=3 st=0 id=259 rsn=0x16
[22:37:57][D][esp-idf:000]: W (226944) BT_APPL: gattc_conn_cb: if=4 st=0 id=260 rsn=0x16
[22:37:57][D][esp-idf:000]: W (226946) BT_APPL: gattc_conn_cb: if=5 st=0 id=261 rsn=0x16
[22:37:57][D][esp-idf:000]: W (226983) BT_HCI: hcif disc complete: hdl 0x1, rsn 0x16
[22:38:00][D][esp32_ble_tracker:327]: Starting scan...
[22:38:00][D][esp-idf:000]: E (229459) BT_L2CAP: slave connection parameters update failed, the parameters are out of range
[22:38:00][D][esp-idf:000]: E (229522) BT_APPL: service change write ccc failed
[22:38:00][W][bluetooth_proxy.connection:101]: [0] [XX:XX:XX:XX:XX:B3] Error writing char/descriptor at handle 0x430, status=5
[22:38:00][I][esp32_ble_client:078]: [0] [XX:XX:XX:XX:XX:B3] Disconnecting.
[22:38:00][D][esp-idf:000]: W (229912) BT_HCI: hci cmd send: disconnect: hdl 0x0, rsn:0x13
[22:38:00][D][esp-idf:000]: W (229917) BT_APPL: gattc_conn_cb: if=3 st=0 id=3 rsn=0x16
[22:38:00][D][esp-idf:000]: W (229920) BT_APPL: gattc_conn_cb: if=4 st=0 id=4 rsn=0x16
[22:38:00][D][esp-idf:000]: W (229923) BT_APPL: gattc_conn_cb: if=5 st=0 id=5 rsn=0x16
[22:38:00][W][bluetooth_proxy:240]: [0] [XX:XX:XX:XX:XX:B3] Connection request ignored, device is disconnecting
[22:38:00][D][esp-idf:000]: W (229952) BT_HCI: hcif disc complete: hdl 0x0, rsn 0x16
[22:38:00][I][bluetooth_proxy:250]: [0] [XX:XX:XX:XX:XX:B3] Connecting v3 with cache
[22:38:00][D][esp32_ble_tracker:216]: Pausing scan to make connection...
[22:38:00][I][esp32_ble_client:064]: [0] [XX:XX:XX:XX:XX:B3] 0x00 Attempting BLE connection
[22:38:01][D][esp32_ble_tracker:327]: Starting scan...
[22:38:01][D][esp-idf:000]: E (231168) BT_L2CAP: slave connection parameters update failed, the parameters are out of range
[22:38:01][D][esp-idf:000]: E (231187) BT_APPL: service change write ccc failed
[22:38:01][W][bluetooth_proxy.connection:101]: [0] [XX:XX:XX:XX:XX:B3] Error writing char/descriptor at handle 0x430, status=5
[22:38:02][I][esp32_ble_client:078]: [0] [XX:XX:XX:XX:XX:B3] Disconnecting.
[22:38:02][D][esp-idf:000]: W (231580) BT_HCI: hci cmd send: disconnect: hdl 0x0, rsn:0x13
[22:38:02][D][esp-idf:000]: W (231584) BT_APPL: gattc_conn_cb: if=3 st=0 id=3 rsn=0x16
[22:38:02][D][esp-idf:000]: W (231585) BT_APPL: gattc_conn_cb: if=4 st=0 id=4 rsn=0x16
[22:38:02][D][esp-idf:000]: W (231587) BT_APPL: gattc_conn_cb: if=5 st=0 id=5 rsn=0x16
[22:38:02][I][bluetooth_proxy:250]: [0] [XX:XX:XX:XX:XX:B3] Connecting v3 with cache
[22:38:02][D][esp-idf:000]: W (231602) BT_HCI: hcif disc complete: hdl 0x0, rsn 0x16
[22:38:02][D][esp32_ble_tracker:216]: Pausing scan to make connection...
[22:38:02][I][esp32_ble_client:064]: [0] [XX:XX:XX:XX:XX:B3] 0x00 Attempting BLE connection[22:38:02][W][bluetooth_proxy:236]: [0] [XX:XX:XX:XX:XX:B3] Connection request ignored, already connecting
[22:38:03][D][esp32_ble_tracker:327]: Starting scan...
[22:38:03][D][esp-idf:000]: E (232779) BT_L2CAP: slave connection parameters update failed, the parameters are out of range
[22:38:03][D][esp-idf:000]: E (232804) BT_APPL: service change write ccc failed
[22:38:03][W][bluetooth_proxy.connection:101]: [0] [XX:XX:XX:XX:XX:B3] Error writing char/descriptor at handle 0x430, status=5
[22:38:03][I][esp32_ble_client:078]: [0] [XX:XX:XX:XX:XX:B3] Disconnecting.
[22:38:03][D][esp-idf:000]: W (233182) BT_HCI: hci cmd send: disconnect: hdl 0x0, rsn:0x13
[22:38:03][D][esp-idf:000]: W (233187) BT_APPL: gattc_conn_cb: if=3 st=0 id=3 rsn=0x16
[22:38:03][D][esp-idf:000]: W (233189) BT_APPL: gattc_conn_cb: if=4 st=0 id=4 rsn=0x16
[22:38:03][D][esp-idf:000]: W (233193) BT_APPL: gattc_conn_cb: if=5 st=0 id=5 rsn=0x16
[22:38:03][W][bluetooth_proxy:240]: [0] [XX:XX:XX:XX:XX:B3] Connection request ignored, device is disconnecting
[22:38:03][D][esp-idf:000]: W (233221) BT_HCI: hcif disc complete: hdl 0x0, rsn 0x16
[22:38:04][I][bluetooth_proxy:250]: [0] [XX:XX:XX:XX:XX:B3] Connecting v3 with cache
[22:38:04][D][esp32_ble_tracker:216]: Pausing scan to make connection...
[22:38:04][I][esp32_ble_client:064]: [0] [XX:XX:XX:XX:XX:B3] 0x00 Attempting BLE connection
[22:38:04][D][esp32_ble_tracker:327]: Starting scan...
[22:38:04][D][esp-idf:000]: E (234394) BT_L2CAP: slave connection parameters update failed, the parameters are out of range
[22:38:04][D][esp-idf:000]: E (234410) BT_APPL: service change write ccc failed
[22:38:05][W][bluetooth_proxy.connection:101]: [0] [XX:XX:XX:XX:XX:B3] Error writing char/descriptor at handle 0x430, status=5
[22:38:05][I][esp32_ble_client:078]: [0] [XX:XX:XX:XX:XX:B3] Disconnecting.
[22:38:05][D][esp-idf:000]: W (234827) BT_HCI: hci cmd send: disconnect: hdl 0x0, rsn:0x13
[22:38:05][D][esp-idf:000]: W (234831) BT_APPL: gattc_conn_cb: if=3 st=0 id=3 rsn=0x16
[22:38:05][D][esp-idf:000]: W (234834) BT_APPL: gattc_conn_cb: if=4 st=0 id=4 rsn=0x16
[22:38:05][I][bluetooth_proxy:250]: [0] [XX:XX:XX:XX:XX:B3] Connecting v3 with cache
[22:38:05][D][esp32_ble_tracker:216]: Pausing scan to make connection...
[22:38:05][I][esp32_ble_client:064]: [0] [XX:XX:XX:XX:XX:B3] 0x00 Attempting BLE connection
[22:38:05][D][esp-idf:000]: W (235014) BT_HCI: hcif disc complete: hdl 0x0, rsn 0x3e
[22:38:05][W][bluetooth_proxy:236]: [0] [XX:XX:XX:XX:XX:B3] Connection request ignored, already connecting
[22:38:06][D][esp-idf:000]: W (236007) BT_HCI: hcif disc complete: hdl 0x0, rsn 0x3e
[22:38:07][D][esp-idf:000]: W (237012) BT_HCI: hcif disc complete: hdl 0x0, rsn 0x3e
[22:38:08][D][esp32_ble_tracker:327]: Starting scan...
[22:38:08][D][esp-idf:000]: E (238053) BT_L2CAP: slave connection parameters update failed, the parameters are out of range
[22:38:08][D][esp-idf:000]: E (238105) BT_APPL: service change write ccc failed
[22:38:08][W][bluetooth_proxy.connection:101]: [0] [XX:XX:XX:XX:XX:B3] Error writing char/descriptor at handle 0x430, status=5
[22:38:09][I][esp32_ble_client:078]: [0] [XX:XX:XX:XX:XX:B3] Disconnecting.
[22:38:09][D][esp-idf:000]: W (238502) BT_HCI: hci cmd send: disconnect: hdl 0x0, rsn:0x13
[22:38:09][D][esp-idf:000]: W (238505) BT_APPL: gattc_conn_cb: if=3 st=0 id=3 rsn=0x16
[22:38:09][D][esp-idf:000]: W (238506) BT_APPL: gattc_conn_cb: if=4 st=0 id=4 rsn=0x16
[22:38:09][D][esp-idf:000]: W (238507) BT_APPL: gattc_conn_cb: if=5 st=0 id=5 rsn=0x16
[22:38:09][D][esp-idf:000]: W (238561) BT_HCI: hcif disc complete: hdl 0x0, rsn 0x16
dbuezas commented 1 year ago

The missing serial is most likely because it is fetched only once during boot. If you restart HA or reload the device it should also be populated (or force it with the button as you did) Code: https://github.com/dbuezas/eq3btsmart/blob/f7a3b933f86282216b7bd67fd9e22c2373d674b5/custom_components/dbuezas_eq3btsmart/sensor.py#L119

psychowood commented 1 year ago

The "fetch" button should or should not cause it to reload? The log above is related to the fact that I issued the "fetch" command but the entity kept being unavailable.

dbuezas commented 1 year ago

The serial and fw version are queried through a different gatt message so, no. The fetch button "only" fetches current state, eco/comfort temps and the like. Also schedules are handled through a different command (that's why it has a dedicated button too)

psychowood commented 1 year ago

Ok thanks. In that case perhaps I'd like to suggest:

Moreover, if you know that some firmware versions does not expose specific data, perhaps replacing the generic "unavailable" with something like "unsupported" could help to identify technical issues and reduce the background noise.

dbuezas commented 1 year ago

Fair suggestions. I'm unfortunately short on time now, so I'll take a PR if anybody is interested :)