ble_monitor: LYWSD03 with PVVX custom not working

I’m using ble_monitor 0.9.9 and pvvx 1.7 (tried with all pvvx versions). I’ve enabled report_unkown and set log level to info for the component.

When I set advertising type to custom the device is not read and no entries shown in HA log for the device’s MAC. Once I switch to mi the device is readable again, and some UNKNOWN entries start to appear in the logs:

	95	2021-01-26	13:53:40	 INFO (Thread-5) [custom_components.ble_monitor] UNKNOWN dataobject from DEVICE: LYWSD03MMC, MAC: A4C13822EA5D, ADV: 043e5e0d021300005dea2238c1a40100ff7fc600000000000000000016151695fe50305b052a5dea2238c1a40a10013702890a130000fa2a2238c1a40100ff7fb600000000000000000016151695fe50305b0504fa2a2238c1a40a10011f000000
	96	2021-01-26	13:53:40	 INFO (Thread-5) [custom_components.ble_monitor] UNKNOWN dataobject from DEVICE: LYWSD03MMC, MAC: A4C13822EA5D, ADV: 043e5e0d021300005dea2238c1a40100ff7fc600000000000000000016151695fe50305b052a5dea2238c1a40a10013702890a130000fa2a2238c1a40100ff7fb600000000000000000016151695fe50305b0504fa2a2238c1a40a10011f000000
	98	2021-01-26	13:54:30	 INFO (Thread-5) [custom_components.ble_monitor] UNKNOWN dataobject from DEVICE: LYWSD03MMC, MAC: A4C13822EA5D, ADV: 043e5e0d021300005dea2238c1a40100ff7fba00000000000000000016151695fe50305b052f5dea2238c1a40a10013602810a13000038006538c1a40100ff7fb000000000000000000016151695fe50305b05db38006538c1a40d1004dc008301
	99	2021-01-26	13:54:30	 INFO (Thread-5) [custom_components.ble_monitor] UNKNOWN dataobject from DEVICE: LYWSD03MMC, MAC: A4C13822EA5D, ADV: 043e5e0d021300005dea2238c1a40100ff7fba00000000000000000016151695fe50305b052f5dea2238c1a40a10013602810a13000038006538c1a40100ff7fb000000000000000000016151695fe50305b05db38006538c1a40d1004dc008301

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16

Most upvoted comments

0.9.11 has been released, which fixes this issue.

Will be included in the next update.

I found the issue, it’s due to the extended (extra long) format of the advertisements you have. Good news, all data is available. First line is my sensor, second and third are yours.

The bad news, I need to make some modifications for your advertisements. I’ll create an update in the coming days.

--------------------------------------------------------------------------------------------------------------------------------------------------------------
HCI  Evt Len Sub Num Evt  Peer -------MAC-------        RSSI                   Len Len AD  Xiaomi ------MAC--------  ---------------PAYLOAD---------------- RSSI
type code    evt rep type addr                                                        Type  UUID                       Temp   Hum   Volt   Batt Count Flag   
--------------------------------------------------------------------------------------------------------------------------------------------------------------

 04   3e 1f  02  01   00  00  f4 83 02 38 c1 a4                                13  12  16  1a 18  f4 83 02 38 c1 a4    a9 06  69 11  b6 0b  58    f7   0d   de
 04   3e 2d  0d  0113 00  00  5d ea 22 38 c1 a4 0100ff7f c4 000000000000000000 13  12  16  1a 18  5d ea 22 38 c1 a4    c0 08  3a 0d  4b 0a  30    ae   04
 04   3e 2d  0d  0113 00  00  5d ea 22 38 c1 a4 0100ff7f c6 000000000000000000 13  12  16  1a 18  5d ea 22 38 c1 a4    ad 08  b3 0d  40 0a  2f    62   04

Thanks, I’ll look into it tonight.