Home Assistant release with the issue:
Last working Home Assistant release (if known):
Operating environment (Hass.io/Docker/Windows/etc.):
Component/platform:
Description of problem:
My Smart Life account is not recognised
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
tuya:
username: [email protected]
password: my_pwd
country_code: 40
platform: smart_life
Traceback (if applicable):
ERROR (MainThread) [homeassistant.setup] Error during setup of component tuya
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 160, 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 57, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/local/lib/python3.7/socket.py", line 748, 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.7/site-packages/urllib3/connectionpool.py", line 603, in urlopen
chunked=chunked)
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 344, in _make_request
self._validate_conn(conn)
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 843, in _validate_conn
conn.connect()
File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 316, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 169, in _new_conn
self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x72ce8a50>: 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.7/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 641, in urlopen
_stacktrace=sys.exc_info()[2])
File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 399, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='px1.tuyaus.com', port=443): Max retries exceeded with url: /homeassistant/auth.do (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x72ce8a50>: 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/src/homeassistant/homeassistant/setup.py", line 172, in _async_setup_component
component.setup, hass, processed_config # type: ignore
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/tuya/__init__.py", line 62, in setup
tuya.init(username, password, country_code, platform)
File "/usr/local/lib/python3.7/site-packages/tuyaha/tuyaapi.py", line 44, in init
self.get_access_token()
File "/usr/local/lib/python3.7/site-packages/tuyaha/tuyaapi.py", line 59, in get_access_token
'from': 'tuya'
File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 116, in post
return request('post', url, data=data, json=json, **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 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='px1.tuyaus.com', port=443): Max retries exceeded with url: /homeassistant/auth.do (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x72ce8a50>: Failed to establish a new connection: [Errno -3] Try again'))
Additional information:
I tried two accounts created in the Smart Life application, but it still didn't work.
I have read countless articles on this topic, I have checked my configuration file and everything seems ok. I don't know what I'm wrong with.
I am getting the same exact error, what can I do? If someone could help it would be appreciated. @AREASmartHomes did you find any solution to this?
I am getting the same exact error, what can I do? If someone could help it would be appreciated. @AREASmartHomes did you find any solution to this?
No, not yet .
Same the problem
@Areassmarthome, solved? @marcopolosa
@roberdlv @AREASmartHomes @marcopolosa
Have you tried quoting all the values (as stated in the "long" descr)?
I just tried and it worked:
tuya:
platform: "smart_life"
username: "3419876543"
password: "MyVerySecurePassword"
country_code: "39"
I have exact same issue
Same issue here, quotes do not help. Also on the smart_life platform.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 馃憤
This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
again not working SmartLife platform
Integration with Tuya Smart still doesn't work
Reopening this issue since it has not been solved yet.
Having the same issue except I don't get any log output. Just not working with either a tuya login or smart life login. Both work within the mobile apps respectively.
Same problem, not working SmartLife platform
You must try setup a mobile phone number first and after use this as the username.
To setup that go to: Me / More Services / Mobile Notification (or SMS notification) on Smart Life App or Tuya App.
Anyhow, it seems it does not support energy reading from power metering switches :(
Maybe it's a limit of the cloud API? If so, could interfacing directly to nodes on the local network via tuyapi ( https://github.com/codetheweb/tuyapi ) help?
It appears the API has issues with special characters in the password. Using just alphanumerical characters allowed me to add the integration.
Most helpful comment
Reopening this issue since it has not been solved yet.