HA version 0.65.5, errors with yeelight bulb light


#1

Hi,

Today i updated HA from version 0.56.2 to 0.65.5. After run it, i opened, web interface, and asked about my password. Once i intoruduced, web iu just is loading data, and that’s all, not enter.

here are my logs

2018-03-18 20:17:30 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/asyncio/tasks.py", line 180, in _step
    result = coro.send(None)
  File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 252, in _async_add_entity
    msg)
homeassistant.exceptions.HomeAssistantError: Entity id already exists: automation.sensorpuertacerrado
2018-03-18 20:17:30 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/asyncio/tasks.py", line 180, in _step
    result = coro.send(None)
  File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 252, in _async_add_entity
    msg)
homeassistant.exceptions.HomeAssistantError: Entity id already exists: automation.sensorpuertaabierto
2018-03-18 20:17:30 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/asyncio/tasks.py", line 180, in _step
    result = coro.send(None)
  File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 252, in _async_add_entity
    msg)
homeassistant.exceptions.HomeAssistantError: Entity id already exists: automation.mama_llega_a_casa
2018-03-18 20:17:33 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up platform netatmo
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 82, in async_setup
    SLOW_SETUP_MAX_WAIT, loop=hass.loop)
  File "/usr/local/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.6/asyncio/futures.py", line 243, in result
    raise self._exception
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/app/homeassistant/components/binary_sensor/netatmo.py", line 75, in setup_platform
    if not data.get_camera_names():
  File "/usr/src/app/homeassistant/components/netatmo.py", line 84, in get_camera_names
    self.update()
  File "/usr/src/app/homeassistant/util/__init__.py", line 319, in wrapper
    result = method(*args, **kwargs)
  File "/usr/src/app/homeassistant/components/netatmo.py", line 115, in update
    self.camera_data = lnetatmo.CameraData(self.auth, size=100)
  File "/usr/local/lib/python3.6/site-packages/smart_home/Camera.py", line 78, in __init__
    self.default_camera = list(self.cameras[self.default_home].values())[0]
IndexError: list index out of range
2018-03-18 20:17:33 ERROR (MainThread) [homeassistant.components.climate] Error while setting up platform netatmo
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 82, in async_setup
    SLOW_SETUP_MAX_WAIT, loop=hass.loop)
  File "/usr/local/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.6/asyncio/futures.py", line 243, in result
    raise self._exception
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/app/homeassistant/components/climate/netatmo.py", line 51, in setup_platform
    for module_name in data.get_module_names():
  File "/usr/src/app/homeassistant/components/climate/netatmo.py", line 165, in get_module_names
    for module in self.thermostatdata.modules[self.device].values():
KeyError: 'relay_T'
2018-03-18 20:17:43 ERROR (MainThread) [homeassistant.components.camera] Error while setting up platform netatmo
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 82, in async_setup
    SLOW_SETUP_MAX_WAIT, loop=hass.loop)
  File "/usr/local/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.6/asyncio/futures.py", line 243, in result
    raise self._exception
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/app/homeassistant/components/camera/netatmo.py", line 42, in setup_platform
    for camera_name in data.get_camera_names():
  File "/usr/src/app/homeassistant/components/netatmo.py", line 84, in get_camera_names
    self.update()
  File "/usr/src/app/homeassistant/util/__init__.py", line 319, in wrapper
    result = method(*args, **kwargs)
  File "/usr/src/app/homeassistant/components/netatmo.py", line 115, in update
    self.camera_data = lnetatmo.CameraData(self.auth, size=100)
  File "/usr/local/lib/python3.6/site-packages/smart_home/Camera.py", line 78, in __init__
    self.default_camera = list(self.cameras[self.default_home].values())[0]
IndexError: list index out of range
2018-03-18 20:18:02 WARNING (SyncWorker_3) [netdisco.ssdp] Found malformed XML at http://192.168.1.99:9080: status=ok
2018-03-18 20:19:53 ERROR (MainThread) [homeassistant.loader] Unable to find component broadlink
2018-03-18 20:19:53 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/asyncio/tasks.py", line 180, in _step
    result = coro.send(None)
  File "/usr/src/app/homeassistant/components/websocket_api.py", line 472, in get_services_helper
    descriptions = await async_get_all_descriptions(self.hass)
  File "/usr/src/app/homeassistant/helpers/service.py", line 152, in async_get_all_descriptions
    missing.add(domain_yaml_file(domain))
  File "/usr/src/app/homeassistant/helpers/service.py", line 131, in domain_yaml_file
    component_path = path.dirname(get_component(domain).__file__)
AttributeError: 'NoneType' object has no attribute '__file__'
2018-03-18 20:20:36 ERROR (MainThread) [homeassistant.loader] Unable to find component broadlink
2018-03-18 20:20:36 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/asyncio/tasks.py", line 180, in _step
    result = coro.send(None)
  File "/usr/src/app/homeassistant/components/websocket_api.py", line 472, in get_services_helper
    descriptions = await async_get_all_descriptions(self.hass)
  File "/usr/src/app/homeassistant/helpers/service.py", line 152, in async_get_all_descriptions
    missing.add(domain_yaml_file(domain))
  File "/usr/src/app/homeassistant/helpers/service.py", line 131, in domain_yaml_file
    component_path = path.dirname(get_component(domain).__file__)
AttributeError: 'NoneType' object has no attribute '__file__'

Any help?

thanks


#2

Go check the change logs for breaking changes. You skipped lots of updates…


#3

Hi,

Thanks for reply. I solved this problem, and now works more or less all.

The problem that i have now, is with yeelight white bulbs and cover over mqtt.

With yeelight HA, makes the autodiscover, and detects all lights. when they are switched on, i can turn off, but when i want to turn on, switch turn on, but after 1 second, turn off automatically.

here logs when i did this option:

2018-03-27 16:04:44 WARNING (MainThread) [homeassistant.components.light] Setup of platform yeelight is taking over 10 seconds.
2018-03-27 16:16:26 ERROR (SyncWorker_5) [homeassistant.components.light.yeelight] Unable to turn the bulb on: {'code': -5000, 'message': 'general error'}
2018-03-27 16:16:32 ERROR (SyncWorker_6) [homeassistant.components.light.yeelight] Unable to turn the bulb on: {'code': -5000, 'message': 'general error'}
2018-03-27 16:16:37 ERROR (SyncWorker_11) [homeassistant.components.light.yeelight] Unable to turn the bulb on: {'code': -5000, 'message': 'general error'}

Anyone, have the same problem? Something changed?


Yeelight led ceiling light compatible with HA
#4

Please update the firmware of your yeelights! HA 0.65.5 uses the most recent yeelight API. Old firmware versions doesn’t handle the new messages properly.


#5

Solved.

After updated as @syssi told.

thanks