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 117 forks source link

LYWSDCGQ support #187

Open hugosbnarciso opened 4 years ago

hugosbnarciso commented 4 years ago

Thank you for your work!

Device name / url Support for Mi Temperature & Humidity Sensor (LYWSDCGQ) Screen Shot 2020-06-07 at 23 47 09

Link to some sample code / lib that supports this device https://github.com/custom-components/sensor.mitemp_bt https://github.com/JsBergbau/MiTemperature2

Functions and features Temperature / Humidity / Battery

Checklist

dhutchison commented 3 years ago

Is this different from the mithermometer that is already supported?

cadavre commented 3 years ago

This indeed is supported by mithermometer.

However, to people using it, what's your update_interval and command_timeout for this? I have:

command_timeout: 120
update_interval: 120

And very often I can see "Time out during update of mithermometer device". :/

dhutchison commented 3 years ago

I have my command timeout as the default, the per_device_timeout as 15, and the update_interval as 300.

Saying that I am seeing more timeouts than I used to.

cadavre commented 3 years ago

I just changed to:

command_timeout: 120
update_interval: 60
per_device_timeout: 30  // added this as previously I had default '6'

And just a single timeout in last hour.