8000 Switchbot BlindTilt Light Level Stuck · Issue #94742 · home-assistant/core · GitHub
[go: up one dir, main page]

Skip to content
Switchbot BlindTilt Light Level Stuck #94742
@fdabek1

Description

@fdabek1

The problem

I installed my first Switchbot BlindTilt two weeks ago and the Light Level has been stuck at 2 for the entirety of the time. The battery level is updating and my automation to open/close it is working just fine.

I have found in the logs some messages about it not being connected (see below), but otherwise everything else is still functional. The SwitchBot app also shows the light level just fine.

I also found this issue reported in not this repo: home-assistant/home-assistant.io#27464

What version of Home Assistant Core has the issue?

core-2023.5.4

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?

2023-05-30 20:43:36.655 INFO (MainThread) [homeassistant.setup] Setting up switchbot
2023-05-30 20:43:36.655 INFO (MainThread) [homeassistant.setup] Setup of domain switchbot took 0.0 seconds
2023-05-30 20:43:36.794 INFO (MainThread) [homeassi
8000
stant.components.cover] Setting up cover.switchbot
2023-05-30 20:43:36.799 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.switchbot
2023-05-30 20:43:36.801 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.switchbot
2023-05-30 20:43:36.809 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new cover.switchbot entity: cover.blind_tilt_6a07
2023-05-30 20:43:36.810 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new binary_sensor.switchbot entity: binary_sensor.blind_tilt_6a07
2023-05-30 20:43:36.812 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.switchbot entity: sensor.blind_tilt_6a07_battery
2023-05-30 20:43:36.814 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.switchbot entity: sensor.blind_tilt_6a07_light_level
2023-05-30 20:43:36.816 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.switchbot entity: sensor.blind_tilt_6a07_bluetooth_signal
2023-05-30 20:43:37.435 WARNING (MainThread) [switchbot.devices.device] DB-CF-3B-C7-6A-07 (DB:CF:3B:C7:6A:07): Device unexpectedly disconnected; RSSI: -68
2023-06-09 13:39:13.749 ERROR (MainThread) [switchbot.devices.device] DB-CF-3B-C7-6A-07 (DB:CF:3B:C7:6A:07): device not found, no longer in range, or poor RSSI: -68
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/bleak/backends/bluezdbus/client.py", line 233, in connect
    await local_disconnect_monitor_event.wait()
  File "/usr/local/lib/python3.10/asyncio/locks.py", line 214, in wait
    await fut
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/bleak_retry_connector/__init__.py", line 344, in establish_connection
    await client.connect(
  File "/usr/src/homeassistant/homeassistant/components/bluetooth/wrappers.py", line 272, in connect
    connected = await super().connect(**kwargs)
  File "/usr/local/lib/python3.10/site-packages/bleak/__init__.py", line 531, in connect
    return await self._backend.connect(**kwargs)
  File "/usr/local/lib/python3.10/site-packages/bleak/backends/bluezdbus/client.py", line 141, in connect
    async with async_timeout(timeout):
  File "/usr/local/lib/python3.10/site-packages/async_timeout/__init__.py", line 129, in __aexit__
    self._do_exit(exc_type)
  File "/usr/local/lib/python3.10/site-packages/async_timeout/__init__.py", line 212, in _do_exit
    raise asyncio.TimeoutError
asyncio.exceptions.TimeoutError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/switchbot/devices/device.py", line 180, in _send_command
    return await self._send_command_locked(key, command)
  File "/usr/local/lib/python3.10/site-packages/switchbot/devices/device.py", line 414, in _send_command_locked
    await self._ensure_connected()
  File "/usr/local/lib/python3.10/site-packages/switchbot/devices/device.py", line 274, in _ensure_connected
    client: BleakClientWithServiceCache = await establish_connection(
  File "/usr/local/lib/python3.10/site-packages/bleak_retry_connector/__init__.py", line 361, in establish_connection
    _raise_if_needed(name, device.address, exc)
  File "/usr/local/lib/python3.10/site-packages/bleak_retry_connector/__init__.py", line 310, in _raise_if_needed
    raise BleakNotFoundError(msg) from exc
bleak_retry_connector.BleakNotFoundError: WoBlindTilt (DB:CF:3B:C7:6A:07) - DB:CF:3B:C7:6A:07: Failed to connect: 
2023-06-09 13:39:13.760 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/bleak/backends/bluezdbus/client.py", line 233, in connect
    await local_disconnect_monitor_event.wait()
  File "/usr/local/lib/python3.10/asyncio/locks.py", line 214, in wait
    await fut
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/bleak_retry_connector/__init__.py", line 344, in establish_connection
    await client.connect(
  File "/usr/src/homeassistant/homeassistant/components/bluetooth/wrappers.py", line 272, in connect
    connected = await super().connect(**kwargs)
  File "/usr/local/lib/python3.10/site-packages/bleak/__init__.py", line 531, in connect
    return await self._backend.connect(**kwargs)
  File "/usr/local/lib/python3.10/site-packages/bleak/backends/bluezdbus/client.py", line 141, in connect
    async with async_timeout(timeout):
  File "/usr/local/lib/python3.10/site-packages/async_timeout/__init__.py", line 129, in __aexit__
    self._do_exit(exc_type)
  File "/usr/local/lib/python3.10/site-packages/async_timeout/__init__.py", line 212, in _do_exit
    raise asyncio.TimeoutError
asyncio.exceptions.TimeoutError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/switchbot/devices/device.py", line 557, in update
    if info := await self.get_basic_info():
  File "/usr/local/lib/python3.10/site-packages/switchbot/devices/blind_tilt.py", line 79, in get_basic_info
    if not (_data := await self._get_basic_info()):
  File "/usr/local/lib/python3.10/site-packages/switchbot/devices/device.py", line 529, in _get_basic_info
    _data = await self._send_command(
  File "/usr/local/lib/python3.10/site-packages/switchbot/devices/device.py", line 180, in _send_command
    return await self._send_command_locked(key, command)
  File "/usr/local/lib/python3.10/site-packages/switchbot/devices/device.py", line 414, in _send_command_locked
    await self._ensure_connected()
  File "/usr/local/lib/python3.10/site-packages/switchbot/devices/device.py", line 274, in _ensure_connected
    client: BleakClientWithServiceCache = await establish_connection(
  File "/usr/local/lib/python3.10/site-packages/bleak_retry_connector/__init__.py", line 361, in establish_connection
    _raise_if_needed(name, device.address, exc)
  File "/usr/local/lib/python3.10/site-packages/bleak_retry_connector/__init__.py", line 310, in _raise_if_needed
    raise BleakNotFoundError(msg) from exc
bleak_retry_connector.BleakNotFoundError: WoBlindTilt (DB:CF:3B:C7:6A:07) - DB:CF:3B:C7:6A:07: Failed to connect: 


### Additional information

_No response_

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0