You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like a lot of people using Shelly devices as BLE gateway are experiencing problems of data not being collected consistently (it seems that this affects also native Shelly users).
After a lot of investigation, I convinced myself that there might be a desynchronization between the scan window and the instant the sensor sends packets. I sniffed the packets sent by the sensor (in my case Shelly BLU H&T) directly with my phone and discovered that:
If I press the button, it sends about 40 messages with an interval of about 20-30 ms.
If I wait for the minute to expire, 6 messages are sent with an interval of 150 ms.
I open the script that HA puts on the Shelly for scanning and check the scan parameters, probably are the default ones (that would explain why also Shelly native users are experiencing issues):
Interval: 320 ms (pause between each window)
Window: 30 ms (how much time the antenna listens for messages)
With these parameters is reasonable that the scan could miss all 6 messages for several minutes (even hours).
After several trials and errors I set the interval to 200 ms and the window to 50 ms.
Now data is collected consistently:
What version of Home Assistant Core has the issue?
ALL probably
What was the last working version of Home Assistant Core?
N/A
What type of installation are you running?
Home Assistant Container
Integration causing the issue
Shelly
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered:
Code owners of shelly can trigger bot actions by commenting:
@home-assistant close Closes the issue.
@home-assistant rename Awesome new title Renames the issue.
@home-assistant reopen Reopen the issue.
@home-assistant unassign shelly Removes the current integration label and assignees on the issue, add the integration domain after the command.
@home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
@home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.
The problem
Looks like a lot of people using Shelly devices as BLE gateway are experiencing problems of data not being collected consistently (it seems that this affects also native Shelly users).
Possibly related issues: #119878, #123841
After a lot of investigation, I convinced myself that there might be a desynchronization between the scan window and the instant the sensor sends packets. I sniffed the packets sent by the sensor (in my case Shelly BLU H&T) directly with my phone and discovered that:
If I press the button, it sends about 40 messages with an interval of about 20-30 ms.
If I wait for the minute to expire, 6 messages are sent with an interval of 150 ms.
I open the script that HA puts on the Shelly for scanning and check the scan parameters, probably are the default ones (that would explain why also Shelly native users are experiencing issues):
Interval: 320 ms (pause between each window)
Window: 30 ms (how much time the antenna listens for messages)
With these parameters is reasonable that the scan could miss all 6 messages for several minutes (even hours).
After several trials and errors I set the interval to 200 ms and the window to 50 ms.
Now data is collected consistently:
What version of Home Assistant Core has the issue?
ALL probably
What was the last working version of Home Assistant Core?
N/A
What type of installation are you running?
Home Assistant Container
Integration causing the issue
Shelly
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: