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

WoContact has incredible delay in reporting events and is missing an entity for the built in button. #82795

Closed
dbfhvsfvdg opened this issue Nov 27, 2022 · 6 comments · Fixed by #84119

Comments

@dbfhvsfvdg
Copy link

dbfhvsfvdg commented Nov 27, 2022

The problem

WoContact reports events with a delay of anywhere from 0 to 30 seconds.
WoContact is also missing an entity for the device's built in button.

What version of Home Assistant Core has the issue?

2022.11.2

What was the last working version of Home Assistant Core?

none

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Switchbot

Link to integration documentation on our website

https://www.home-assistant.io/integrations/switchbot/

Diagnostics information

No option to download diagnostic file is available.

Example YAML snippet

No response

Anything in the logs that might be useful for us?

The logs just list the events, as they are received, with no discernable reason for the issue.

Additional information

No response

@home-assistant
Copy link

Hey there @bdraco, @Danielhiversen, @RenierM26, @murtas, @Eloston, mind taking a look at this issue as it has been labeled with an integration (switchbot) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of switchbot can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Change the title of the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign switchbot Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


switchbot documentation
switchbot source
(message by IssueLinks)

@bdraco
Copy link
Member

bdraco commented Dec 8, 2022

So it looks like the only time it updates is from the scan response.

If we could get them to change the service data to come in as an advertisement whenever it changes on the device this would fix the slowness but it would require change in the switchbot firmware. This would also be a great change because it would make it work with passive scans

@bdraco
Copy link
Member

bdraco commented Dec 10, 2022

I opened an issue here OpenWonderLabs/SwitchBotAPI-BLE#15

@dbfhvsfvdg
Copy link
Author

dbfhvsfvdg commented Dec 11, 2022

Would be nice if they actually did make the change. Guess now we wait.
What about the missing entity for the built in button?

@bdraco
Copy link
Member

bdraco commented Dec 11, 2022

What about the missing entity for the built in button?

It looks like that PR was abandoned #79632

@bdraco
Copy link
Member

bdraco commented Dec 17, 2022

Some of the data is in the manufacturer_data which is pushed more frequently so I added support for that

@bdraco bdraco mentioned this issue Dec 17, 2022
19 tasks
bdraco added a commit that referenced this issue Dec 19, 2022
mkmer pushed a commit to mkmer/HomeAssistant_Core that referenced this issue Dec 30, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jan 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants