serrj-sv / lumi.gateway.mgl03

Xiaomi Gateway v3
115 stars 40 forks source link

Bluetooth devices data #8

Open TDenisM opened 3 years ago

TDenisM commented 3 years ago

Hi, where can I get data of connected bluetooth devices (e.g. Xiaomi Mi Flora)? On the old original firmware it was possible to get it with this command killall silabs_ncp_bt; silabs_ncp_bt /dev/ttyS1 1 On new custom firmware I get nothing from ble devices.

AlexxIT commented 3 years ago

Do you use my component? If gateway was rebooted after HA start - BLE data stops coming. Known bug. Will be fixed someday.

TDenisM commented 3 years ago

No - I use Nodered for data gathering. Where can I find data inside gateway?

TDenisM commented 3 years ago

Ok, I installed HA, HACS, your component for Gateway 3 - as a result I can get info from 1 device of 4, moreover - I can see only one parameter (Conductivity) of 4 (Conductivity, humidity, temperature, ambient brightness), more moreover - the value of the parameter doesn't update - it differ from the actual value in Xiaomi app. I don't know where the problem is - in gateway firmware or in component. You've done a huge job - it's really amazing but let's do a little more to fix this issue with BLE. :-) If you need any debug info to fix it, I can provide it for you.

UPDATE. I occasionally noticed MQTT message with data from MiFlora device - the data is equvivalent to that I see in HA component - so the problem is not in component but in firmware.

plutosherry commented 3 years ago

me too. After I upgraded 1.4.7_0115, the same problem occurred. The data of the Bluetooth device could not be obtained and updated, even after adding it again.

plutosherry commented 3 years ago

By the way, my previous use of mgl03_1.4.7_0065_mod20201211 has been normal.