Closed Gobolin80 closed 3 years ago
Please enable debug logging and show you logs. And was it working with the normal firmware?
Hi @Ernst79 , thanks for your attention. With normal firmware it worked fine, but I upgraded it to change refresh data frequency (from 10 minutes to 1).
In my log I'm seeing this:
2020-10-04 16:51:22 DEBUG (SyncWorker_18) [custom_components.mitemp_bt.sensor] Starting 2020-10-04 16:51:24 DEBUG (SyncWorker_18) [custom_components.mitemp_bt.sensor] Spawning HCIdump thread(s). 2020-10-04 16:51:24 DEBUG (SyncWorker_18) [custom_components.mitemp_bt.sensor] HCIdump thread: Init 2020-10-04 16:51:24 DEBUG (SyncWorker_18) [custom_components.mitemp_bt.sensor] HCIdump thread: Init finished 2020-10-04 16:51:24 DEBUG (SyncWorker_18) [custom_components.mitemp_bt.sensor] Starting HCIdump thread for hci0 2020-10-04 16:51:24 DEBUG (Thread-6) [custom_components.mitemp_bt.sensor] HCIdump thread: Run 2020-10-04 16:51:24 DEBUG (SyncWorker_18) [custom_components.mitemp_bt.sensor] HCIdump threads count = 1 2020-10-04 16:51:24 DEBUG (SyncWorker_18) [custom_components.mitemp_bt.sensor] 0 encryptors mac:key pairs loaded. 2020-10-04 16:51:24 DEBUG (SyncWorker_18) [custom_components.mitemp_bt.sensor] 1 whitelist item(s) loaded. 2020-10-04 16:51:24 DEBUG (Thread-6) [custom_components.mitemp_bt.sensor] HCIdump thread: Connection 2020-10-04 16:51:24 DEBUG (Thread-6) [custom_components.mitemp_bt.sensor] HCIdump thread: Connected 2020-10-04 16:51:24 DEBUG (Thread-6) [custom_components.mitemp_bt.sensor] HCIdump thread: start main event_loop 2020-10-04 16:51:25 DEBUG (SyncWorker_18) [custom_components.mitemp_bt.sensor] update_ble called 2020-10-04 16:51:25 DEBUG (SyncWorker_18) [custom_components.mitemp_bt.sensor] First run, skip parsing. 2020-10-04 16:52:25 DEBUG (SyncWorker_9) [custom_components.mitemp_bt.sensor] update_ble called 2020-10-04 16:52:25 DEBUG (SyncWorker_9) [custom_components.mitemp_bt.sensor] Discovering Bluetooth LE devices 2020-10-04 16:52:25 DEBUG (SyncWorker_9) [custom_components.mitemp_bt.sensor] Time to analyze... 2020-10-04 16:52:25 DEBUG (SyncWorker_9) [custom_components.mitemp_bt.sensor] Getting data from HCIdump thread 2020-10-04 16:52:25 DEBUG (SyncWorker_9) [custom_components.mitemp_bt.sensor] HCIdump thread: joining 2020-10-04 16:52:25 DEBUG (Thread-6) [custom_components.mitemp_bt.sensor] HCIdump thread: main event_loop stopped, finishing 2020-10-04 16:52:25 DEBUG (Thread-6) [custom_components.mitemp_bt.sensor] HCIdump thread: Run finished 2020-10-04 16:52:25 DEBUG (SyncWorker_9) [custom_components.mitemp_bt.sensor] HCIdump thread: joined 2020-10-04 16:52:25 DEBUG (SyncWorker_9) [custom_components.mitemp_bt.sensor] Spawning HCIdump thread(s). 2020-10-04 16:52:25 DEBUG (SyncWorker_9) [custom_components.mitemp_bt.sensor] HCIdump thread: Init 2020-10-04 16:52:25 DEBUG (SyncWorker_9) [custom_components.mitemp_bt.sensor] HCIdump thread: Init finished 2020-10-04 16:52:25 DEBUG (SyncWorker_9) [custom_components.mitemp_bt.sensor] Starting HCIdump thread for hci0 2020-10-04 16:52:25 DEBUG (Thread-16) [custom_components.mitemp_bt.sensor] HCIdump thread: Run 2020-10-04 16:52:25 DEBUG (SyncWorker_9) [custom_components.mitemp_bt.sensor] HCIdump threads count = 1 2020-10-04 16:52:25 DEBUG (Thread-16) [custom_components.mitemp_bt.sensor] HCIdump thread: Connection 2020-10-04 16:52:25 DEBUG (Thread-16) [custom_components.mitemp_bt.sensor] HCIdump thread: Connected 2020-10-04 16:52:25 DEBUG (Thread-16) [custom_components.mitemp_bt.sensor] HCIdump thread: start main event_loop 2020-10-04 16:52:26 DEBUG (SyncWorker_9) [custom_components.mitemp_bt.sensor] Finished. Parsed: 2307 hci events, 0 xiaomi devices. 2020-10-04 16:53:26 DEBUG (SyncWorker_62) [custom_components.mitemp_bt.sensor] update_ble called 2020-10-04 16:53:26 DEBUG (SyncWorker_62) [custom_components.mitemp_bt.sensor] Discovering Bluetooth LE devices 2020-10-04 16:53:26 DEBUG (SyncWorker_62) [custom_components.mitemp_bt.sensor] Time to analyze... 2020-10-04 16:53:26 DEBUG (SyncWorker_62) [custom_components.mitemp_bt.sensor] Getting data from HCIdump thread 2020-10-04 16:53:26 DEBUG (SyncWorker_62) [custom_components.mitemp_bt.sensor] HCIdump thread: joining 2020-10-04 16:53:26 DEBUG (Thread-16) [custom_components.mitemp_bt.sensor] HCIdump thread: main event_loop stopped, finishing 2020-10-04 16:53:26 DEBUG (Thread-16) [custom_components.mitemp_bt.sensor] HCIdump thread: Run finished 2020-10-04 16:53:26 DEBUG (SyncWorker_62) [custom_components.mitemp_bt.sensor] HCIdump thread: joined 2020-10-04 16:53:26 DEBUG (SyncWorker_62) [custom_components.mitemp_bt.sensor] Spawning HCIdump thread(s). 2020-10-04 16:53:26 DEBUG (SyncWorker_62) [custom_components.mitemp_bt.sensor] HCIdump thread: Init 2020-10-04 16:53:26 DEBUG (SyncWorker_62) [custom_components.mitemp_bt.sensor] HCIdump thread: Init finished 2020-10-04 16:53:26 DEBUG (SyncWorker_62) [custom_components.mitemp_bt.sensor] Starting HCIdump thread for hci0 2020-10-04 16:53:26 DEBUG (Thread-17) [custom_components.mitemp_bt.sensor] HCIdump thread: Run 2020-10-04 16:53:26 DEBUG (SyncWorker_62) [custom_components.mitemp_bt.sensor] HCIdump threads count = 1 2020-10-04 16:53:26 DEBUG (Thread-17) [custom_components.mitemp_bt.sensor] HCIdump thread: Connection 2020-10-04 16:53:26 DEBUG (Thread-17) [custom_components.mitemp_bt.sensor] HCIdump thread: Connected 2020-10-04 16:53:26 DEBUG (Thread-17) [custom_components.mitemp_bt.sensor] HCIdump thread: start main event_loop 2020-10-04 16:53:26 DEBUG (SyncWorker_62) [custom_components.mitemp_bt.sensor] Finished. Parsed: 2198 hci events, 0 xiaomi devices.
@benkarro, do you have a clue, why it is not being recognized?
@Gobolin80 I don’t see anything strange, other than that it is not being recognized as xiaomi device. Have you verified the MAC address? Latest non beta version of the custom component installed?
Perhaps following the instructions to add new devices gives us more clues. Could you follow these instructions and report the output of the logs?
@benkarro, do you have a clue, why it is not being recognized?
@Gobolin80 I don’t see anything strange, other than that it is not being recognized as xiaomi device. Have you verified the MAC address? Latest non beta version of the custom component installed?
Perhaps following the instructions to add new devices gives us more clues. Could you follow these instructions and report the output of the logs?
Have u remembered to change the setting to mi-like after flashing?
@benkarro I'm feeling so stupid :( I didn't read it, but I could think about it. After setting "mi-like" it works fine. Thanks to all and sorry for this waste of time.
After setting "mi-like" it works fine. Thanks @Ernst79 and @benkarro
I’ve updated the instructions to make this more clear.
Hi to all, I upgraded my LYWSD03MMC with Telink firmware and the device work fine, but home assitant doesn't recive any value for temperature and humidity. This is my config :
I followed all the pass from "how to install guide" (install, stop, start, reboot, ecc), but nothing :(
Any suggestion?
Thank you