Invalid config for [sms]: No device at /dev/ttyUSB3 found for dictionary value @ data['sms']['device']. Got '/dev/ttyUSB3'. (See /config/configuration.yaml, line 210).
Do you see your modem? Then make sure you are sharing that serial device with the container. (I am not an expert in docker but there is a way to do this)
If this work please share the solution to update the documentation
SOLVED I needed libgammu-dev installed at the base system level.
Leaving my post below for reference…
================================
Thanks for your work on this @Oscar_Calvo.
I’m looking forward to replacing my existing sms integration call gammu through a parameterised shell_command.
Unfortunately I’m unable to get python-gammu installed on my Python3.7 venv running on Ubuntu 18.04 when the sms integration is configured.
Running the install command under the homeassistant user within the activated venv gives me some clues as to what is going on:
(homeassistant) homeassistant@moxon:~/.homeassistant$ python3.7 -m pip install python-gammu
Collecting python-gammu
Using cached python-gammu-2.12.tar.gz (135 kB)
ERROR: Command errored out with exit status 100:
command: /srv/homeassistant/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ea2vl0z7/python-gammu/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ea2vl0z7/python-gammu/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-ea2vl0z7/python-gammu/pip-egg-info
cwd: /tmp/pip-install-ea2vl0z7/python-gammu/
Complete output (9 lines):
Package gammu was not found in the pkg-config search path.
Perhaps you should add the directory containing `gammu.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gammu' found
Package gammu-smsd was not found in the pkg-config search path.
Perhaps you should add the directory containing `gammu-smsd.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gammu-smsd' found
Can not find supported Gammu version using pkg-config!
----------------------------------------
ERROR: Command errored out with exit status 100: python setup.py egg_info Check the logs for full command output.
gammu-smsd is installed (with sudo apt install gammu-smsd) but I’m guessing that the above is related to permissions?
I’m rather out of my depth at this point so would appreciate any pointers you could provide.
hi,
I’m a noob with home assistant, and I’m coming from domoticz. I installed hass.io, and I’m trying to install gammu (I write a python script to control domoticz via SMS : start alarm, stop alarm, send SMS when something happened etc… and I need to do something like this). But I don’t understand what is my problem, and what I need to do to install this addon. Only modification in configuration.yaml? must I install some script? must I install gammu (apk)?
If somebody can help, it will be really nice
Thanks a lot
my conf: hassos 3.9 on rasberry pi 3B home assistant 0.105.2
bus 001 device 005: ID 12d1:15ca.
for huawei stick.
I create the file in udev like for raspberry 4? No I think not…
“create a config file for a USB config” how I do that…
You need to create udev rule in a configuration USB stick for the some Huawei sticks to be recognized.
Run lsusb, its output looks like this:
bus 000 device 001: ID 1FFF:342a
bus 001 device 005: ID 12d1:15ca <-------- Huawei is usally 12d1
bus 000 device 002: ID 2354:5352
bus 000 device 002: ID 1232:15ca
Identify the brand for your GSM modem, copy the brand_Id and product_id (In this case brand_id = 12d1 and product_Id = 15ca)
Set this content in file udev\10-gsm-modem.rules in the configuration USB:
(Replace brand_Id and product_id for the numbers reported by lsusb)
Plug the USB stick, reboot the device, run lsusb again.
The resulting product id now should be different and the brand id should be the same.
And ls -l /dev/*USB* should now report your device.
If the device is still not recognized, remove the parameter -X from the usb_modesiwtch command and reboot again.
Hi, trying to setup the new integration, I get this error : {'Text': 'No SMSC number given. Provide it manually or use the one configured on the phone.', 'Where': 'SendSMS', 'Code': 31}
This is because the PIN is missing I think, is it possible to add it in the YAML config ?