sampsyo / hass-smartthinq

Home Assistant component for LG SmartThinQ HVAC devices
MIT License
281 stars 98 forks source link

straight up does not work #77

Open trentjw opened 3 years ago

trentjw commented 3 years ago

does not like the token that is named refresh token and will not load

trentjw commented 3 years ago

2020-08-12 22:01:18 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant. 2020-08-12 22:01:18 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for smartthinq which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant. 2020-08-12 22:01:18 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for blueiris which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant. 2020-08-12 22:01:21 WARNING (SyncWorker_4) [urllib3.connectionpool] Retrying (Retry(total=4, connect=5, read=5, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: UNSUPPORTED_PROTOCOL] unsupported protocol (_ssl.c:1056)'))': /api/member/login 2020-08-12 22:01:22 WARNING (SyncWorker_4) [urllib3.connectionpool] Retrying (Retry(total=3, connect=5, read=5, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: UNSUPPORTED_PROTOCOL] unsupported protocol (_ssl.c:1056)'))': /api/member/login 2020-08-12 22:01:25 WARNING (SyncWorker_4) [urllib3.connectionpool] Retrying (Retry(total=2, connect=5, read=5, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: UNSUPPORTED_PROTOCOL] unsupported protocol (_ssl.c:1056)'))': /api/member/login 2020-08-12 22:01:29 WARNING (SyncWorker_4) [urllib3.connectionpool] Retrying (Retry(total=1, connect=5, read=5, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: UNSUPPORTED_PROTOCOL] unsupported protocol (_ssl.c:1056)'))': /api/member/login 2020-08-12 22:01:29 WARNING (MainThread) [homeassistant.setup] Setup of smartthinq is taking over 10 seconds. 2020-08-12 22:01:37 WARNING (SyncWorker_4) [urllib3.connectionpool] Retrying (Retry(total=0, connect=5, read=5, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: UNSUPPORTED_PROTOCOL] unsupported protocol (_ssl.c:1056)'))': /api/member/login 2020-08-12 22:01:37 ERROR (MainThread) [homeassistant.setup] Error during setup of component smartthinq Traceback (most recent call last): File "/srv/homeassistant/lib/python3.7/site-packages/urllib3/connectionpool.py", line 677, in urlopen chunked=chunked, File "/srv/homeassistant/lib/python3.7/site-packages/urllib3/connectionpool.py", line 381, in _make_request self._validate_conn(conn) File "/srv/homeassistant/lib/python3.7/site-packages/urllib3/connectionpool.py", line 978, in _validate_conn conn.connect() File "/srv/homeassistant/lib/python3.7/site-packages/urllib3/connection.py", line 371, in connect sslcontext=context, File "/srv/homeassistant/lib/python3.7/site-packages/urllib3/util/ssl.py", line 384, in ssl_wrap_socket return context.wrap_socket(sock, server_hostname=server_hostname) File "/usr/lib/python3.7/ssl.py", line 412, in wrap_socket session=session File "/usr/lib/python3.7/ssl.py", line 853, in _create self.do_handshake() File "/usr/lib/python3.7/ssl.py", line 1117, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL: UNSUPPORTED_PROTOCOL] unsupported protocol (_ssl.c:1056)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/srv/homeassistant/lib/python3.7/site-packages/requests/adapters.py", line 449, in send timeout=timeout File "/srv/homeassistant/lib/python3.7/site-packages/urllib3/connectionpool.py", line 767, in urlopen response_kw File "/srv/homeassistant/lib/python3.7/site-packages/urllib3/connectionpool.py", line 767, in urlopen response_kw File "/srv/homeassistant/lib/python3.7/site-packages/urllib3/connectionpool.py", line 767, in urlopen **response_kw [Previous line repeated 2 more times] File "/srv/homeassistant/lib/python3.7/site-packages/urllib3/connectionpool.py", line 727, in urlopen method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] File "/srv/homeassistant/lib/python3.7/site-packages/urllib3/util/retry.py", line 439, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='aic.lgthinq.com', port=46030): Max retries exceeded with url: /api/member/login (Caused by SSLError(SSLError(1, '[SSL: UNSUPPORTED_PROTOCOL] unsupported protocol (_ssl.c:1056)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 191, in _async_setup_component result = await task File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, self.kwargs) File "/home/homeassistant/.homeassistant/custom_components/smartthinq/init.py", line 69, in setup client = wideq.Client.from_token(refresh_token, region, language) File "/srv/homeassistant/lib/python3.7/site-packages/wideq/client.py", line 210, in from_token client.refresh() File "/srv/homeassistant/lib/python3.7/site-packages/wideq/client.py", line 193, in refresh self._session, self._devices = self.auth.start_session() File "/srv/homeassistant/lib/python3.7/site-packages/wideq/core.py", line 362, in start_session self.gateway.country, self.gateway.language) File "/srv/homeassistant/lib/python3.7/site-packages/wideq/core.py", line 258, in login return lgedm_post(url, data) File "/srv/homeassistant/lib/python3.7/site-packages/wideq/core.py", line 202, in lgedm_post res = session.post(url, json={DATA_ROOT: data}, headers=headers) File "/srv/homeassistant/lib/python3.7/site-packages/requests/sessions.py", line 578, in post return self.request('POST', url, data=data, json=json, kwargs) File "/srv/homeassistant/lib/python3.7/site-packages/requests/sessions.py", line 530, in request resp = self.send(prep, send_kwargs) File "/srv/homeassistant/lib/python3.7/site-packages/requests/sessions.py", line 643, in send r = adapter.send(request, kwargs) File "/srv/homeassistant/lib/python3.7/site-packages/requests/adapters.py", line 514, in send raise SSLError(e, request=request) requests.exceptions.SSLError: HTTPSConnectionPool(host='aic.lgthinq.com', port=46030): Max retries exceeded with url: /api/member/login (Caused by SSLError(SSLError(1, '[SSL: UNSUPPORTED_PROTOCOL] unsupported protocol (_ssl.c:1056)'))) 2020-08-12 22:01:39 ERROR (MainThread) [homeassistant] Error doing job: SSL error in data received Traceback (most recent call last): File "/usr/lib/python3.7/asyncio/sslproto.py", line 526, in data_received ssldata, appdata = self._sslpipe.feed_ssldata(data) File "/usr/lib/python3.7/asyncio/sslproto.py", line 207, in feed_ssldata self._sslobj.unwrap() File "/usr/lib/python3.7/ssl.py", line 767, in unwrap return self._sslobj.shutdown() ssl.SSLError: [SSL: KRB5_S_INIT] application data after close notify (_ssl.c:2609)