Skip to content

Dont work on ZTE MF192 #26

Description

@kav2alex2

Здравствуйте.
Больше года не обновлял интеграцию, использовал только звонки. Последние полгода ситуаций с отправкой уведомлений звонками не было, так что утверждать что "вчера оно еще работало" не могу. Модем ZTE MF192 (с год назад для него AT%icscall=1,0 я и нашел). Home Assistant Supervised 2025.12.3. Сейчас решил обновить и задействовать функционал SMS. При попытке позвонить пишет так, фактического звонка нет:

2025-12-14 11:29:22.576 DEBUG (MainThread) [custom_components.gsm_call.const] Connecting to /dev/serial/by-id/usb-ZTE_MF192_D536C4624C61DC9121749126B72C74-if00 for voice call...
2025-12-14 11:29:22.608 DEBUG (MainThread) [custom_components.gsm_call.const] Sending ZTE's magic AT%icscall=1,0 command...
2025-12-14 11:29:22.608 DEBUG (MainThread) [custom_components.gsm_call.const] Sending: AT%icscall=1,0
2025-12-14 11:29:23.112 DEBUG (MainThread) [custom_components.gsm_call.const] Dialing +71234567890...
2025-12-14 11:29:23.113 DEBUG (MainThread) [custom_components.gsm_call.const] Sending: ATD+71234567890;
2025-12-14 11:29:33.116 WARNING (MainThread) [custom_components.gsm_call.const] Timeout occurred while reading response, returning 0 line(s) collected so far
2025-12-14 11:29:33.119 DEBUG (MainThread) [custom_components.gsm_call.const] Modem replied with 
2025-12-14 11:29:33.119 DEBUG (MainThread) [custom_components.gsm_call.const] Waiting up to 20 seconds for answer...
2025-12-14 11:29:33.119 DEBUG (MainThread) [custom_components.gsm_call.const] Sending: AT+CLCC
2025-12-14 11:29:35.123 WARNING (MainThread) [custom_components.gsm_call.const] Timeout occurred while reading response, returning 0 line(s) collected so far
2025-12-14 11:29:35.124 DEBUG (MainThread) [custom_components.gsm_call.const] Modem replied with 
2025-12-14 11:29:35.124 DEBUG (MainThread) [custom_components.gsm_call.const] Hanging up...
2025-12-14 11:29:35.125 DEBUG (MainThread) [custom_components.gsm_call.const] Sending: AT+CHUP
2025-12-14 11:29:35.126 INFO (MainThread) [custom_components.gsm_call.const] Call ended: EndedReason.DECLINED
2025-12-14 11:29:35.128 DEBUG (MainThread) [custom_components.gsm_call.const] Closing connection to the modem after voice call...

При попытке отправить уведомление SMS пишет так, входящего сообщения так же нет:

2025-12-14 11:38:13.505 DEBUG (MainThread) [custom_components.gsm_call.const] Connecting to /dev/serial/by-id/usb-ZTE_MF192_D536C4624C61DC9121749126B72C74-if00 for SMS...
2025-12-14 11:38:13.523 DEBUG (MainThread) [custom_components.gsm_call.const] Sending: AT+CMGF=1
2025-12-14 11:38:18.524 WARNING (MainThread) [custom_components.gsm_call.const] Timeout occurred while reading response, returning 0 line(s) collected so far
2025-12-14 11:38:18.525 DEBUG (MainThread) [custom_components.gsm_call.const] Modem replied with 
2025-12-14 11:38:18.525 DEBUG (MainThread) [custom_components.gsm_call.const] Closing connection to the modem after SMS...
2025-12-14 11:38:18.584 ERROR (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Error executing script. Error for call_service at pos 1: Failed to set text mode: 
2025-12-14 11:38:18.585 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [281471841591328] Error handling message: Failed to set text mode:  (home_assistant_error) test-user from 192.168.1.13 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36)

Модем тот же, сим-карта та же (карта живая, баланс положительный, с телефона работает).
Настройки в configuration.yaml такие:

# GSM-Call  
notify:
  - name: call
    platform: gsm_call
    device: /dev/serial/by-id/usb-ZTE_MF192_D536C4624C61DC9121749126B72C74-if00
    hardware: zte
    call_duration_sec: 40
# GSM-Call end    

# GSM-Call-SMS
  - name: sms
    platform: gsm_call
    type: sms
    device: /dev/serial/by-id/usb-ZTE_MF192_D536C4624C61DC9121749126B72C74-if00
# GSM-Call-SMS end

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions