SOLUTION FOR DOCKER USERS ONLY:
Step 1:
For Docker Compose users:
Add the following to the Home Assistant container section of your docker-compose.yaml file
command: /bin/sh -c "apk add gcc musl-dev bluez-dev ; /init"
For Unraid users:
Edit your Home Assistant container and add the following to “Post Arguments” (switch the view to Advanced to see this field)
/bin/sh -c "apk add gcc musl-dev bluez-dev ; /init"
For Portainer users:
Add the following to the “Command” field in the “Advanced container settings” section of your Home Assistant container
/bin/sh -c "apk add gcc musl-dev bluez-dev ; /init"
Step 2:
Download the bluetooth_tracker integration files from the home-assistant GitHub. You can do this by going to https://download-directory.github.io and entering the following into the box:
https://github.com/home-assistant/core/tree/dev/homeassistant/components/bluetooth_tracker
Step 3:
Unzip the download, change the directory name to “bluetooth_tracker” and open it.
Step 4:
Replace everything in the manifest.json file with this:
{
"domain": "bluetooth_tracker",
"name": "Bluetooth Tracker",
"codeowners": [],
"documentation": "https://www.home-assistant.io/integrations/bluetooth_tracker",
"iot_class": "local_polling",
"loggers": ["bluetooth", "bt_proximity"],
"requirements": ["bt-proximity==0.2.1", "git+https://github.com/pybluez/pybluez.git#pybluez==0.30"],
"version": "1.0.0"
}
Step 5:
Add the directory to your custom_components directory
Step 6:
Restart Home Assistant and hopefully it works!
EDIT: Removed a step as it’s no longed needed.
EDIT 2: Added Portainer users section to Step 1