ThomDietrich / miflora-mqtt-daemon

Linux service to collect and transfer Xiaomi Mi Flora plant sensor data via MQTT to your smart home system, with cluster support 🌱🌼πŸ₯€πŸ‘🌳
MIT License
606 stars 141 forks source link

`$ sudo hcitool lescan` - Input/Output error #148

Open PeterKawa opened 2 years ago

PeterKawa commented 2 years ago

Hi Thom, Thanks for this neat tool!! It works like a charm i.c.m. Homey.

Just FYI, one thingy I ran into: $ sudo hcitool lescan results in Set scan parameters failed: Input/output error but $ bluetoothctl scan on works OK

( From config.ini and Readme.md): # Scan for sensors from the command line with: # $ sudo hcitool lescan

Cheers, Peter

System: Kernel: 5.4.0-88-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: Cinnamon 5.0.5 wm: muffin dm: LightDM Distro: Linux Mint 20.2 Uma base: Ubuntu 20.04 focal -Bluetooth: Device-2: 2-1.4:4 info: Cambridge Silicon Radio Bluetooth Dongle (HCI mode) type: Bluetooth driver: btusb rev: 2.0 chip ID: 0a12:0001

ThomDietrich commented 2 years ago

Hey, are you saying the command bluetoothctl scan on produces the list of found devices? Best!

PeterKawa commented 2 years ago

It finds one Samsung TV (from my neighbours probably), but no Ble devices. I predefined my Ble devices by MAC, so it looked like it worked, but no data was received. Laptop is 10yrs old, maybe the internal BT device can't handle Ble?. Do you know how to discover this? Hope this kind of helps.