-
-
Notifications
You must be signed in to change notification settings - Fork 32k
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 Tilt / Cover not working (Bluetooth Proxy) #109734
Comments
Hey there @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 |
Update: saw core-2024.2.0b7 was out and updated; issue still persists. |
@Danielhiversen this likely is related to #108087 |
Issue seems to be fixed in 2024.2, probably with #110275 by bumping PySwitchBot to 0.45.0 |
The problem
I have 3 Switchbot Tilt's connected via BLE Proxy and am encountering an issue where other stats synchronize (like battery % etc, but the actual cover component doesn't work). Seen this issue in pretty much every build of 2024.2, but these logs were taken from core-2024.2.0b6, with frontend version 20240202.0; but I've tested this on 2024.2.0b3 too with similar results.
The status of the cover entities show up as unknown and these are the results from the home assistant logs when adjusting the cover position from fresh reboot (the device in question ends in
93:7F
)and I get the error
Failed to call service cover/set_cover_tilt_position. 'position'
on the UI when this happens.The device does respond, however the UI still shows unknown.
The BLE Proxy shows as follows with Verbose logging turned on (again, the device in question ends in
93:7F
):I can recreate this pretty much every time.
Happy to recreate / provide more results as necessary
What version of Home Assistant Core has the issue?
core-2024.2.0b6
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
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?
The recurring error seems to be: 2024-02-05 11:19:54.132 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/switchbot/devices/device.py", line 576, in update self._update_parsed_data(info) File "/usr/local/lib/python3.12/site-packages/switchbot/devices/device.py", line 611, in _update_parsed_data self._set_parsed_data(self._sb_adv_data, merged_data) File "/usr/local/lib/python3.12/site-packages/switchbot/devices/curtain.py", line 68, in _set_parsed_data new_position = data["position"] ~~~~^^^^^^^^^^^^ KeyError: 'position'
The text was updated successfully, but these errors were encountered: