BLE to MQTT parsing

Hello
I have a BLE gateway that reads BLE device advertisements and forwards them to MQTT.
https://wiki.aprbrother.com/en/AB_BLE_Gateway_V4.html#description

I am trying to understand how to parse its payload in HA so that I can use it to detect my phone’s presence on approach to the house.

It can send data both in JSON and MessagePack format. In JSON it looks similar to this:

{"v":1,"mid":3967,"time":1626710839,"ip":"192.168.1.117","mac":"94B97E56838C","devices":[[2,"52EF4166D6B9",-92,"1AFF4C000215B722B840712C40779CB70AEE0E06900000640001C5"]]}

The beacon UUID is in the 1AFF4C000215B722B840712C40779CB70AEE0E06900000640001C5 string (b722b840-712c-4077-9cb7-0aee0e069000).
How can I parse this so that it sets the binary sensor to true if it matches the UUID of the phone?