(SOLVED) Fault message: WARNING (MainThread) [homeassistant.setup]

Can someone help me solve this error message it’s located under dev-info?
I’ve change my internal ip to: x.x.x.x.

    2017-10-13 16:41:00 WARNING (MainThread) [homeassistant.setup] Setup of light is taking over 10 seconds.
    2017-10-13 16:41:05 WARNING (MainThread) [homeassistant.components.light] Setup of platform hue is taking over 10 seconds.
    2017-10-13 16:41:05 ERROR (Thread-19) [phue] POST Request to x.x.x.x/api timed out.
    Traceback (most recent call last):
      File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/phue.py", line 744, in connect
        self.username = config[self.ip]['username']
    KeyError: 'x.x.x.x'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/phue.py", line 653, in request
        connection.request(mode, address, json.dumps(data))
      File "/usr/lib/python3.5/http/client.py", line 1107, in request
        self._send_request(method, url, body, headers)
      File "/usr/lib/python3.5/http/client.py", line 1152, in _send_request
        self.endheaders(body)
      File "/usr/lib/python3.5/http/client.py", line 1103, in endheaders
        self._send_output(message_body)
      File "/usr/lib/python3.5/http/client.py", line 934, in _send_output
        self.send(msg)
      File "/usr/lib/python3.5/http/client.py", line 877, in send
        self.connect()
      File "/usr/lib/python3.5/http/client.py", line 849, in connect
        (self.host,self.port), self.timeout, self.source_address)
      File "/usr/lib/python3.5/socket.py", line 712, in create_connection
        raise err
      File "/usr/lib/python3.5/socket.py", line 703, in create_connection
        sock.connect(sa)
    socket.timeout: timed out
    2017-10-13 16:41:05 ERROR (MainThread) [homeassistant.components.light] Error while setting up platform hue
    Traceback (most recent call last):
      File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/phue.py", line 744, in connect
        self.username = config[self.ip]['username']
    KeyError: 'x.x.x.x'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/phue.py", line 653, in request
        connection.request(mode, address, json.dumps(data))
      File "/usr/lib/python3.5/http/client.py", line 1107, in request
        self._send_request(method, url, body, headers)
      File "/usr/lib/python3.5/http/client.py", line 1152, in _send_request
        self.endheaders(body)
      File "/usr/lib/python3.5/http/client.py", line 1103, in endheaders
        self._send_output(message_body)
      File "/usr/lib/python3.5/http/client.py", line 934, in _send_output
        self.send(msg)
      File "/usr/lib/python3.5/http/client.py", line 877, in send
        self.connect()
      File "/usr/lib/python3.5/http/client.py", line 849, in connect
        (self.host,self.port), self.timeout, self.source_address)
      File "/usr/lib/python3.5/socket.py", line 712, in create_connection
        raise err
      File "/usr/lib/python3.5/socket.py", line 703, in create_connection
        sock.connect(sa)
    socket.timeout: timed out

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/helpers/entity_component.py", line 164, in _async_setup_platform
        SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
      File "/usr/lib/python3.5/asyncio/tasks.py", line 400, in wait_for
        return fut.result()
      File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
        raise self._exception
      File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
        result = self.fn(*self.args, **self.kwargs)
      File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/light/hue.py", line 138, in setup_platform
        allow_in_emulated_hue, allow_hue_groups)
      File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/light/hue.py", line 149, in setup_bridge
        config_file_path=hass.config.path(filename))
      File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/phue.py", line 629, in __init__
        self.connect()
      File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/phue.py", line 752, in connect
        self.register_app()
      File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/phue.py", line 706, in register_app
        response = self.request('POST', '/api', registration_request)
      File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/phue.py", line 661, in request
        raise PhueRequestTimeout(None, error)
    phue.PhueRequestTimeout: (None, 'POST Request to x.x.x.x/api timed out.')
    2017-10-13 17:07:14 WARNING (Thread-25) [pychromecast.socket_client] Heartbeat timeout, resetting connection
    2017-10-13 17:07:14 WARNING (Thread-24) [pychromecast.socket_client] Heartbeat timeout, resetting connection
    2017-10-13 17:07:44 ERROR (Thread-25) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
    2017-10-13 17:07:45 ERROR (Thread-24) [pychromecast.socket_client] Failed to connect, retrying in 5.0s
    2017-10-13 18:02:57 WARNING (MainThread) [homeassistant.components.device_tracker.owntracks] Received unsupported message type: lwt.
    2017-10-13 18:02:57 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
    Traceback (most recent call last):
      File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
        result = coro.send(None)
      File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/device_tracker/owntracks.py", line 80, in async_handle_mqtt_message
        yield from async_handle_message(hass, context, message)
      File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/device_tracker/owntracks.py", line 413, in async_handle_message
        yield from handler(hass, context, message)
    TypeError: 'NoneType' object is not callable

Looks like a problem with your emulated hue setup

Is it my Raspbee maybe?
Any clues of what I need to do?

Post you config showing emulated hue section

You mean this one:

# Zigbee lampor
  platform: hue
  host: 192.168.0.17

What I think is strange is that the host IP is on a different subnet then my home network. My home network is on 192.168.2.0/24.

I got the Raspbee Shield connected to my RPI 2.

Yes.
Looks related to this.
Where did you get host ip? Is host set to static IP, that may cause strange IP?

What issues are you having?

I don’t find where I set dhcp on it or change the IP staticly, I’ve looked but can’t find it…

The issues is none I believe, only that it shows in the dev-info… And I get frustrated on it…

Hi again,

It’s me that had set wrong IP in the config file :joy:
My hue isnt 192.168.0.17 it is on my 192.168.2.0/24 range.

My mistake, sorry for take your time…