#Bluetooth Beacon ID doesn't match app UUID

1 messages · Page 1 of 1 (latest)

lime river
#

In the companion app under Bluetooth Beacon sensors, my UUID is showing as 876b5500-b7e5-4f37-961e-1ba781cd12f

The problem though is that this is not the same format as the ID that gets reported through mqtt_room. The ID i need to use to match against this is 876b5500b7e54f-3796-1e1b-a781-cd12df-100-1

Does anyone know what is causing this?

#

Bluetooth Beacon ID doesn't match app UUID

ivory hatch
#

The full id includes minor and major

ivory hatch
lime river
#

Ah so it is, but then why is the format of the UUID different?

#

876b5500-b7e5 at the start vs 876b5500b7e54f

#

So if I look in my app:

Under Attributes - > 876b5500-b7e5-4f37-961e-1ba781cd12df_100_1

Uuid -> 876b5500-b7e5-4f37-961e-1ba781cd12df

and then in MQTT

{
  "id":"876b5500b7e54f-3796-1e1b-a781-cd12df-100-1",
  "name":"",
  "distance":17.78279
}
ivory hatch
lime river
#

the format of it

#

so the app shows characters 8-4

#

but the actual id reported in mqtt is 14-4

ivory hatch
#

what does the server show?

lime river
#
{
  "id":"876b5500b7e54f-3796-1e1b-a781-cd12df-100-1",
  "name":"",
  "distance":17.78279
}
ivory hatch
#

oh beacon monitor?

#

i cant speak for mqtt but the app just combines uuid, major and minor into a standard format and sends that over

lime river
#

OK, back to the start.

I have ESPHomes, with a custom lambda function like so: https://gist.github.com/greghesp/29a395d8aee9d525faddab18a5955764

Basically, it takes the broadcast beacon and sends it to MQTT.

the id that is logged by that function though is
Sending MQTT room update for '' (df12cd81a71b1e-9637-4fe5-b700-556b87-100-1): 12.589m (-91 rssi)

Different format. Im 99% sure its not my lambda function, as i dont think its changing the format of it

Gist

Lambda Function for BT Beacon to MQTT Broadcast for Home Assistant mqtt_room - device.yml

ivory hatch
#

were nt adding any hyphens at all, just an underscore wehn we combine things

lime river
#

:/ So how on earth is ESPHome getting a different format to that in the app