Errors after update to HA 0.50.2

Hi to everyone,

Today I updated HA from 0.45.1 to 0.50.2 to integrate xiaomi devices.

Once i executed HA i has this errors, Can someone help me how to solve it?

imagen

here are the logs:

2017-08-22 20:22:09 ERROR (MainThread) [homeassistant.setup] Error during setup of component mqtt Traceback (most recent call last): File "/usr/src/app/homeassistant/setup.py", line 191, in _async_setup_component result = yield from component.async_setup(hass, processed_config) File "/usr/src/app/homeassistant/components/mqtt/__init__.py", line 387, in async_setup success = yield from hass.data[DATA_MQTT].async_connect() File "/usr/src/app/homeassistant/components/mqtt/__init__.py", line 497, in async_connect self._mqttc.connect, self.broker, self.port, self.keepalive) File "/usr/local/lib/python3.6/asyncio/futures.py", line 332, in __iter__ yield self # This tells Task to wait for completion. File "/usr/local/lib/python3.6/asyncio/tasks.py", line 250, in _wakeup future.result() File "/usr/local/lib/python3.6/asyncio/futures.py", line 245, in result raise self._exception File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 55, in run result = self.fn(*self.args, **self.kwargs) File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 760, in connect return self.reconnect() File "/usr/local/lib/python3.6/site-packages/paho/mqtt/client.py", line 887, in reconnect sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0)) File "/usr/local/lib/python3.6/socket.py", line 722, in create_connection raise err File "/usr/local/lib/python3.6/socket.py", line 713, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused 2017-08-22 20:22:11 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: [after] is an invalid option for [automation]. Check: automation->trigger->0->after. (See /config/configuration.yaml, line 102). Please check the docs at https://home-assistant.io/components/automation/ 2017-08-22 20:22:11 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: [after] is an invalid option for [automation]. Check: automation->trigger->0->after. (See /config/configuration.yaml, line 102). Please check the docs at https://home-assistant.io/components/automation/ 2017-08-22 20:22:11 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: [after] is an invalid option for [automation]. Check: automation->trigger->0->after. (See /config/configuration.yaml, line 102). Please check the docs at https://home-assistant.io/components/automation/ 2017-08-22 20:22:11 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: [after] is an invalid option for [automation]. Check: automation->trigger->0->after. (See /config/configuration.yaml, line 102). Please check the docs at https://home-assistant.io/components/automation/ 2017-08-22 20:22:11 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: [after] is an invalid option for [automation]. Check: automation->trigger->0->after. (See /config/configuration.yaml, line 102). Please check the docs at https://home-assistant.io/components/automation/ 2017-08-22 20:22:11 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: [after] is an invalid option for [automation]. Check: automation->trigger->0->after. (See /config/configuration.yaml, line 102). Please check the docs at https://home-assistant.io/components/automation/ 2017-08-22 20:22:12 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: [after] is an invalid option for [automation]. Check: automation->trigger->1->after. (See /config/configuration.yaml, line 102). Please check the docs at https://home-assistant.io/components/automation/ 2017-08-22 20:22:12 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of sensor.mqtt. Setup failed for dependencies: mqtt 2017-08-22 20:22:12 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform sensor.mqtt: Could not setup all dependencies. 2017-08-22 20:22:12 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of sensor.mqtt. Setup failed for dependencies: mqtt 2017-08-22 20:22:12 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform sensor.mqtt: Could not setup all dependencies. 2017-08-22 20:22:12 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of sensor.mqtt. Setup failed for dependencies: mqtt 2017-08-22 20:22:12 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform sensor.mqtt: Could not setup all dependencies. 2017-08-22 20:22:12 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of sensor.mqtt. Setup failed for dependencies: mqtt 2017-08-22 20:22:12 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform sensor.mqtt: Could not setup all dependencies. 2017-08-22 20:22:12 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of sensor.mqtt. Setup failed for dependencies: mqtt 2017-08-22 20:22:12 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform sensor.mqtt: Could not setup all dependencies. 2017-08-22 20:22:12 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of sensor.mqtt. Setup failed for dependencies: mqtt 2017-08-22 20:22:12 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform sensor.mqtt: Could not setup all dependencies. 2017-08-22 20:22:12 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of cover.mqtt. Setup failed for dependencies: mqtt 2017-08-22 20:22:12 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform cover.mqtt: Could not setup all dependencies. 2017-08-22 20:22:12 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of cover.mqtt. Setup failed for dependencies: mqtt 2017-08-22 20:22:12 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform cover.mqtt: Could not setup all dependencies. 2017-08-22 20:22:17 ERROR (MainThread) [homeassistant.components.camera] Error while setting up platform netatmo Traceback (most recent call last): File "/usr/src/app/homeassistant/helpers/entity_component.py", line 164, in _async_setup_platform SLOW_SETUP_MAX_WAIT, loop=self.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 245, in result raise self._exception File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 55, 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 303, 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 2017-08-22 20:22:17 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up platform netatmo Traceback (most recent call last): File "/usr/src/app/homeassistant/helpers/entity_component.py", line 164, in _async_setup_platform SLOW_SETUP_MAX_WAIT, loop=self.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 245, in result raise self._exception File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 55, 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 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 303, 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 2017-08-22 20:22:17 ERROR (MainThread) [homeassistant.components.climate] Error while setting up platform netatmo Traceback (most recent call last): File "/usr/src/app/homeassistant/helpers/entity_component.py", line 164, in _async_setup_platform SLOW_SETUP_MAX_WAIT, loop=self.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 245, in result raise self._exception File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 55, in run result = self.fn(*self.args, **self.kwargs) File "/usr/src/app/homeassistant/components/climate/netatmo.py", line 47, in setup_platform for module_name in data.get_module_names(): File "/usr/src/app/homeassistant/components/climate/netatmo.py", line 162, in get_module_names for module in self.thermostatdata.modules[self.device].values():

and this is my configuration.yaml about mqtt:

mqtt:
#  embedded:
  broker: 192.168.1.100

Time ago this configuration worked well but now no.

Thanks

It may be because you have passed the rate limit
https://dev.netatmo.com/resources/technical/guides/ratelimits
I did a cron batch to overcome the problem

I am running a fresh install of HA on Ubuntu and receiving the same exact errors. The only difference is that I have not enabled anything other than the MQTT broker in my configuration. Log file is here - https://pastebin.com/D6J9dK2q I followed the instructions here to get MQTT up and running so that I can interact with my SmartThings hub.

Ok, I figured out the problem. It is a network issue. Are you running docker containers? If so I don’t think the containers are talking to each other. I’m not sure if you are using the link parameter, but that was my problem. I got rid of the link parameters and then used net: “host” on all of the containers so that they can communicate on the same network.

Hi @TheInsolentOne,

Yes i’m using HA in docker container. But this is the only container that is working…

In my case in the container HA configuration i checked option “Use the same network as Docker Host”.

Well i installed version 51.2, and for now configured MQTT in my raspberry and works well. But if i can, this week i will try to config again mosquitto in the synology NAS and take out the raspberry.

I will notice you.

Thanks