core: Switchbot hub mini detected incorrectly
The problem
Switchbot hub mini is now being detected in Homeassistant but it shows up as “plug mini” ( smart plug? )
Log down below after operating the toggle in the integration.
Switchbot hub firmware version: V:5.2-3.7

What version of Home Assistant Core has the issue?
2023.2.4
What was the last working version of Home Assistant Core?
this is the first time it show up.
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
config_entry-bluetooth-be9a274e2060918df31d8be8f8b42aa7.json.txt
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/entity.py:107
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 11:35:43 (2 occurrences)
Last logged: 22:30:36
[547346932464] C3-DD-D5-A9-9C-D8 (C3:DD:D5:A9:9C:D8): Sending command failed (result=05 index=1 expected={128} rssi=-57)
[547351546800] C3-DD-D5-A9-9C-D8 (C3:DD:D5:A9:9C:D8): Sending command failed (result=05 index=1 expected={128} rssi=-57)
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 1787, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1824, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 680, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 968, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 720, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/switchbot/entity.py", line 107, in async_turn_off
self._last_run_success = bool(await self._device.turn_off())
File "/usr/local/lib/python3.10/site-packages/switchbot/devices/plug.py", line 32, in turn_off
ret = self._check_command_result(result, 1, {0x80})
File "/usr/local/lib/python3.10/site-packages/switchbot/devices/device.py", line 550, in _check_command_result
raise SwitchbotOperationError(
switchbot.devices.device.SwitchbotOperationError: C3-DD-D5-A9-9C-D8 (C3:DD:D5:A9:9C:D8): Sending command failed (result=05 index=1 expected={128} rssi=-57)
Additional information
Homeassistant OS running on PI4 with ssd, generic built-in Bluetooth, xiaomi gateway 3 from HACS.
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 3
- Comments: 20 (1 by maintainers)
Any update on this?
Same problem in version: 2023.5.4
Switchbot device require active scans to be detected correctly.
Once you have set the device up, active scans can be disabled.