Configure a GSM-Modem Huawei E3531 on a rpi3 with Hassio

Hello I am still trying since a week to configure my GSM-Modem to send notifications with SMS.

There are two ways to send a sms.

  1. Huawei LTE integration. If I plug my Huawei LTE Modem on the Pi and try to install the integration with the URL: http://192.168.1.1 I will get a timeout.
    What ist my mistake?

  2. In https://www.home-assistant.io/integrations/sms/ there is the second way to switch the Modem in Modem-mode with a second USB-memory. (udev\10-gsm-modem.rules)

I have tried it with some different usb-memory and formats ( ext4, ntfs, extfat…)
But it is not working.

If I restart my HA with both sticks and run this command I will get that error

~ $ ls -l /dev/USB
ls: /dev/USB: No such file or directory

Which USB-memory is requiered?

There is already no Pin set.
I can send SMS by a mobilephone.

Thank you so much.

Exact same problem here.

Spent hours on this thread without any luck for now : Send SMS with USB GSM modem when alarm triggered

Please make sure the rule file is stored with LF encoding (Unix) and not CRLF encoding (Windows).
Use an editor like VSCode to make sure.

I have checked it and now it is LF encoding.

Can you confirm this?

ACTION=="add" \
, ATTRS{idVendor}=="12d1" \
, ATTRS{idProduct}=="1f01" \
, RUN+="/sbin/usb_modeswitch -X -v 12d1 -p 1f01"

It is Unix LF.

But it is not working.

Which format should be the USB memory? (exfat, ntfs …)
Frame size???
Does it matter?

Thanks a lot

Does anybody have a solution??? Thank`s a lot

I have a Huawei e3531i-2.
I was able to make it work on my supervised HA a while ago, following the documentation (not straightforward though).

Now, it does not work anymore.
I did the usb-modeswitch, and gammu config.

then the usb modem is switch correctly to modem mode :

~» lsusb
Bus 001 Device 008: ID 12d1:1001 Huawei Technologies Co., Ltd. E161/E169/E620/E800 HSDPA Modem
…

I also installed gammu, but gammu is unable to open “/dev/ttyUSB0”, hence the file exists.

“lsof” says its open by ModemMana.

$> sudo lsof /dev/ttyUSB0
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
ModemMana 408 root 8u CHR 188,0 0t0 414 /dev/ttyUSB0

I think modem manager is preventing home assistant or gammu to access the modem.
I saw in other threads (z-wave), a solution would be to deactivate modemmanager.
Its seems confirmed by:

$> mmcli -L
/org/freedesktop/ModemManager1/Modem/0 [huawei] E3531

$> mmcli -m 0

General | dbus path: /org/freedesktop/ModemManager1/Modem/0
| device id: xxxx1b7c3789810265xxx119f0699c9baecxxxxx

Hardware | manufacturer: huawei
| model: E3531
| revision: 22.521.23.00.00
…

Consequently I deactivate it :

$> sudo systemctl disable ModemManager
$> sudo reboot

ET VOILA :

$> gammu --identify
Device : /dev/ttyUSB0
Manufacturer : Huawei
Model : E3531 (E3531)
Firmware : xx.xxx.xx.00.00
IMEI : xxxxxxxxxxxxxxx
SIM IMSI : xxxxxxxxxxxxxxx

2 Likes

SMS integration stopped working on the last core update

  • working : 2021.6.6
  • not working: 2021.7.3

( I know, but releases go so fast)…

Any one have a clue ?

Do you have any news? It stopped working.
Did you find a workaround?

Thank`s a lot

I have changed the modem because with the Huawei it didn`t work.

Now I am using this

Before the update to HA 7.x it wos working fine

Hello, can you share how did you configure the SIM800 please?rr!

I use this integration SMS notifications via GSM-modem - Home Assistant

It is working fine.