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

Change update interval #2

Open
danps1 opened this issue Jan 17, 2025 · 1 comment
Open

Change update interval #2

danps1 opened this issue Jan 17, 2025 · 1 comment

Comments

@danps1
Copy link

danps1 commented Jan 17, 2025

Hi @adamantivm
I’ve been giving your integration a go, and am absolutely loving it - seems to work very well with my 2x Blue Connect Go, so thanks very much for writing it. One question / suggestion - is there a way to tweak the update interval? It seems to be taking a reading every 15 or 20 mins currently, and I wonder about the impact on battery life? Thanks!

@adamantivm
Copy link
Owner

Hi @danps1 ! I'm very glad this was useful. Frankly, I barely had the time to make it work, and as stated in the README this is just a blatant copy and minimal adaptation of the Yinmik integration.

It would be great to add the option to make the update interval configurable. I don't know how to do that right now. If I get enough time in the future I will try to learn how to do it and add it. I would also gladly accept a contribution that adds that.

In the meantime what you can do is to manually change DEFAULT_SCAN_INTERVAL in const.py within your installation.
It's set to every 30 minutes to preserve device battery. I haven't done any exhaustive tests but based on what I read in forums, that's what seems to be most common, and it works well for my use case.

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