Error Connecting Switchbot Devices
See original GitHub issueThe problem
After time, Bluetooth can’t connect switchbot devices.
What version of Home Assistant Core has the issue?
2022.9.0b0
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Core
Integration causing the issue
Switchbot
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?
Logger: homeassistant.components.websocket_api.http.connection
Source: components/switchbot/switch.py:55
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 01:08:29 (8 occurrences)
Last logged: 01:10:25
[139869049714624] WoHand (D3:74:BD:C8:93:D8): Sending command failed (rssi=-71)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 200, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1738, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1775, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 676, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 931, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 713, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/switchbot/switch.py", line 55, in async_turn_on
self._last_run_success = bool(await self._device.turn_on())
File "/usr/local/lib/python3.10/site-packages/switchbot/devices/bot.py", line 35, in turn_on
return self._check_command_result(result, 0, {1, 5})
File "/usr/local/lib/python3.10/site-packages/switchbot/devices/device.py", line 426, in _check_command_result
raise SwitchbotOperationError(
switchbot.devices.device.SwitchbotOperationError: WoHand (D3:74:BD:C8:93:D8): Sending command failed (rssi=-71)
Additional information
No response
Issue Analytics
- State:
- Created a year ago
- Comments:45 (17 by maintainers)
Top Results From Across the Web
SwitchBot Bot is offline and not connecting to the Hub Mini
SwitchBot Bot is offline and not connecting to the Hub Mini · 1. Make sure your SwitchBot app version is up to date....
Read more >SwitchBot - Apps on Google Play
SwitchBot is your simple switch to a smart home. The SwitchBot app helps you add, configure, monitor, and control your connected SwitchBot devices...
Read more >SwitchBot integration cant be added: failed to connect
Error scanning for switch devices Logger: switchbot Source: /usr/local/lib/python3.9/site-packages/switchbot/__init__.py:151 First occurred: 9: ...
Read more >2 Ways To Add Switchbot To Home Assistant #EnergyChallenge
... at 2 methods for adding Switchbot products to Home Assistant to ... to act as a bridge between Switchbot devices and Home...
Read more >10 Common SwitchBot Hub Mini Smart Remote Troubleshooting
Check to see if you are within communication range of your hub. Check to see that you have not connected more devices to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
For me is ok now untill the problem will be solved. I created an automation to recharge the Bluetooth integration when switchbot devices are unavailable. Runs ok.
I am gonna wait because 2022.9. beta 1 installed and from several hours its ok for now. If falls again I will try.