Skip to content

Error on startup #11

@nirblip

Description

@nirblip

Hi,
after the HA restart i get this error log:

Logger: homeassistant.components.climate

Source: custom_components/electrasmart/climate.py:309
Integration: Climate (documentation, issues)
First occurred: 1:22:31 AM (1 occurrences)
Last logged: 1:22:31 AM

electrasmart: Error on device update!
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/electrasmart/client.py", line 175, in _post_with_sid_check
return self._post(cmd, data, os_details, False)
File "/usr/local/lib/python3.9/site-packages/electrasmart/client.py", line 181, in _post
return ElectraAPI.post(cmd, data, self._get_sid(), os_details, is_second_try)
File "/usr/local/lib/python3.9/site-packages/electrasmart/client.py", line 52, in post
raise cls.RenewSidAndRetryException(j)
electrasmart.client.ElectraAPI.RenewSidAndRetryException

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/electrasmart/client.py", line 149, in renew_sid
self.sid = get_shared_sid(self.imei, self.token)
File "/usr/local/lib/python3.9/site-packages/electrasmart/client.py", line 115, in get_shared_sid
ElectraAPI.SID = generate_sid(imei, token)
File "/usr/local/lib/python3.9/site-packages/electrasmart/client.py", line 101, in generate_sid
result = ElectraAPI.post(
File "/usr/local/lib/python3.9/site-packages/electrasmart/client.py", line 52, in post
raise cls.RenewSidAndRetryException(j)
electrasmart.client.ElectraAPI.RenewSidAndRetryException

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 431, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 651, in async_device_update
await task
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/electrasmart/climate.py", line 309, in update
self.ac.update_status()
File "/usr/local/lib/python3.9/site-packages/electrasmart/client.py", line 157, in update_status
self._status = self._fetch_status()
File "/usr/local/lib/python3.9/site-packages/electrasmart/client.py", line 166, in _fetch_status
r = self._post_with_sid_check(
File "/usr/local/lib/python3.9/site-packages/electrasmart/client.py", line 177, in _post_with_sid_check
self.renew_sid()
File "/usr/local/lib/python3.9/site-packages/electrasmart/client.py", line 154, in renew_sid
raise Exception(f"Failed to renew sid: {exc.res_desc}")
Exception: Failed to renew sid: [result description was not provided in post response]

any suggestions what i did wrong?
PS. using the command line API works, i am able to turn my AC on and off.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions