Extending Bluetooth with PiZeroW and bt-mqtt-gateway - need help

Hello,

I have the need to extend the Bluetooth range and I have found this amazing Project: zewelor/bt-mqtt-gateway.

It does exactly what I need! I put a little Raspberry Pi Zero W in each area where I need to extend the bluetooth :slight_smile:

What I did is the following:

  • burnt an SD with Rasbian
  • SSH into the Pi Zero W
  • Installed Python
sudo apt-get install git python3 python3-pip bluetooth bluez
git clone https://github.com/zewelor/bt-mqtt-gateway.git
cd bt-mqtt-gateway
sudo pip3 install -r requirements.txt
  • Create a copy of the config file “to star making around”
cp config.yaml.example config.yaml
sudo nano config.yaml

And not I am here “stacked” … I am struggling to configure the config.yaml and specifically:

mqtt:
  host: 192.168.1.1
  port: 1883
  username: user
  password: password
  #ca_cert: /etc/ssl/certs/ca-certificates.crt # Uncomment to enable MQTT TLS, update path to appropriate location.
  #ca_verify: False              # Verify TLS certificate chain and host, disable for testing with self-signed certificates, default to True
  topic_prefix: hostname         # All messages will have that prefix added, remove if you dont need this.
  client_id: bt-mqtt-gateway
  availability_topic: lwt_topic

I have installed under supervisor the Mosquitto broker Add-on but I have also internet faced with DuckDNS Add-on (including ssl certificate), therefore I am not sure how to configure the host in config file above…

how I specify the https? internally i get to Home Assistant via external url (https://my-home.duckdns.org:8123)

in the sample config, there is a CA_cert field commented out… should I use that?

Please let me know what I should do :slight_smile:

Thank you