The RPI and the laptop are exactly at the same location (1 feet distance)…
I think there is a typo in the Service Data:
Im not absolutely sure…
message: Test
I think you need quotes in the message data but not in the message word:
message: "test"
Also put quotes in your phone number
sms:
device: /dev/ttyUSB1
notify:
- platform: sms
name: sms_test
recipient: '+number with quotes including country code and use + at the beginning'
Unfortunately I broken my USB modem after bad handing (The connector of SIM is twisted)
So, I am currently in the research of other modem
For the moment I found E3372h but apparently not works for this integration
However thanks very much for your help !
I am so sorry, but that model could actually work. You would just need to change the udev rule config to match the new device.
Great !
When I read that :
I think that all E3372 not working.
But it is GOOD !!! that works perfectly ! Thank’sss
(I added ’ ’ for my number phone)
Just to confirm, is E3372h working for you?
If that is the case I will update the docs but we need an official report.
Please confirm.
Yes, E3372h of the operator Orange
Is there anything more i coud try?
Can i somehow access directly to the gammu service?
Thank you very much for your ideas.
Hello
I’m trying to connect my Alcatel X221S (it is on ‘may work’ list). I’m running hassos on Raspberry Pi 4.
When I connect modem to usb port in raspberry, there are no results when running ls -l /dev/*USB*
. When running lsusb
, modem can be found.
I tried that method with udev\10-gsm-modem.rules
file on CONFIG usb, but with no results.
Do you have any ideas?
Thanks
Can you please paste the output of lsusb
before and after connecting the device?
And also paste the content of 10-gsm-modem.rules
Before connecting
Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 002: ID 2109:3431
Bus 002 Device 001: ID 1d6b:0003
Bus 001 Device 008: ID 1cf1:0030
After connecting
Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 009: ID 1bbb:f000
Bus 001 Device 002: ID 2109:3431
Bus 002 Device 001: ID 1d6b:0003
Bus 001 Device 008: ID 1cf1:0030
10-gsm-modem.rules
:
ACTION=="add" \
, ATTRS{idVendor}=="1bbb" \
, ATTRS{idProduct}=="f000" \
, RUN+="/sbin/usb_modeswitch -X -v 1bbb -p f000"
The -X
parameter is only for Huawei devices, can you try to remove it?
ACTION=="add" \
, ATTRS{idVendor}=="1bbb" \
, ATTRS{idProduct}=="f000" \
, RUN+="/sbin/usb_modeswitch -v 1bbb -p f000"
Tried it already - no effect.
Another question: How does that /sbin/usb_modeswitch
work if I don’t have it installed on my raspberry? I mean, I tried to run it manually via ssh and I couldn’t find such program
HassOS for Raspberry Pi 4
Maybe that’s problem with my CONFIG usb?
I formatted it like that mkfs.vfat -n 'CONFIG' -I /dev/sdb1
and then created directory udev
and 10-gsm-modem.rules
file inside it.
Can you activate sshd
on port 22222 using the instructions here?
From there you will be able to manually run usb_modeswitch
.
To send a notification when the internet is down I also want to use a GSM modem, initially I wanted to do this via a MySensors node, only then I came across this option which I think is better, less links after all.
Only I wondered if I can also use this integration with a GSM modem (Siemens / Centerion MC35i) with serial (RS232) port (via a USB -> RS232 cable) or possibly via a ser2net raspberry-pi or comm server.
Why the MC35i? well I still have it and it just works, I can send and receive messages via the terminal.
Second question; there is a possibility to receive SMS or cell broadcast messages (NL-Alert dutch emergency message).
SMS is less important here, but a Cell broadcast message is a wish, for example, to be able to switch off the ventilation.
I run Hassio on an Intel Nuc in a Proxmox virtual machine.
If you can establish a communication via serial device then yes, you can use this.
I am working on receiving SMS notifications, current I am stuck as I need a PR to be approved but the maintainers have not look at it.
I would appreciate that if a core dev is seeing this that they look at the PR, my next PR will add support for:
- Moving IO outside of the hassio main loop (This is a bug that should be fixed)
- Receice SMS messages and send hass events.
Thanks a lot!
Looking forward to th SMS receiving function.
I am using a Huawei E180 HSPA USB stick with hassio running on the docker of Synology, it works perfect! This is the most important function I need from hassio!
btw, I prefer to send unicode message (ex. Chinese) rather than just english. Modifing line 39 of notify.ty from "Unicode": False
to "Unicode": True
could help.
of cause, smarter coding is to select unicode or not based on the message body, but that’s to complicated for me
Thanks again! for the joy from HA