-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
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
Switchbot Curtains delay. i now have a delay between each one and not always firing after upgrading to HAOS 10+ (reverting to 9.5 fixes) #92839
Comments
Hey there @bdraco, @Danielhiversen, @RenierM26, @murtas, @Eloston, @dsypniewski, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) switchbot documentation |
I also notice a delay between 2 curtains in one group. I was just assuming it was HA connecting with the switchbots (since I don't think they have an always active connection) and since I only have 1 double curtain and they are too heavy, it's never directly closed so it didn't really bother me, as long as they are closed at the end. But it could be an issue with HA, not sure. |
Mine close most of the time. its just before when i pressed the scene button for example all the curtains would close at the same time and at sundown everything would go. now it does everything non switchbot so lights and ikea blinds etc all simultaneously and then after a few moments the 1st switchbot closes and then after that there is a pause for a while then another etc etc. originally they would all close at the same time. i've looked at the scene and the schedule and it's not closing them in the order of that so it does seem random. completely agree with the slight delay i used to notice that and put that down to the having to talk etc. |
Just made some debug logs, It took a fair moment for the other curtain to start closing. When opening them while they are closing, it works instantly (hence why I think the delay is caused by connecting to the curtains. |
If you don't have an adapter from the high performance list, connecting will be slow https://www.home-assistant.io/integrations/bluetooth/#known-working-high-performance-adapters |
I've got a zexmte unit. It's not high speed but it used to be able to close them all at the same time not in succession. So if I need to get something else not a problem but don't want to spend money on other adapters if its something with my configuration etc. |
realtek has promised a firmware update for 2 years to fix the reliability issues with the RTL8761Bs (likely the chip in your adapter).. but we are still waiting .. |
I use this one for my production setup |
Do you notice any delay in anything, for example if you had a scene with multiple switchbot curtains would they all start to close at the same time etc?
|
I've purchased this usb adaptor from amazon after bdraco's advice https://www.amazon.co.uk/Plugable-USB-BT4LE-Bluetooth-Energy-Adapter/dp/B009ZIILLI and installed it and everything still works but I'm still getting the delay. once its connected its instant if i press stop or the other direction. |
At least with mine, if they are paired only one of them actually operates both of them. If you don't pick the one the app set up as the parent device it will only operate the child device. |
I've probably worded that wrong. it does both curtains as in left and right when i close. it just wont do multiple different curtains at the same time. for example in my lounge i have some patio curtains (pair) and some some side curtains again a pair. when use to click on patio then side at the same time it would close all 4 curtains at the same time. not when i do it, it will close the pair of curtains i clicked first. then once they have closed it then does the other pair. also I've just rebooted as i realised HA was still saying that it was using the Realtek device even though i had swapped the units. so its now found the new usb adaptor i got tonight and it's still happening and the delay from button to close is also greater now for some reason so the old adaptor seems to negotiate quicker! |
i've just roughly timed it and it seems to be the following it probably doesn't sound a lot but when the curtains take 20 seconds say to close then add this with the extra 15 seconds to each one and then 9 odd curtains its like 3 or 4 mins to close them all and then it starts failing. |
I would have picked one of the csr based adapters as they generally have the best performance. I haven’t had much luck with the Broadcom ones establishing connections at the same time If you need to establish connections simultaneously the best bet is one adapter per device. This is best accomplished with esphome proxies |
I've just ordered that one to see if there is a difference at all |
SABRENT USB Bluetooth 4.0 Adapter Dongle for PC Laptop Desktop Computer Mouse Keyboard Headphone Controller, Support Windows, Mac, Plug and Play (BT-UB40) https://amzn.eu/d/ipvW2s8 This arrived today. I've set it up rebooted host but still getting big delays when I click on a curtain some times seems to take longer and will still only close one pair at a time. |
any suggestions or anything else i can supply to assist? can you confirm that if you did 2 or 3 different pairs of curtains they would all clost at the same time in different rooms is i just mine that's not working? |
@ins4neuk I am suffering from exactly the same problem. |
Its weird. it's almost like it can only speak to one unit and needs to wait for the response before doing anything else by which time the requests have timed out. since then i've added the curtains into smartthing and then use the smartthings integration which is cloud api based i'm guessing and they work fine can close multiple curtains and only a 3 or 4 second delay. i've tired like i said 3 different chipset variations of bluetooth adaptors to no avail. |
Since this was working just fine before, why are we blaming the bluetooth adaptors? |
i was thinking it was something with HA like that, they had altered timeouts or something so stuff doesn't time out on items which has then impacted the switchbot thing. or maybe a switchbot update even. but i have tried 1 of each chipset on the list and it's the same with all of them and different each time. happy you have noticed the same which means it's not possibly an issues with my instance and something more wide spread. |
I’ve been having this exact issue. I believe it is being caused by the HA OS version. Anything 10.+ is presenting delayed or non-responsive switchbot hardware for my automations (curtains and blinds). I confirmed this just yesterday. When updating to 10.2 OS and the same problems are present as described in this thread. These issues first started appearing for me in OS 10.1 so I’ve been hanging back in 9.5 until this is resolved. |
interesting. i might stick HA one of my USB's on my synology and see what happens. |
Can confirm. 10.3 - I have the same issue. I have Intel internal Bluetooth and 10.2 looks like works synchronously step by step. Starts to close first, waits till finish, and reconnects to the new one and that to all bots in the order. I downgraded to 9.5 and all works fine, lag between starts is ~1-2 seconds without waiting to finish which is fully fine. Maybe it is similar to the kernel version home-assistant/operating-system#2535 here as well. UPD: In final I migrated to ESP32-Bluetooth proxy, works ideal |
I'm not sure on exact versions but mine is very similar. Fine on older version |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
I am having a similar issue with a SwitchBot Blind Tilt group. I'm interested in solutions others have found. This previously worked great before updating to HAOS 10, it would be nice if the functionality could be restored with a future update. |
This is still an issue for me. Running on RPi4 with SkyConnect. Upgraded to 11.1, but had to revert back to 9.5 as at least one of my SwitchBot Blind group fails each day. |
Same here. Ever since upgrading to 10.2+ this is "broken". |
@Toxblh Could you please clarify if "works ideal" means that a group moves simultaneously? Could you advise which board you used to accomplish that? |
Yes, not at the same second. But when it starts to move one after ~0.7 start next and in 3-4 seconds start closing all my curtains. Works as expected to me right now. In Groups I mean in the switch bot app you can pair 2 bots for a single window to a paired group. Only the main unit needs to send a command it will immediately repeat by second device in the pair I bought that https://amzn.eu/d/52SZnNl |
I am doing some experiments to see if I can figure out where exactly this started failing. Initial results clearly show that with HAOS 9.5 everything works perfect. The SwitchBox Curtains respond quickly, and I can open multiple at the same time. With HAOS 10.0 things are not so smooth. There is a big delay, and even sometimes timeouts. As a next step I'm going to zoom in to see in more detail what is going on. (Any help where to look is appreciated.) Update: right from HAOS 10.0.rc1 the problems with bluetooth seem to have started. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
This issue is still present on latest version. |
Same to me, every curtain group waits for the other to finish. But my group of 2 curtains closes together in contrast to another comment here. PS. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
The problem
I have a number of switchbot curtains around the house and there now seems to be a delay between each one when firing via an automation or button press on the frontend. but is instant from the switchbot app or buttons. for example i have schedule to close all the curtains at sundown. this used to fire and all the curtains would shut at the same time. now it seems to close one. then wait then fire another etc etc i have around 7 pairs of curtains and 2 singles on door. and this means that it can take around 10 mins for them all to close or some times it just stops and all of them dont close. is there something i am missing as nothing has changed on my hardware and all core and everything is up to date.
i'm running HA on a dell wyse PC using core etc for intel.
What version of Home Assistant Core has the issue?
core-2023.5.2
What was the last working version of Home Assistant Core?
No response
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 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: