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

Error recovery improvement suggestions #26

Open
FrugalCoder opened this issue Jul 19, 2023 · 2 comments
Open

Error recovery improvement suggestions #26

FrugalCoder opened this issue Jul 19, 2023 · 2 comments

Comments

@FrugalCoder
Copy link

FrugalCoder commented Jul 19, 2023

I can instantiate a single nearby T/H sensor with no error, thanks. When I add a second Temp only sensor (IBS-TH2), "Slowing homebridge down #19" seems to occur. Same if I specify a T/H sensor with bad address or unreachable.

@FrugalCoder FrugalCoder changed the title Can't Instantiate multiple sensors Error recovery has... holes Jul 22, 2023
@FrugalCoder FrugalCoder changed the title Error recovery has... holes Error recovery improvement suggestions Jul 22, 2023
@SteidlD
Copy link
Owner

SteidlD commented Jul 24, 2023

Hi @FrugalCoder,

actually I got a configuration with 3 sensors (1 with internal and external) running here and I also sometimes see these messages, but it works anyway here. But sometimes it's a bit slow to update the values. My suspect is not the fact having more sensors, but a mechanism I programmed giving back the last cyclically read value with the first read request and on a second read request getting the really actual value per BLE (which takes some time leading in my opinion to the warning). The idea behind this was to rapidly have a value (that might be a few minutes old), but when you force an update on your app (by pulling the screen down) you get a really fresh value. This seems to not work correctly - or maybe it works with one sensor but not with more sensor. I will think about a better way...

Since the newer version of Hoobs with the possibility to easily run several instances of homebrige, the "slowing down" doesn't really have any impact on other plugins if you run them in different instances. So this could be a work around for the time being

@FrugalCoder
Copy link
Author

FrugalCoder commented Jul 24, 2023 via email

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