Skip to content

black-roland/homeassistant-gsm-call

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Home Assistant GSM Call

[Описание также доступно на русском]

Custom component to make phone calls from Home Assistant using GSM modems.

Installation

This component can be installed using HACS:

  1. Go to HACSIntegrations.
  2. In the top right corner select the 3-dots menu, and choose Custom repositories.
  3. Paste black-roland/homeassistant-gsm-call.
  4. Select Integration in the Category field.
  5. Click the Save icon.
  6. Install gsm_call.

Configuration and usage

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"

Call duration

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

Support for SMS and other features

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.

Using together with the SMS 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.

Troubleshooting

Please make sure ModemManager is disabled.

And enable debug logs in configuration.yaml:

logger:
  logs:
    custom_components.gsm_call: debug

Supported hardware

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).