0.81: Yeelight not detected

Since the update, HA won’t find my Yeelights. I only have 2 and they are manually configured.

My install is on Windows7 (don’t hate me)

I took this from the log.

Log Details (ERROR)
Sat Oct 27 2018 17:27:24 GMT+0100 (British Summer Time)

Error while setting up platform yeelight
Traceback (most recent call last):
  File "C:\Users\Lee\AppData\Local\Programs\Python\Python36-32\lib\site-packages\homeassistant\helpers\entity_platform.py", line 128, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=hass.loop)
  File "C:\Users\Lee\AppData\Local\Programs\Python\Python36-32\lib\asyncio\tasks.py", line 358, in wait_for
    return fut.result()
  File "C:\Users\Lee\AppData\Local\Programs\Python\Python36-32\lib\concurrent\futures\thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "C:\Users\Lee\AppData\Local\Programs\Python\Python36-32\lib\site-packages\homeassistant\components\light\yeelight.py", line 126, in setup_platform
    from yeelight.enums import PowerMode
  File "C:\Users\Lee\AppData\Roaming\.homeassistant\deps\Python36\site-packages\yeelight\__init__.py", line 5, in <module>
    from yeelight.main import Bulb, BulbType, BulbException, discover_bulbs
  File "C:\Users\Lee\AppData\Roaming\.homeassistant\deps\Python36\site-packages\yeelight\main.py", line 17, in <module>
    import win32api as fcntl
ModuleNotFoundError: No module named 'win32api'

Thanks in advance :slight_smile:

Hi,

I had the same problem, I installed manually this package, now it’s working fine again:

pip3 install pypiwin32

Thanks, I’ve gone back to the previous version, but I’ve installed that ready for the upgrade, but I’m having other issues with the latest update so I’ll wait to upgrade.