core: Sensors for Huawei B535-232 stops working after about 5 minutes

Home Assistant release with the issue:

Last working Home Assistant release (if known):

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

Integration:

Description of problem: After about 5 minutes, the sensors stops updating and the send-sms stops working. Logs show that it is because the home assistant clients gets deauthenticated. This might be because session tokens expire faster on the B535-232 than on other models?

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

huawei_lte:
  - url: http://10.0.0.1/
    username: admin
    password: !secret huawei_password
    notify: 
      recipient:
        - "RETRACTED"

Traceback (if applicable):

2019-12-05 18:30:28 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal read error on socket transport
Traceback (most recent call last):
  File "/usr/lib/python3.7/asyncio/selector_events.py", line 801, in _read_ready__data_received
    data = self._sock.recv(self.max_size)
TimeoutError: [Errno 110] Connection timed out
2019-12-05 18:32:27 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal read error on socket transport
Traceback (most recent call last):
  File "/usr/lib/python3.7/asyncio/selector_events.py", line 801, in _read_ready__data_received
    data = self._sock.recv(self.max_size)
TimeoutError: [Errno 110] Connection timed out
2019-12-05 19:31:32 INFO (MainThread) [homeassistant.components.websocket_api.http.connection.140606899630936] Connection closed by client
2019-12-05 19:42:19 INFO (SyncWorker_2) [custom_components.huawei_lte] device_signal requires authorization, excluding from future updates
2019-12-05 19:42:19 INFO (SyncWorker_2) [custom_components.huawei_lte] wlan_host_list requires authorization, excluding from future updates

Additional information: The 535-232 is not officially supported by the python huawei-lte-api. The API has been tested and found working with the exception of send-sms. There is already a pull request to also make that work for the B535-232: https://github.com/Salamek/huawei-lte-api/pull/54

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (13 by maintainers)

Commits related to this issue

Most upvoted comments

Ok, thanks again!