Hello,
I red the topic, found similar situation as the one I’m facing but didn’t understand the answer.
Home Assistant is running on a Raspberry Pi4 and I try to use a Huawei E3531 Surf Stick.
I log to the Pi4 with ssh then enter
lsusb
Bus 001 Device 007: ID 12d1:1f01 ← The Huawei E3531
Bus 001 Device 006: ID 0658:0200
Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 004: ID 0bda:5411
Bus 001 Device 003: ID 13fe:4200
Bus 001 Device 002: ID 2109:3431
Bus 002 Device 002: ID 1f75:0621
Bus 002 Device 001: ID 1d6b:0003
Bus 001 Device 005: ID 0403:6015
To see it as a modem, I formatted a USB2 key to FAT32, called it CONFIG create the directory udev and inside this directory the file : 10-gsm-modem.rules where Enter are LF (did it under unix system).
ACTION==“add”
, ATTRS{idVendor}==“12d1”
, ATTRS{idProduct}==“1f01”
, RUN+="/sbin/usb_modeswitch -X -v 12d1 -p 1f01"
I plug the USB2 key and the Huawei E3531 to the Pi4 then reboot it.
Once rebboted, I connect to the Pi4 with ssh then enter
ls -l /dev/USB
crw-rw---- 1 root audio 188, 0 Jun 19 19:20 /dev/ttyUSB0
crw-rw---- 1 root audio 188, 1 Jun 19 19:23 /dev/ttyUSB1
crw-rw---- 1 root audio 188, 2 Jun 19 19:20 /dev/ttyUSB2
crw-rw---- 1 root audio 188, 3 Jun 19 19:23 /dev/ttyUSB3
I added in configuration.yaml these lines :
sms:
device: /dev/ttyUSB2
then rebooted the Home Assistant and now I see a new integration :
![Capture d’écran 2021-06-19 à 19.36.17](https://community-assets.home-assistant.io/original/3X/a/2/a29044b0a5625002c828725f46a595ecd8a781e3.png)
If try configure
![Capture d’écran 2021-06-19 à 19.38.51](https://community-assets.home-assistant.io/original/3X/9/a/9abb3ac2e37b5409cddd02ccad31189b94ad18b4.png)
but it fails. I also try with
/dev/ttyUSB0
/dev/ttyUSB1
/dev/ttyUSB3
it also fails…
Help is welcome
2 more things :
1/ when I enter lsusb the list is a bit different :
Bus 001 Device 008: ID 12d1:155e ←
Bus 001 Device 006: ID 0658:0200
Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 004: ID 0bda:5411
Bus 001 Device 003: ID 13fe:4200
Bus 001 Device 002: ID 2109:3431
Bus 002 Device 002: ID 1f75:0621
Bus 002 Device 001: ID 1d6b:0003
Bus 001 Device 005: ID 0403:6015
2/ The SIM card I received is protected with a PIN code,
do I need to remove it ?
Update: 2021/06/21
I plug the key on a computer and desactivate the pin code. Then after several reboots, Home assistant accepted the integration on /dev/ttyUSB3.
I tested it to send a message and it works.