Skip to content
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

Unable to control the light #8

Open
ITensEI opened this issue Dec 21, 2022 · 5 comments
Open

Unable to control the light #8

ITensEI opened this issue Dec 21, 2022 · 5 comments

Comments

@ITensEI
Copy link

ITensEI commented Dec 21, 2022

Integration adds the light and it's features, but unable to control it. When toggling switch on it turns off without any changes to the light. No errors that I could see in the logs.

@roslovets
Copy link
Owner

Hi, try to enable strict mode in config and you will see errors in log

@ITensEI
Copy link
Author

ITensEI commented Dec 21, 2022

Thank you! Now at least I see an error! I'm getting the following

Update for light.bedstrip fails
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/sp110e/controller.py", line 208, in _connect_with_retries
    await self._driver.connect(self._mac, timeout=self._timeout)
  File "/usr/local/lib/python3.10/site-packages/sp110e/driver.py", line 42, in connect
    device = await BleakScanner.find_device_by_address(mac_address, timeout=timeout)
AttributeError: type object 'HaBleakScannerWrapper' has no attribute 'find_device_by_address'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 527, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 722, in async_device_update
    raise exc
  File "/config/custom_components/sp110e/light.py", line 220, in async_update
    self._handle_exception(exception)
  File "/config/custom_components/sp110e/light.py", line 246, in _handle_exception
    raise exception
  File "/config/custom_components/sp110e/light.py", line 217, in async_update
    await self._device.update()
  File "/usr/local/lib/python3.10/site-packages/sp110e/controller.py", line 60, in update
    await self._connect_with_retries()
  File "/usr/local/lib/python3.10/site-packages/sp110e/controller.py", line 211, in _connect_with_retries
    raise Exception
Exception

@roslovets
Copy link
Owner

Hm, is it problem with Bleak version?
Unfortunately I don't have access to my HASS to test it.

@Poaser
Copy link

Poaser commented Dec 27, 2022

get the same error

@evadim
Copy link

evadim commented Dec 14, 2023

And one more with this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants