[Описание также доступно на русском]
Custom component to make phone calls from Home Assistant using GSM modems.
This component can be installed using HACS:
- Go to HACS → Integrations.
- In the top right corner select the 3-dots menu, and choose Custom repositories.
- Paste
black-roland/homeassistant-gsm-call
. - Select Integration in the Category field.
- Click the Save icon.
- Install
gsm_call
.
Use configuration.yaml
to configure the component:
notify:
- name: call
platform: gsm_call
device: /dev/serial/by-id/usb-HUAWEI_Technology_HUAWEI_Mobile-if01-port0 # modem device path
Make sure to restart Home Assistant afterward and then use notify.call
service to make a phone call. The phone number to dial is specified as target
:
action:
service: notify.call
data:
target: "+12345678901"
message: "Required by HASS but not used by integration"
By default, the call lasts about 25 seconds. This could be changed by specifying call_duration_sec
:
notify:
- name: call
platform: gsm_call
device: /dev/serial/by-id/usb-HUAWEI_Technology_HUAWEI_Mobile-if01-port0
call_duration_sec: 45
This integration is intended for making voice calls. Let's keep it simple. There are no plans to add SMS or other functionality not directly related to voice calls. For SMS support, please check out this integration.
GSM-modems usually provide multiple interfaces:
$ ls -1 /dev/serial/by-id/usb-HUAWEI_Technology_HUAWEI_Mobile-if0*
/dev/serial/by-id/usb-HUAWEI_Technology_HUAWEI_Mobile-if00-port0
/dev/serial/by-id/usb-HUAWEI_Technology_HUAWEI_Mobile-if01-port0
/dev/serial/by-id/usb-HUAWEI_Technology_HUAWEI_Mobile-if02-port0
To use this together with the sms integration, configure different interfaces for each integration. Otherwise, integrations may mutually block each other.
Please make sure ModemManager is disabled.
And enable debug logs in configuration.yaml
:
logger:
logs:
custom_components.gsm_call: debug
In general, this integration should be compatible with modems specified here.
Tested on:
- Huawei E161/E169/E620/E800.
- Huawei E171.
- Huawei E3531 (needs to be unlocked using this guide).