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

CGG1 slow response #477

Closed
archiespb opened this issue Aug 15, 2021 · 8 comments
Closed

CGG1 slow response #477

archiespb opened this issue Aug 15, 2021 · 8 comments

Comments

@archiespb
Copy link

I have a CGG1-M. It works fine with MI Home and Qingping apps, but in HA I see very slow response to the temperature and/or humidity change up to getting "unknown" value for 5-10 minutes after HA restart.
So I can't make right and responsive automations.

@Ernst79
Copy link
Collaborator

Ernst79 commented Aug 15, 2021

There are different version of the CGG1 and users have reported different broadcast intervals, some say that it only sends 1 advertisement per 10 minutes. I would recommend using the alternative ATC firmware, see e.g. https://github.com/pvvx/ATC_MiThermometer this allows you to set the interval to whatever you want.

@archiespb
Copy link
Author

Why there is no problems with advertisement interval in MI Home and Qingping apps?
Also I tried to flash alternative firmware and failed (
pvvx/pvvx.github.io#5 (comment)

@Ernst79
Copy link
Collaborator

Ernst79 commented Aug 15, 2021

You are sure it is the M version? Other than that, do you have other sensors that are working fine, or is this the first sensor? It might also be a reception issue, either sensor being too far away or a SSD drive close to your Bluetooth dongle, causing interference.

@archiespb
Copy link
Author

Yes, I'm sure. It has a qingping logo and encryption and works with MI Home.
Yes, I also have an old CGG1 version (without encryption and logo) and it works fine with HA. And Telink flasher doesn't recognize it.
I have only ssd in laptop located pretty far from raspberry pi with HA.

@Ernst79
Copy link
Collaborator

Ernst79 commented Aug 15, 2021

Ok, just to be sure, it does work occasionally, but very slow updates. Or does it never work.

try to enable report_unknown for xiaomi and later for qingping, to check if they changed the format. You will have to enable debug logging in HA as well, see the faq for instructions.

@archiespb
Copy link
Author

It does work occasionally, but very slow updates, right.

What info I should extract from log?

@Ernst79
Copy link
Collaborator

Ernst79 commented Aug 15, 2021

Report_unknown option will report unknown formatted messages of xiaomi or qingping devices, they might have changed the format. But if it works occasionally, I suspect an reception issue. Try to place it closer, to see if that improves thing, just to make sure.

@archiespb
Copy link
Author

I think issue can be closed. I didn't find nothing strange in logs, but I finally flashed the device with instruction (pvvx/ATC_MiThermometer#41 (comment)) and tuned tx power and advertisement interval to relevant values.

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

2 participants