Modem Text Sensor
The modem text sensor platform reports the network type of the Modem and the unsolicited
result codes (URC) it sends on its own, such as network registration changes.
# Example configuration entrytext_sensor: - platform: modem network_type: name: Modem Network Type urc: name: Modem URCConfiguration Variables
Section titled “Configuration Variables”- network_type (Optional): The type of network the modem is attached to, as read with the
AT+CNSMODcommand:No service,GSM,GPRS,EDGE,WCDMA,HSDPA,HSUPA,HSPA,LTE, orUnknownwhen the modem does not answer or reports another value. Only theSIM7600andSIM7670models are supported; other models are rejected at validation. The modem is queried everyupdate_intervalof the Modem component, only while it is connected, starting right after it connects. When the connection is lost, the text sensor showsNo service. All options from Text Sensor. - urc (Optional): Publishes each unsolicited result code (URC) the modem sends as one line. URCs that arrive while the modem answers a command, or before the previous URC is published, can be missed. All options from Text Sensor.
- modem_id (Optional, ID): The ID of the Modem component. Defaults to the configured modem.