1technophile / OpenMQTTGateway

MQTT gateway for ESP8266 or ESP32 with bidirectional 433mhz/315mhz/868mhz, Infrared communications, BLE, Bluetooth, beacons detection, mi flora, mi jia, LYWSD02, LYWSD03MMC, Mi Scale, TPMS, BBQ thermometer compatibility & LoRa.
https://docs.openmqttgateway.com
GNU General Public License v3.0
3.57k stars 786 forks source link

Missing wiki entry for Mi flora BT LE integraton #185

Closed AKA-47 closed 6 years ago

AKA-47 commented 6 years ago

Hi. I try to get mi flora running with openmqtt gateway on esp32.

the only thing i see pn mqtt is home/BTtoMQTT/C47xxxxx4C2F/name Flower care home/BTtoMQTT/C47xxxxx4C2F -51

so the gate sees the miflora device but nothing else. Do i have to pair it somehow? Shouldn't we create a wiki about this? Pairing within the official app seems not to work...

I'm using version 0.6.2master28022018 (yes i saw the fix "reinit BLE each time we launch a scan to avoid BLE stop" and will recompile later)

any ideas?

1technophile commented 6 years ago

Hello,

did you try to update your mi flora device with the mi flora app

AKA-47 commented 6 years ago

no, because im unable to pair... already tried different smartphones..they all scan the devices but not much more. onetime i was asked to update whithin the app - answered "yes" told me about connection issues.... what about that fe95 "ServiceData"...any way to debug this? i saw there are 2 versions on the market: Chinese and International. I have 2 devices both international version. I dont think that they are both "dead" Maybe this "ServiceData" is just different between the two versions?

1technophile commented 6 years ago

Could you post the log yopu are getting?

AKA-47 commented 6 years ago

...no logs... the only thing i can say with some battery in-out procedure : there is firmware 2.7.0 which want to be upgraded to 3.1.8.. i will try to update somehow...

AKA-47 commented 6 years ago

I am still unable to connect.. do i really need to connect the app? Maybe the SeviceData is just different from the one you found out... I contacted the reseller and he say that he sent the international version... I'm still not sure about this.... I will now again try other devices to maybe get the device updated or are there any other ideas?

AKA-47 commented 6 years ago

..ok now i have FW Version 3.1.8 on my device....it works with OpenMQTT Gateway version 0.6.2 but not higher because of some "Multicore" Problems .. see https://github.com/1technophile/OpenMQTTGateway/issues/186

We should create a Wili entry showing how to use ist:

MQTT Readings: home/BTtoMQTT/C47xxxxxxx2F/name Flower care home/BTtoMQTT/C47xxxxxxx2F/fer 56 home/BTtoMQTT/C47xxxxxxx2F/tem 20.5 home/BTtoMQTT/C47xxxxxxx2F/lux 69 home/BTtoMQTT/C47xxxxxxx2F/hum 18

And VERY Important: TimeBtw_Read to configure the time between readings!

1technophile commented 6 years ago

yes don't hesitate to update the wiki so as to enable others to set it uo easily

1technophile commented 6 years ago

added into the wiki, don't hesitate to amend it if necessary

AKA-47 commented 6 years ago

I found out that we could also read battery stats by raspberry pi. Any plan to implement this on esp?

1technophile commented 6 years ago

I propose you to open an issue requesting for that, if someone wants to help implementing it, he will take the idea. In my side I will focus in the next months on code refactoring and other gateways implementations (lora, gsm)

antibill51 commented 6 years ago

Hi. Is there an example of mi flora integration in home assistant with openmqttgateway? Thanks

AKA-47 commented 6 years ago

I can only give you an openhab 2 example