Great tutorial, thank you so much!
I am running into an issue though: if I do "Forget This Device" from my phone, the bluetooth unpairs but the rapsberry pi stores the MAC address of that device, so that the following time I want to pair it, it gives me an error "Pairing Unsuccessful". The only way around it is to manually remove the MAC address from that device from the raspberry pi. Is there a way to have the pi automatically remove any known devices when they disconnect? Or any other way around?
I know I should only do "disconnect" instead of "forget this device" but I am trying to make this as robust as possible.
PS: I would add in this tutorial how to edit the bluetooth name of the device (see here: https://www.hackster.io/highvoltages/ho ... ame-aa5966