Can't Connect Vera Plus

Not sure what I am missing, here. I followed the instructions and added the following to my configuration.yaml:

vera:
  vera_controller_url: http://10.0.0.112:3480/

Here is the error from the log:

Log Details (ERROR)
Wed Oct 23 2019 00:33:10 GMT-0700 (Mountain Standard Time)
Error communicating with Vera API
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 157, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py", line 84, in create_connection
    raise err
  File "/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py", line 74, 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 "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 672, in urlopen
    chunked=chunked,
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 387, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/local/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/local/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/local/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/local/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/local/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 184, in connect
    conn = self._new_conn()
  File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 164, in _new_conn
    % (self.host, self.timeout),
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPConnection object at 0x729e4970>, 'Connection to 10.0.0.112 timed out. (connect timeout=30)')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 720, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 436, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.0.0.112', port=3480): Max retries exceeded with url: //data_request?id=sdata (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x729e4970>, 'Connection to 10.0.0.112 timed out. (connect timeout=30)'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/vera/__init__.py", line 88, in setup
    all_devices = controller.get_devices()
  File "/usr/local/lib/python3.7/site-packages/pyvera/__init__.py", line 193, in get_devices
    self.get_simple_devices_info()
  File "/usr/local/lib/python3.7/site-packages/pyvera/__init__.py", line 113, in get_simple_devices_info
    j = self.data_request({'id': 'sdata'}).json()
  File "/usr/local/lib/python3.7/site-packages/pyvera/__init__.py", line 109, in data_request
    return requests.get(request_url, timeout=timeout, params=payload)
  File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 75, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 504, in send
    raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPConnectionPool(host='10.0.0.112', port=3480): Max retries exceeded with url: //data_request?id=sdata (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x729e4970>, 'Connection to 10.0.0.112 timed out. (connect timeout=30)'))

I’ve also tried port 80, and adding ‘/cmh’ to the URL. I am able to get to the vera dashboard at http://10.0.0.112/cmh (port 80).

Is this integration broken?

Keith

Actually, I’m seeing the same errors recently – but only intermittently. I also have a Vera Plus set up the same way you do. Have you fixed this?

@mconnolly Mark, mine magically (hopefully intentionally) started working with the upgrade to 0.101.2

Note, my yaml needed to be modified from what appears in the documentation. So, remove the “:3480” port, and add it in as “port_3480” - and leave out the trailing forward slash.

vera:
  vera_controller_url: http://10.0.0.6/port_3480

Hope this helps…

Keith

5 Likes

This should be updated in the docs! Seems like vera changed stuff in the latest update.

Yep - can confirm no issues since following the advice of kmycek, above. :+1: