You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the latest tag from Home Assistant pulled nightly, Home Assistant began throwing errors 2024/02/08 when trying to set the position of Switchbot blinds. The command is sent to the blinds and they do go to the position but the below error is throw and, if used in an automation, will halt the automation.
2024-02-09 22:15:54.661 ERROR (MainThread) [homeassistant.components.bluetooth.manager] Error in bluetooth callback
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/bluetooth/manager.py", line 109, in _discover_service_info
callback(service_info, BluetoothChange.ADVERTISEMENT)
File "/usr/src/homeassistant/homeassistant/components/switchbot/coordinator.py", line 113, in _async_handle_bluetooth_event
self.device.update_from_advertisement(adv)
File "/usr/local/lib/python3.12/site-packages/switchbot/devices/device.py", line 695, in update_from_advertisement
super().update_from_advertisement(advertisement)
File "/usr/local/lib/python3.12/site-packages/switchbot/devices/device.py", line 664, in update_from_advertisement
self._set_advertisement_data(advertisement)
File "/usr/local/lib/python3.12/site-packages/switchbot/devices/device.py", line 632, in _set_advertisement_data
self._update_parsed_data(new_data)
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'
What version of Home Assistant Core has the issue?
2024.2.1
What was the last working version of Home Assistant Core?
Code owners of switchbot can trigger bot actions by commenting:
@home-assistant close Closes the issue.
@home-assistant rename Awesome new title Renames the issue.
@home-assistant reopen Reopen the issue.
@home-assistant unassign switchbot Removes the current integration label and assignees on the issue, add the integration domain after the command.
@home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
@home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.
The problem
Using the latest tag from Home Assistant pulled nightly, Home Assistant began throwing errors 2024/02/08 when trying to set the position of Switchbot blinds. The command is sent to the blinds and they do go to the position but the below error is throw and, if used in an automation, will halt the automation.
What version of Home Assistant Core has the issue?
2024.2.1
What was the last working version of Home Assistant Core?
2024.1.6
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
home-assistant_switchbot_2024-02-10T04-21-03.433Z.log
Example YAML snippet
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: