core: Huawei E3276 stops sending SMS until HA restart

The problem

I keep having issues sending SMS on my Huawei 4G dongle which is connected to my router. It will stop working with the following in the log:

Logger: homeassistant.components.huawei_lte.notify Source: components/huawei_lte/notify.py:63 Integration: Huawei LTE Error in logs: Could not send to [‘tel-number’]: 125001: Unknown

A restart of HA resolves this so I’m assuming it’s an issue with the integration?

I’ve enabled debug logging for the integration so I’ll wait and see when it goes wrong what that throws up…

What version of Home Assistant Core has the issue?

core-2024.1.6

What was the last working version of Home Assistant Core?

core-2024.1.6

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Huawei

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

service: notify.huawei_lte
data:
  message: test

Anything in the logs that might be useful for us?

Logger: homeassistant.components.huawei_lte.notify
Source: components/huawei_lte/notify.py:63
Integration: Huawei LTE
Error in logs: Could not send to ['tel-number']: 125001: Unknown

Additional information

No response

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 15 (3 by maintainers)

Most upvoted comments

I have the exact same issue with my Huawei E303 HSDPA 3G USB stick (FW: 22.318.25.00.414 HW: CH1E3531SM) while trying to send SMS. The integration is configured with the stick IP address and without login/password.

When HA just started, I can send SMS using the service: notify.huawei_lte without errors, SMS appear in the web server Outbox and are correctly sent and received.

After a short time (less than 10 minutes) calling again the service: notify.huawei_lte with the same parameters raises the error Could not send to ['XXX-YYY']: 125001: Unknown and the SMS is not sent and does not appear in the webserver outbox. The device sensors on the integration page are still updated properly. Reloading the integration does not solve the issue. Only HA restart solves the issue for a short amount of time.

Debug logs attached: home-assistant_huawei_lte_2025-06-25T13-00-53.050Z_anonymized.log You can see SMS being sent at 14:45:41.753 and 14:50:00.431 then error at 15:00:00.416

It appears that the token or the connection becomes invalid after some time? I created a short Python script based on huawei-lte-api to send a SMS:

from huawei_lte_api.Client import Client
from huawei_lte_api.Connection import Connection
from huawei_lte_api.enums.client import ResponseEnum

with Connection('http://192.168.8.1/') as connection:
    client = Client(connection)
    ret = client.sms.send_sms(["XXX-YYY"], "Test message")
    if ret == ResponseEnum.OK.value:
        print('SMS was send successfully')
    else:
        print('Error: ' + str(ret))

When I call this script the SMS is sent every time. The difference with the integration is that the connection is always recreated.