-
Notifications
You must be signed in to change notification settings - Fork 33
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
Double reports if the two sensors are updated at different times #51
Comments
I think the component needs to check the |
@dckiller51 I have worked with the author of the Passive BLE Monitor integration such that the weight and impedance sensors update almost simultaneously. custom-components/ble_monitor#617 However, I am still getting 2 updates of this component. All I can think of is that the few milliseconds between the 2 sensors update is sufficient to trigger the 2 updates. Can a delay be added in while the component waits for both sensors to update? |
Currently the component subscribe for states updates for each sensor. On each sensor update all values are calculated. bodymiscale/custom_components/bodymiscale/__init__.py Lines 237 to 244 in d5c03bf
To avoid the second report, we need to change how we subscribe. Probably introduce a delay |
Precisely and you cannot calculate the correct details until both the |
I am occasionally seeing double reports from the component within a few milliseconds of each other.
I wonder if this is caused by the 2 sensors being updated at slightly different times?
Does the component wait for both sensors to be updated before doing the calculations?
The text was updated successfully, but these errors were encountered: