Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smappee connection error #30084

Closed
Trouble-51 opened this issue Dec 19, 2019 · 2 comments
Closed

Smappee connection error #30084

Trouble-51 opened this issue Dec 19, 2019 · 2 comments

Comments

@Trouble-51
Copy link

Home Assistant release with the issue:

arch x86_64
dev false
docker true
hassio true
os_name Linux
python_version 3.7.5
timezone Europe/Lisbon
version 0.103.2
virtualenv false
mode yaml
resources 25
views 9

Last working Home Assistant release (if known):

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

ubuntu on intel-nu

Integration:

https://www.home-assistant.io/integrations/smappee/

Description of problem:

the error message keep repeating. I have made no changes to the config file

no problem to ping 192.168.1.62 from terminal in Hass.io nor IOS

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

smappee:
  host: 198.168.1.62
  client_id: XXXXXXXX
  client_secret: XXXXXXX
  username: Trouble
  password: XXXXXX

Traceback (if applicable):

2019-12-19 22:02:47 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 408, in _async_add_entity
    await entity.async_update_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 286, in async_update_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 320, in _async_write_ha_state
    state = self.state
  File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 165, in state
    return self.hvac_mode
  File "/usr/src/homeassistant/homeassistant/components/iaqualink/climate.py", line 69, in hvac_mode
    state = AqualinkState(self.heater.state)
  File "/usr/src/homeassistant/homeassistant/components/iaqualink/climate.py", line 132, in heater
    return self.dev.system.devices[heater]
KeyError: 'swc_heater'
2019-12-19 22:02:48 ERROR (SyncWorker_18) [homeassistant.components.smappee] Local Smappee device authentication failed (HTTPConnectionPool(host='198.168.1.62', port=80): Max retries exceeded with url: /gateway/apipublic/logon (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7fc8e83b9150>, 'Connection to 198.168.1.62 timed out. (connect timeout=5)')))
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 1252, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/local/lib/python3.7/http/client.py", line 1298, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/local/lib/python3.7/http/client.py", line 1247, 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 0x7fc8e83b9150>, 'Connection to 198.168.1.62 timed out. (connect timeout=5)')

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='198.168.1.62', port=80): Max retries exceeded with url: /gateway/apipublic/logon (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7fc8e83b9150>, 'Connection to 198.168.1.62 timed out. (connect timeout=5)'))

Additional information:

@springstan
Copy link
Member

springstan commented Dec 20, 2019

@Trouble-51 there is an issue in the github repo of the used python package smappy. Since this is not directly related to HA please close this issue and comment there. Thank you :)

@Trouble-51
Copy link
Author

moved to smappy energy issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants