Tado Hub component - error (SSL)

I’m getting an error the moment I want to enable the Tado Hub Component in my configuration.yaml

The following components and platforms could not be set up:
tado
Please check your config

Additonal error log:

    Sat Mar 03 2018 12:26:23 GMT+0100 (CET)

Error during setup of component tado
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 1318, in do_open
    encode_chunked=req.has_header('Transfer-encoding'))
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1239, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1285, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1234, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 964, in send
    self.connect()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1400, in connect
    server_hostname=server_hostname)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 407, in wrap_socket
    _context=self, _session=session)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 814, in __init__
    self.do_handshake()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 1068, in do_handshake
    self._sslobj.do_handshake()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/homeassistant/setup.py", line 148, in _async_setup_component
    component.setup, hass, processed_config)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/futures.py", line 327, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/tasks.py", line 250, in _wakeup
    future.result()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/futures.py", line 243, in result
    raise self._exception
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/homeassistant/components/tado.py", line 47, in setup
    tado = Tado(username, password)
  File "/Users/administrator/.homeassistant/deps/lib/python/site-packages/PyTado/interface.py", line 292, in __init__
    self._loginV2(username, password)
  File "/Users/administrator/.homeassistant/deps/lib/python/site-packages/PyTado/interface.py", line 154, in _loginV2
    response = self.opener.open(req)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 526, in open
    response = self._open(req, data)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 544, in _open
    '_open', req)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 1361, in https_open
    context=self._context, check_hostname=self._check_hostname)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 1320, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)>

For information purposes, I’m running Home Assistant on macOS High Sierra. I know the username/password combination is correct as the Tado device tracker component (using the same username/password) is working fine.

Any ideas on how to solve this?

I’m seeing exactly the same problem here, nearly 3 months later. Tado setup appears to be so simple, how can it be broken in this way? Did you ever find a solution?

I’m on a completely different hardware platform - Ras Pi, Hass.io

Andy.

Nobody else seeing similar problems? I also get exceptions on the Tado device tracker component too. Surely this is plug and play? THe configuration is so basic for Tado?

I’m using Hass.io prebuilt on a ras pi, surely this is the most stable/supported platform?

So many things broken on this platform, cloud integration just gives repeated errors too as many other have reported :frowning:

OK, I give up on this broken shitty platform. I’ve been programming for 35 years and I’ve never seen anything quite so shoddy. I installed the hass.io version on Ras pi as I assumed it would be more stable but not a chance. Virtually everything I’ve tried has been broken, straight out of the box.

Samba plugin worked for a day, now nothing can connect
Tado auto configure fails with exceptions
Tado manual configure fails with exceptions
Tado presence fails with exceptions
Cloud fails and gives constant exceptions in the log
Sonweb doesn’t show in a tab and doesn’t find any devices on autodetect when in its own window.

I give up. You win. I don’t have time for this.

I am not a programmer of anything and had no problem getting either tado component to work. Actually thats not true I did program the zx spectrum once to do the centigrade conversion that was in the handbook. My career in computers ended there!

Not sure what you mean by this, tado isnt an auto discovery component as far as I am aware.

Think maybe something is off in your config.yaml. One space in the wrong place or a missing colon can wreak havoc. Tado was ridiculously easy to set up as was cloud. Maybe as a “programmer” you are over thinking it. As a lay person I didnt have that problem

If you’ve finished chucking all your toys out of the pram and do genuinely want some help then maybe posting your config.yaml might be a start

Thanks for all the replies. So here’s my Tado config. Pretty simple. Throws the exception mentioned at the start of this thread. Personal details redacted.

tado:
  username: [email protected]
  password: ABCDEFGH

Heres my Tado device tracker. Also fails.

device_tracker:
  - platform: tado
    username: [email protected]
    password: xxxxxxxx
    home_id: 595e450f098fdddddadba55c

I was sort of thinking maybe something else in the config file might be the problem. Does anything in your config work or just cloud and tado?

Also I assumed it was Alexa cloud??

Also I am no expert on the errors and no techie either but since it mentions ssl have you got let’s encrypt or duck dns set up yet?