zewelor / bt-mqtt-gateway

A simple Python script which provides a Bluetooth to MQTT gateway, easily extensible via custom workers. See https://github.com/zewelor/bt-mqtt-gateway/wiki for more information.
MIT License
549 stars 116 forks source link

miflora: Allow using different host adapter #254

Closed philmd closed 2 years ago

philmd commented 2 years ago

Description

Currently MifloraWorker is hardcoded to the 'hci0' adapter.

Since hosts might have multiple adapters, allow selecting a different one via the config.yaml.

Example:

miflora:
  update_interval: 300
  args:
    adapter: hci3
    devices:
      myplant: AA:BB:CC:DD:EE:FF

Type of change

Signed-off-by: Philippe Mathieu-Daudé f4bug@amsat.org

zewelor commented 2 years ago

Thanks