Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random disconnections #7

Open
mimmus68 opened this issue Oct 26, 2019 · 5 comments
Open

Random disconnections #7

mimmus68 opened this issue Oct 26, 2019 · 5 comments

Comments

@mimmus68
Copy link

I found another problem that after a while the sensor works correctly, it loses the connection and I have to restart hassio to make it work again.
I also found the same problem with the round sensor and solved it with a custom component
https://community.home-assistant.io/t/xiaomi-mijia-bluetooth-temperature-humidity-sensor-compatibility/43568/147

There are possible solutions

thanks

I attach a custom component file

mi_bt.zip

@h4
Copy link
Owner

h4 commented Oct 26, 2019

Thanks! I'll hope this sample helps me to fix my component.

@h4
Copy link
Owner

h4 commented Oct 27, 2019

So, I looked at this component, it uses BLE-advertising instead of subscription (which my component uses). Pros: it may be more stable, Cons: it can't deal with extended data (like time, units, history).

Thanks again for help. I am hope, I can fix disconnect errors soon.

@clau-bucur
Copy link

Have you switched to using BLE-advertising?

@h4
Copy link
Owner

h4 commented Jan 8, 2020

@clau-bucur no, but if you looking for it – please see #12, there are an link to alternative component, which supports it.

@clau-bucur
Copy link

Thank you! I've installed that and it's working nicely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants