home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
70.16k stars 29.19k forks source link

Different components are sometimes unavailable and sometimes available after reboot (flapping) #18921

Closed Filhgd closed 5 years ago

Filhgd commented 5 years ago

Home Assistant release with the issue: 0.83.2 and 0.82.0

Last working Home Assistant release (if known): not a single one. Having these problems since the beginning.

Operating environment (Hass.io/Docker/Windows/etc.): Hass.io

Component/platform: Raspberry Pi 3 Model B

Description of problem: I'm having these problems since a year right now and I can't find the solution. I have a home assistant client running trough Hass.io on my raspberry Pi with the following components enabled:

I'm very happy with home assistant and it is wonderful software to build your own smart home. However there are always components who aren't working after a reboot. In some home assistant versions it's worse than in others. This last one is again terrible so I reloaded a snapshot with HA 0.82.0 which also has these problems but less serious.

When i reboot my system one of the following components isn't loading and giving errors:

It is a very strange problem because every time I reboot HA, one of the components work while the other two don't load or partially load (in case of tado). When I do a reboot of the hass.io host system (and I am very lucky or the stars align or something) then everything loads like it should. I have a lot of errors during booting but I don't know how to handle them. I'm getting desperate because I would really love to have a stable system. Maybe the raspberry Pi isn't heavy enough to handle everything? I don't know anymore.

Could you guys please take a look at my setup because I suppose that other users are also having the same problems if they start with expanding their system and building more complex automations.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

homeassistant:
  # Name of the location where Home Assistant is running
  name: Home
  # Location required to calculate the time the sun rises and sets
  latitude: LOCATION
  longitude: LOCATION
  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 19
  # metric for Metric, imperial for Imperial
  unit_system: metric
  # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  time_zone: LOCATION

# Show links to resources in log and frontend

# Enables the frontend
frontend:

recorder:
  purge_interval: 2
  purge_keep_days: 4
  include:
    domains:
      - switch
      - media_player
      - climate
      - light
      - device_tracker
      - binary_sensor
      - sun
      - cover
    entities:
      - sensor.wasmachine_power
      - sensor.woonkamer_humidity
      - sensor.woonkamer_heating
      - sensor.woonkamer_temperature
      - sensor.heiman_temperature_humidity_sensor_hs1htz_temperature
      - sensor.heiman_temperature_humidity_sensor_hs1htz_relative_humidity
      - sensor.wasmachine_exporting
      - sensor.temp_koelkast
      - sensor.xiaomi_air_quality_monitor
      - sensor.luchtkwaliteit_stat_mean
      - sensor.br_symbol
      - sensor.werk

# Enables configuration UI
config:

http:
  # Uncomment this to add a password (recommended!)
  api_password: !secret api_password
  # Uncomment this if you are using SSL or running in Docker etc
  # base_url: hassio.local:8123
  base_url: http://hassio.local:8123
  cors_allowed_origins:
    - http://192.168.1.252:7080

# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
updater:

# Discover some devices automatically
discovery:
#  ignore:
#    - philips_hue

# Allows you to issue voice commands from the frontend in enabled browsers
conversation:

# Enables support for tracking state changes over time.
history:

# View all events in a logbook
logbook:

homekit:
  pincode: !secret homekit

# Track the sun
sun:

# IOS
ios:

# ASUS router
device_tracker:
  - platform: asuswrt
    host: 192.168.1.1
    username: filip
    password: !secret asus

  - platform: bluetooth_tracker
    interval_seconds: 15
    consider_home: 150
    track_new_devices: yes

#  - platform: icloud
#    username: !secret email
#    password: !secret icloud
#    account_name: Filip

tts:
  - platform: google
    language: 'nl'
    cache: true
    cache_dir: /tmp/ 
    time_memory: 300

# ZWAVE

zwave:
  usb_path: /dev/ttyACM0

# IFTTT

ifttt:
  key: !secret ifttt

# custom_components

battery_state:

# CLOUD

cloud:
  alexa:
    filter:
      include_entities:
        - input_select.was
        - input_boolean.schuifdeur_tado
        - cover.garage
      include_domains:
        - switch
        - media_player
        - binary_sensor
#      exclude_domains:
#        - script

group: !include groups.yaml

# TADO

tado:
  username: !secret email
  password: !secret tado

#tado_v1:
#  username: !secret email
#  password: !secret tado

climate:
  platform: tado

#RING
ring:
  username: !secret email
  password: !secret ring

#TV
media_player:
  - platform: braviatv
    host: 192.168.1.58

  - platform: spotify
    client_id: !secret spotify_cl
    client_secret: !secret spotify

  - platform: alexa
    email: !secret amazon_user
    password: !secret amazon_password
    url: amazon.com

apple_tv:
  - host: 192.168.1.15
    login_id: !secret appletv_login
    credentials: !secret appletv

#pushover
notify:
  - name: pushover
    platform: pushover
    api_key: !secret pushover_api
    user_key: !secret pushover

  - name: notifications
    platform: file
    filename: notifications.csv
    timestamp: true

# Grafieken

history_graph:
  gr1:
    name: Vervuiling
    entities:
      - sensor.xiaomi_air_quality_monitor
    hours_to_show: 24
    refresh: 60

# Cameras

#camera:
#  - platform: ffmpeg
#    name: Garage
#    input: -rtsp_transport tcp -i rtsp://192.168.1.230:554/onvif1 \

# DATA

#influxdb:
#  host: 127.0.0.1

# SENSORS
sensor:
  - platform: yr
    monitored_conditions:
      - temperature
      - symbol
      - precipitation
      - windSpeed
      - pressure
      - windDirection
      - humidity
      - fog
      - cloudiness
      - lowClouds
      - mediumClouds
      - highClouds
      - dewpointTemperature
      - precipitation

  - platform: darksky
    api_key: **HIDDEN**
    forecast:
      - 1
    monitored_conditions:
      - summary
      - icon
      - nearest_storm_distance
      - apparent_temperature
      - temperature_high
      - apparent_temperature_high
      - cloud_cover
      - precip_intensity

  - platform: ring
    monitored_conditions:
      - battery
      - last_activity
      - last_ding
      - last_motion
      - volume
      - wifi_signal_category

  - platform: time_date
    display_options:
      - 'time'
      - 'date'
      - 'date_time'
      - 'time_date'
      - 'time_utc'
      - 'beat'

  - platform: template
    sensors:
      geluid_bravia:
        value_template: '{{ states.media_player.sony_bravia_tv.attributes.is_volume_muted }}'
        friendly_name: 'Geluid bravia mute?'

  - platform: buienradar
    latitude: 51.166531
    longitude: 4.456499
    monitored_conditions:
      - symbol
      - windspeed
      - pressure
      - precipitation

  - platform: wunderground
    api_key: 1cd5e57fad7fe83b
    pws_id: IHOVE81
    lang: NL
    monitored_conditions:
      - alerts
      - precip_1hr_metric

#  - platform: pi_hole

  - platform: template
    sensors:
      temp_koelkast:
        friendly_name: "Temperatuur koelkast adj"
        unit_of_measurement: "°C"
        value_template: >-
          {{ (states.sensor.heiman_temperature_humidity_sensor_hs1htz_temperature.state | float - 7) | round(2) }}

  - platform: xiaomi_miio
    name: Xiaomi Air Quality Monitor
    host: 192.168.1.14
    token: !secret xiaomi

  - platform: statistics
    entity_id: sensor.xiaomi_air_quality_monitor
    name: luchtkwaliteit_stat
    sampling_size: 5000
    max_age:
      hours: 24

  - platform: waze_travel_time
    name: 'drukte in Mortsel'
    origin: 51.168707, 4.451513
    destination: 51.170369, 4.453144
    region: 'EU'

  - platform: waze_travel_time
    name: 'Werk'
    origin: 51.166537, 4.456295
    destination: 51.158627, 4.405611
    region: 'EU'

  - platform: systemmonitor
    resources:
      - type: disk_use_percent
        arg: /home
      - type: memory_free

binary_sensor:
 - platform: template
   sensors:
     voordeur_beweging:
       friendly_name: Beweging voordeur
       value_template: '{{(as_timestamp(now()) - as_timestamp(states.sensor.ring_voordeur_last_motion.last_updated) < 240)}}'
       device_class: motion

 - platform: template
   sensors:
     voordeur_bel:
       friendly_name: Bel
       value_template: '{{(as_timestamp(now()) - as_timestamp(states.sensor.ring_voordeur_last_ding.last_updated) < 240)}}'
       device_class: motion

 - platform: ring
   monitored_conditions:
     - ding
     - motion

 - platform: threshold
   upper: 20
   entity_id: sensor.badkamer_temperature
   name: badkamer_20

 - platform: template
   sensors:
     people_home:
       value_template: >-
         {{ is_state('sensor.woonkamer_tado_mode', 'HOME')
            or is_state('device_tracker.android2647cd72fe481592', 'home')
            or is_state('input_boolean.iemand_thuis', 'on')
            or is_state('device_tracker.airvanannelies', 'home')
            or is_state('device_tracker.pcjanps4_2', 'home')
            or is_state('device_tracker.pcjanps4', 'home')
            or is_state('device_tracker.daniel', 'home')
            or is_state('device_tracker.iphonevanhilde', 'home') }}

# COUNTER

counter:
  was:
    name: "aantal keren was gedraaid"
    step: 1

# switches

input_boolean:
  test:
    name: 'test schakelaar'
    initial: off
    icon: mdi:gesture-tap

  schuifdeur_tado:
    name: 'Schuifdeur schakelaar bedient tado'
    initial: on
    icon: mdi:door-closed

  wasmachine_messages:
    name: 'Berichten wasmachine'
    initial: on
    icon: mdi:message-alert

  iemand_thuis:
    name: 'Manual override location'
    initial: off
    icon: mdi:home-account

input_select:
  wasmachine:
    name: 'Status wasmachine live'
    options:
      - Klaar
      - Wast
    initial: Klaar
  was:
    name: 'wasmachine'
    options:
      - Klaar
      - Wast
    initial: Klaar
  brievenbus:
    name: 'Brievenbus'
    options:
      - Leeg
      - Post
    initial: Leeg

# GARAGE

cover:
  - platform: gogogate2B
    username: admin
    password: !secret gogogate
    ip_address: 192.168.1.7

Traceback (if applicable):

Additional information: Errors during booting

2018-12-02 16:31:21 WARNING (MainThread) [homeassistant.components.http] legacy_api_password support has been enabled. If you don't require it, remove the 'api_password' from your http config.
2018-12-02 16:31:30 WARNING (MainThread) [homeassistant.loader] You are using a custom component for media_player.alexa which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2018-12-02 16:31:30 WARNING (MainThread) [homeassistant.loader] You are using a custom component for battery_state which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2018-12-02 16:31:30 WARNING (MainThread) [homeassistant.loader] You are using a custom component for cover.gogogate2B which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2018-12-02 16:31:31 ERROR (MainThread) [homeassistant.components.hue] Error connecting to the Hue bridge at 192.168.1.190
2018-12-02 16:31:31 ERROR (MainThread) [homeassistant.components.hue] Error connecting to the Hue bridge at 192.168.1.190. Retrying in 2 seconds
2018-12-02 16:31:40 ERROR (MainThread) [homeassistant.components.climate] Error while setting up platform tado
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/urllib/request.py", line 1318, in do_open
    encode_chunked=req.has_header('Transfer-encoding'))
  File "/usr/local/lib/python3.6/http/client.py", line 1239, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/local/lib/python3.6/http/client.py", line 1285, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/local/lib/python3.6/http/client.py", line 1234, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/local/lib/python3.6/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/local/lib/python3.6/http/client.py", line 964, in send
    self.connect()
  File "/usr/local/lib/python3.6/http/client.py", line 1392, in connect
    super().connect()
  File "/usr/local/lib/python3.6/http/client.py", line 936, in connect
    (self.host,self.port), self.timeout, self.source_address)
  File "/usr/local/lib/python3.6/socket.py", line 704, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "/usr/local/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 128, in _async_setup_platform
    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/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/climate/tado.py", line 64, in setup_platform
    tado, hass, zone, zone['name'], zone['id'])
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/climate/tado.py", line 75, in create_climate_device
    capabilities = tado.get_capabilities(zone_id)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/tado.py", line 114, in get_capabilities
    return self.tado.getCapabilities(tado_id)
  File "/usr/local/lib/python3.6/site-packages/PyTado/interface.py", line 205, in getCapabilities
    data = self._apiCall(cmd)
  File "/usr/local/lib/python3.6/site-packages/PyTado/interface.py", line 81, in _apiCall
    response = self.opener.open(req)
  File "/usr/local/lib/python3.6/urllib/request.py", line 526, in open
    response = self._open(req, data)
  File "/usr/local/lib/python3.6/urllib/request.py", line 544, in _open
    '_open', req)
  File "/usr/local/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/usr/local/lib/python3.6/urllib/request.py", line 1361, in https_open
    context=self._context, check_hostname=self._check_hostname)
  File "/usr/local/lib/python3.6/urllib/request.py", line 1320, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [Errno -3] Try again>
2018-12-02 16:31:41 WARNING (MainThread) [homeassistant.setup] Setup of counter is taking over 10 seconds.
2018-12-02 16:31:42 WARNING (MainThread) [homeassistant.components.sensor] Setup of platform wunderground is taking over 10 seconds.
2018-12-02 16:31:42 ERROR (MainThread) [homeassistant.components.sensor.wunderground] Error fetching WUnderground data: TimeoutError()
2018-12-02 16:31:42 WARNING (MainThread) [homeassistant.components.sensor] Platform wunderground not ready yet. Retrying in 30 seconds.
2018-12-02 16:31:47 WARNING (MainThread) [homeassistant.components.sensor] Setup of platform ring is taking over 10 seconds.
2018-12-02 16:31:47 WARNING (MainThread) [homeassistant.components.media_player] Setup of platform spotify is taking over 10 seconds.
2018-12-02 16:31:52 WARNING (MainThread) [homeassistant.components.climate] Setup of platform tado is taking over 10 seconds.
2018-12-02 16:31:58 ERROR (MainThread) [homeassistant.components.media_player] spotify: Error on device update!
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/local/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 839, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fac642978>: Failed to establish a new connection: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/local/lib/python3.6/site-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/me/player/devices (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac642978>: Failed to establish a new connection: [Errno -3] Try again',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 251, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 349, in async_device_update
    await self.hass.async_add_executor_job(self.update)
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/media_player/spotify.py", line 176, in update
    player_devices = self._player.devices()
  File "/usr/local/lib/python3.6/site-packages/spotipy/client.py", line 848, in devices
    return self._get("me/player/devices")
  File "/usr/local/lib/python3.6/site-packages/spotipy/client.py", line 148, in _get
    return self._internal_call('GET', url, payload, kwargs)
  File "/usr/local/lib/python3.6/site-packages/spotipy/client.py", line 110, in _internal_call
    r = self._session.request(method, url, headers=headers, proxies=self.proxies, **args)
  File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 524, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 637, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/me/player/devices (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac642978>: Failed to establish a new connection: [Errno -3] Try again',))
2018-12-02 16:31:59 WARNING (MainThread) [homeassistant.components.sensor] Setup of platform tado is taking over 10 seconds.
2018-12-02 16:32:08 WARNING (MainThread) [homeassistant.components.media_player.apple_tv] A <class 'concurrent.futures._base.TimeoutError'> error occurred: 
2018-12-02 16:32:30 WARNING (MainThread) [homeassistant.components.media_player.apple_tv] A <class 'concurrent.futures._base.TimeoutError'> error occurred: 
2018-12-02 16:32:51 WARNING (MainThread) [homeassistant.components.media_player.apple_tv] A <class 'concurrent.futures._base.TimeoutError'> error occurred: 
2018-12-02 16:33:02 ERROR (SyncWorker_4) [homeassistant.components.device_tracker.bluetooth_tracker] Error looking up Bluetooth device
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/bluetooth_tracker.py", line 99, in update_bluetooth_once
    result = bluetooth.lookup_name(mac, timeout=5)
  File "/usr/local/lib/python3.6/site-packages/bluetooth/bluez.py", line 59, in lookup_name
    raise BluetoothError ("%s is not a valid Bluetooth address" % address)
bluetooth.btcommon.BluetoothError: _40:98:AD:AF:05:1A is not a valid Bluetooth address
2018-12-02 16:33:02 WARNING (MainThread) [homeassistant.components.binary_sensor.template] Could not render template Beweging voordeur, the state is unknown
2018-12-02 16:33:02 WARNING (MainThread) [homeassistant.components.binary_sensor.template] Could not render template Bel, the state is unknown
2018-12-02 16:33:02 WARNING (MainThread) [homeassistant.components.sensor.template] Could not render template Temperatuur koelkast adj, the state is unknown.
2018-12-02 16:33:04 WARNING (SyncWorker_19) [homeassistant.components.homekit] You have exceeded the device limit, which might cause issues. Consider using the filter option.
2018-12-02 16:33:04 WARNING (MainThread) [homeassistant.core] Unable to find service hue/hue_activate_scene
2018-12-02 16:33:12 ERROR (MainThread) [homeassistant.core] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 159, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 57, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/local/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 343, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 839, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 301, in connect
    conn = self._new_conn()
  File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 168, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fac57a128>: Failed to establish a new connection: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 638, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/local/lib/python3.6/site-packages/urllib3/util/retry.py", line 398, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.waze.com', port=443): Max retries exceeded with url: /SearchServer/mozi?q=51.158627%2C+4.405611&lang=eng&origin=livemap&lon=19.04&lat=47.498 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac57a128>: Failed to establish a new connection: [Errno -3] Try again',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/sensor/waze_travel_time.py", line 74, in <lambda>
    EVENT_HOMEASSISTANT_START, lambda _: sensor.update())
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/sensor/waze_travel_time.py", line 203, in update
    self._origin, self._destination, self._region)
  File "/usr/local/lib/python3.6/site-packages/WazeRouteCalculator/WazeRouteCalculator.py", line 37, in __init__
    self.end_coords = self.address_to_coords(end_address)
  File "/usr/local/lib/python3.6/site-packages/WazeRouteCalculator/WazeRouteCalculator.py", line 57, in address_to_coords
    response = requests.get(self.WAZE_URL + get_cords, params=url_options)
  File "/usr/local/lib/python3.6/site-packages/requests/api.py", line 75, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 524, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 637, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.waze.com', port=443): Max retries exceeded with url: /SearchServer/mozi?q=51.158627%2C+4.405611&lang=eng&origin=livemap&lon=19.04&lat=47.498 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fac57a128>: Failed to establish a new connection: [Errno -3] Try again',))
2018-12-02 16:33:14 WARNING (MainThread) [homeassistant.components.media_player.apple_tv] A <class 'concurrent.futures._base.TimeoutError'> error occurred: 
2018-12-02 16:33:14 WARNING (MainThread) [homeassistant.components.sensor] Setup of platform wunderground is taking over 10 seconds.
2018-12-02 16:33:14 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.master_bedroom is taking over 10 seconds
2018-12-02 16:33:15 ERROR (MainThread) [homeassistant.components.sensor.wunderground] Error fetching WUnderground data: TimeoutError()
2018-12-02 16:33:15 WARNING (MainThread) [homeassistant.components.media_player] Updating alexa media_player took longer than the scheduled update interval 0:00:10
2018-12-02 16:33:16 WARNING (MainThread) [homeassistant.components.sensor] Platform wunderground not ready yet. Retrying in 60 seconds.
2018-12-02 16:33:18 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from asuswrt took longer than the scheduled scan interval 0:00:12
2018-12-02 16:33:24 ERROR (MainThread) [homeassistant.helpers.entity] Update for climate.master_bedroom fails
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/urllib/request.py", line 1318, in do_open
    encode_chunked=req.has_header('Transfer-encoding'))
  File "/usr/local/lib/python3.6/http/client.py", line 1239, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/local/lib/python3.6/http/client.py", line 1285, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/local/lib/python3.6/http/client.py", line 1234, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/local/lib/python3.6/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/local/lib/python3.6/http/client.py", line 964, in send
    self.connect()
  File "/usr/local/lib/python3.6/http/client.py", line 1392, in connect
    super().connect()
  File "/usr/local/lib/python3.6/http/client.py", line 936, in connect
    (self.host,self.port), self.timeout, self.source_address)
  File "/usr/local/lib/python3.6/socket.py", line 704, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "/usr/local/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 221, in async_update_ha_state
    await self.async_device_update()
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 349, in async_device_update
    await self.hass.async_add_executor_job(self.update)
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/climate/tado.py", line 245, in update
    self._store.update()
  File "/usr/local/lib/python3.6/site-packages/homeassistant/util/__init__.py", line 324, in wrapper
    result = method(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/tado.py", line 81, in update
    data = self.tado.getState(sensor['id'])
  File "/usr/local/lib/python3.6/site-packages/PyTado/interface.py", line 197, in getState
    data = self._apiCall(cmd)
  File "/usr/local/lib/python3.6/site-packages/PyTado/interface.py", line 81, in _apiCall
    response = self.opener.open(req)
  File "/usr/local/lib/python3.6/urllib/request.py", line 526, in open
    response = self._open(req, data)
  File "/usr/local/lib/python3.6/urllib/request.py", line 544, in _open
    '_open', req)
  File "/usr/local/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/usr/local/lib/python3.6/urllib/request.py", line 1361, in https_open
    context=self._context, check_hostname=self._check_hostname)
  File "/usr/local/lib/python3.6/urllib/request.py", line 1320, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [Errno -3] Try again>
kennedyshead commented 5 years ago

18955 will solve this

Filhgd commented 5 years ago

I don’t get this. This isn’t solved at all.

ciB89 commented 5 years ago

I experienced thsi with my bluetooth tracker. It sometimes does not load:

2019-01-08 12:02:39 ERROR (MainThread) [homeassistant.loader] Unable to find component device_tracker.bluetooth_tracker#

kennedyshead commented 5 years ago

There might be other components/platforms that causes this. But asuswrt had this problem, I also had similar problems when my isp had issues.

fernandex00 commented 5 years ago

Hi, the problem isn't solve, I got problems with