AirPods stopped working with macOS
So just few days ago my AirPods stopped connecting to Mac after more than 6 month of problem-free experience. They worked without any problems the night before the bug occurred, they work now with iPhone and iPad and they even work on MacBook in Bootcamp with Windows 10, but they stopped working with macOS Sierra 10.12.6 (Since then I've updated to macOS High Sierra 10.13.3 and the problem is still there).
I’ve tried to remove them from Bluetooth, tried to reset Bluetooth module from debug menu, tried to delete .plist files, restarted, reset PRAM and SMC, ran FirstAid in diskutility under recovery partition, created new user to test, even update to the latest OS 10.13.3 - nothing works. They connect to Mac for a few seconds, but I cannot switch audio output to AirPods, they just disconnect.
Ran Bluetooth Explorer and it usually returns something like:
AirPods connected, handle: 0xB
2018-02-24 23:45:29 +0000 Mode change 11 for handle: 0x2
2018-02-24 23:45:42 +0000 Mode change 11 for handle: 0x0
2018-02-24 23:45:42 +0000 Handle: 0xB disconnected, reason: 0x16
AirPods disconnected
AirPods connected, handle: 0xC
2018-02-27 21:21:48 +0000 Handle: 0xC disconnected, reason: 0x16
AirPods disconnected
On a somewhat consistent basis I can make AirPods to stop disconnecting after few seconds if I rename executable file "bluetoothaudiod" in hidden folder /usr/sbin/. If I do this, AirPods stay connected, but I cannot select them as audio output anyway. But at least that might be a hint where the problem lies?
Recent issue is that when I'm pressing connect AirPods pop-up window appears and it says: Bluetooth keyboard setup - There isn't a keyboard connected. So now this shitOS think that I'm trying to connect wireless keyboard and not AirPods, great!
Since the only place where they don't work is macOS it's most likely a software bug. I've contacted support on twitter, sent feedback on website, but now I'm out of ideas. Any help?