SMS gateway to interact with a GSM modem.
Definition at line 15 of file gateway.py.
◆ __init__()
| def homeassistant.components.sms.gateway.Gateway.__init__ |
( |
|
self, |
|
|
|
config, |
|
|
|
hass |
|
) |
| |
Initialize the sms gateway.
Definition at line 18 of file gateway.py.
◆ _notify_incoming_sms()
| def homeassistant.components.sms.gateway.Gateway._notify_incoming_sms |
( |
|
self, |
|
|
|
messages |
|
) |
| |
|
private |
Notify hass when an incoming SMS message is received.
Definition at line 137 of file gateway.py.
◆ get_and_delete_all_sms()
| def homeassistant.components.sms.gateway.Gateway.get_and_delete_all_sms |
( |
|
self, |
|
|
|
state_machine, |
|
|
|
force = False |
|
) |
| |
Read and delete all SMS in the modem.
Definition at line 84 of file gateway.py.
◆ get_firmware_async()
| def homeassistant.components.sms.gateway.Gateway.get_firmware_async |
( |
|
self | ) |
|
Get the firmware information of the modem.
Definition at line 183 of file gateway.py.
◆ get_imei_async()
| def homeassistant.components.sms.gateway.Gateway.get_imei_async |
( |
|
self | ) |
|
Get the IMEI of the device.
Definition at line 151 of file gateway.py.
◆ get_manufacturer_async()
| def homeassistant.components.sms.gateway.Gateway.get_manufacturer_async |
( |
|
self | ) |
|
Get the manufacturer of the modem.
Definition at line 169 of file gateway.py.
◆ get_model_async()
| def homeassistant.components.sms.gateway.Gateway.get_model_async |
( |
|
self | ) |
|
Get the model of the modem.
Definition at line 173 of file gateway.py.
◆ get_network_info_async()
| def homeassistant.components.sms.gateway.Gateway.get_network_info_async |
( |
|
self | ) |
|
Get the current network info of the modem.
Definition at line 159 of file gateway.py.
◆ get_signal_quality_async()
| def homeassistant.components.sms.gateway.Gateway.get_signal_quality_async |
( |
|
self | ) |
|
Get the current signal level of the modem.
Definition at line 155 of file gateway.py.
◆ init_async()
| def homeassistant.components.sms.gateway.Gateway.init_async |
( |
|
self | ) |
|
Initialize the sms gateway asynchronously. This method is also called in config flow to verify connection.
Definition at line 29 of file gateway.py.
◆ send_sms_async()
| def homeassistant.components.sms.gateway.Gateway.send_sms_async |
( |
|
self, |
|
|
|
message |
|
) |
| |
Send sms message via the worker.
Definition at line 147 of file gateway.py.
◆ sms_pull()
| def homeassistant.components.sms.gateway.Gateway.sms_pull |
( |
|
self, |
|
|
|
state_machine |
|
) |
| |
Pull device.
@param state_machine: state machine
@type state_machine: gammu.StateMachine
Definition at line 36 of file gateway.py.
◆ sms_read_messages()
| def homeassistant.components.sms.gateway.Gateway.sms_read_messages |
( |
|
self, |
|
|
|
state_machine, |
|
|
|
force = False |
|
) |
| |
Read all received SMS messages.
@param state_machine: state machine which invoked action
@type state_machine: gammu.StateMachine
Definition at line 48 of file gateway.py.
◆ terminate_async()
| def homeassistant.components.sms.gateway.Gateway.terminate_async |
( |
|
self | ) |
|
Terminate modem connection.
Definition at line 193 of file gateway.py.
◆ _first_pull
| homeassistant.components.sms.gateway.Gateway._first_pull |
|
private |
◆ _hass
| homeassistant.components.sms.gateway.Gateway._hass |
|
private |
◆ _worker
| homeassistant.components.sms.gateway.Gateway._worker |
|
private |
◆ firmware
| homeassistant.components.sms.gateway.Gateway.firmware |
◆ manufacturer
| homeassistant.components.sms.gateway.Gateway.manufacturer |
◆ model
| homeassistant.components.sms.gateway.Gateway.model |
The documentation for this class was generated from the following file: