Closed fjvd closed 3 years ago
Hello!
Are you sure the relevant entities did not appear in HA? This sensor sends messages quite rarely (about once every 10 minutes), so you need to look at the log for a longer period. Try to search in the entities list by the text mi_
.
Hi, I have the same problem
Did some more testing today, added a second sensor, stopped HA, Shutdown PI and booted everything. Unfortunately no luck. I do see errors now:
2020-06-25 13:37:07 ERROR (SyncWorker_11) [custom_components.mitemp_bt.sensor] Decryption failed for A4C138E1xxxx, decrypted payload is None 2020-06-25 13:37:07 ERROR (SyncWorker_11) [custom_components.mitemp_bt.sensor] Decryption failed: MAC check failed 2020-06-25 13:37:07 ERROR (SyncWorker_11) [custom_components.mitemp_bt.sensor] token: 14000f71 2020-06-25 13:37:07 ERROR (SyncWorker_11) [custom_components.mitemp_bt.sensor] nonce: 41dde138c1a45b0511000000 2020-06-25 13:37:07 ERROR (SyncWorker_11) [custom_components.mitemp_bt.sensor] encrypted_payload: c66034728200000014000f71 2020-06-25 13:37:07 ERROR (SyncWorker_11) [custom_components.mitemp_bt.sensor] cipherpayload: c660347282
I've double checked the bindkey, this is correct.
The same isuue here. Please help someone. Tried everything even another bluetooth dongle. Bluetooth working fine.
2020-08-27 18:11:36 DEBUG (SyncWorker_1) [custom_components.mitemp_bt.sensor] Starting 2020-08-27 18:11:36 INFO (SyncWorker_1) [custom_components.mitemp_bt.sensor] Attention! Option report_unknown is enabled, be ready for a huge output... 2020-08-27 18:11:36 DEBUG (SyncWorker_1) [custom_components.mitemp_bt.sensor] 2 encryptors mac:key pairs loaded. 2020-08-27 18:11:36 DEBUG (SyncWorker_1) [custom_components.mitemp_bt.sensor] 0 whitelist item(s) loaded. 2020-08-27 18:11:36 DEBUG (SyncWorker_1) [custom_components.mitemp_bt.sensor] Spawning HCIdump thread(s). 2020-08-27 18:11:36 DEBUG (SyncWorker_1) [custom_components.mitemp_bt.sensor] HCIdump thread: Init 2020-08-27 18:11:36 DEBUG (SyncWorker_1) [custom_components.mitemp_bt.sensor] HCIdump thread: Init finished 2020-08-27 18:11:36 DEBUG (Thread-3) [custom_components.mitemp_bt.sensor] HCIdump thread: Run 2020-08-27 18:11:36 DEBUG (Thread-3) [custom_components.mitemp_bt.sensor] HCIdump thread: Connection to hci0 2020-08-27 18:11:36 DEBUG (Thread-3) [custom_components.mitemp_bt.sensor] HCIdump thread: Connected to hci0 2020-08-27 18:11:36 DEBUG (Thread-3) [custom_components.mitemp_bt.sensor] HCIdump thread: start main event_loop 2020-08-27 18:12:37 DEBUG (SyncWorker_6) [custom_components.mitemp_bt.sensor] 0 Xiaomi BLE ADV messages processed for 0 xiaomi device(s). 2020-08-27 18:13:37 DEBUG (SyncWorker_6) [custom_components.mitemp_bt.sensor] 0 Xiaomi BLE ADV messages processed for 0 xiaomi device(s).
And lst message i'm getting every minute.
I don't have any sensor in HA. Hardaware seems working fine.
Configuration `sensor:
I'm having the same problem
2020-09-28 11:22:04 ERROR (SyncWorker_25) [custom_components.mitemp_bt.sensor] Decryption failed: MAC check failed 2020-09-28 11:22:04 ERROR (SyncWorker_25) [custom_components.mitemp_bt.sensor] token: bb60xxxx 2020-09-28 11:22:04 ERROR (SyncWorker_25) [custom_components.mitemp_bt.sensor] nonce: 6b6a2a38c1a45b0501000000 2020-09-28 11:22:04 ERROR (SyncWorker_25) [custom_components.mitemp_bt.sensor] encrypted_payload: b8d23abb54000000bb60xxxx 2020-09-28 11:22:04 ERROR (SyncWorker_25) [custom_components.mitemp_bt.sensor] cipherpayload: b8d23axxxx 2020-09-28 11:22:04 ERROR (SyncWorker_25) [custom_components.mitemp_bt.sensor] Decryption failed for A4C1382Axxxx, decrypted payload is None
after that i can see some unknown adv 2020-09-28 12:07:59 INFO (SyncWorker_13) [custom_components.mitemp_bt.sensor] BLE ADV from UNKNOWN: RSSI: -41, MAC: A4C1382Axxxx, ADV: 043e1f020100006b6a2a38c1a4130201060f1695fe30585b16006b6a2a38c1a408d7 2020-09-28 12:08:59 INFO (SyncWorker_20) [custom_components.mitemp_bt.sensor] BLE ADV from UNKNOWN: RSSI: -44, MAC: A4C1382Axxxx, ADV: 043e1f020100006b6a2a38c1a4130201060f1695fe30585b16006b6a2a38c1a408d4 2020-09-28 12:10:00 INFO (SyncWorker_2) [custom_components.mitemp_bt.sensor] BLE ADV from UNKNOWN: RSSI: -41, MAC: A4C1382Axxxx, ADV: 043e1f020100006b6a2a38c1a4130201060f1695fe30585b16006b6a2a38c1a408d7 2020-09-28 12:15:01 INFO (SyncWorker_20) [custom_components.mitemp_bt.sensor] BLE ADV from UNKNOWN: RSSI: -44, MAC: A4C1382Axxx, ADV: 043e1f020100006b6a2a38c1a4130201060f1695fe30585b16006b6a2a38c1a408d4
Im using "homeassistant/raspberrypi3-homeassistant" docker on raspberry pi 3
Sorry for the late response, but @Magalex2x14 is away at the moment. For now, I think the easiest way is to install the custom Telink firmware, which removes the need for the encryptor key. You can also increase the message time.
I got the same issue: firstly (about a week) one of my 4 devices, and this weekend the remaining 3 devices stopped reporting
@vdiogo Please check your encryption key again. It sometimes can change (e.g. changing battery).
Please let us know if you managed to solve your problems, or do you still need help?
Closing this issue now. Feel free to open an new issue if you still having issues.
@vdiogo Please check your encryption key again. It sometimes can change (e.g. changing battery).
Sorry for late answer: encryption key is the same, device merely stopped answering (it happened in 4 devices)
Perhaps connection issues. Try to see if they work when you move them closer.
Just wanted to let you all know that flashing the mija devices and upgrading homeassistant & python did the trick for me. Thanks for the support, it's awesome!
Perhaps connection issues. Try to see if they work when you move them closer.
They worked well for 3-4 months and stopped working all of the sudden. Don't think moving them will make any difference
Did you start using an SSD? They can interfere with the BT signal.
Did you start using an SSD? They can interfere with the BT signal.
Yes I did: don't recall exactly when but should have been around the same time. How can I avoid it?
That most likely explains it, SSD turn out to be interfering with the Bluetooth signal (I had the same issue). The FAQ gives a few hints to solve this.
Especially SSD devices are known to affect the Bluetooth reception, try to place your SSD drive as far as possible from your Bluetooth tranceiver.
What you can try is using a long cable for your SSD or using an external Bluetooth adapter, preferable with an USB extension cable. Main goal is to get the SSD as far away as possible compared to the Bluetooth radio.
I have HA running on Raspberry Pi OS and want to connect to LYWSD03MMC devices. It seems somehow it can't connect:
Configuration:
In the hcitrace.txt file is see the sensor showing up many times:
Python:
System:
Any ideas?