2024-07-17 02:07:51 +02:00
|
|
|
logger:
|
2024-06-15 00:44:50 +02:00
|
|
|
|
|
|
|
modem:
|
2024-07-17 02:07:51 +02:00
|
|
|
id: atmodem
|
2024-07-21 03:33:03 +02:00
|
|
|
rx_pin: GPIO26
|
|
|
|
tx_pin: GPIO27
|
2024-07-23 00:44:20 +02:00
|
|
|
power_pin:
|
|
|
|
number: GPIO04
|
|
|
|
inverted: True
|
2024-06-15 00:44:50 +02:00
|
|
|
model: SIM7600
|
|
|
|
apn: orange
|
|
|
|
pin_code: "0000"
|
2024-07-18 20:38:51 +02:00
|
|
|
enable_on_boot: True
|
2024-08-07 00:18:46 +02:00
|
|
|
enable_cmux: True
|
2024-07-17 02:07:51 +02:00
|
|
|
init_at:
|
|
|
|
- AT
|
|
|
|
on_not_responding:
|
|
|
|
logger.log: "modem not responding"
|
2024-07-18 18:41:52 +02:00
|
|
|
on_connect:
|
|
|
|
logger.log: "got IP"
|
|
|
|
on_disconnect:
|
|
|
|
logger.log: "lost IP"
|
|
|
|
|
2024-08-07 00:18:46 +02:00
|
|
|
text_sensor:
|
|
|
|
- platform: modem
|
|
|
|
network_type:
|
|
|
|
name: network type
|
|
|
|
|
|
|
|
sensor:
|
|
|
|
- platform: modem
|
|
|
|
rssi:
|
|
|
|
name: rssi
|
|
|
|
ber:
|
|
|
|
name: ber
|
|
|
|
latitude:
|
|
|
|
name: Latitude
|
|
|
|
longitude:
|
|
|
|
name: Longitude
|
|
|
|
altitude:
|
|
|
|
name: Altitude
|
2024-08-11 18:46:16 +02:00
|
|
|
|
|
|
|
switch:
|
|
|
|
- platform: modem
|
|
|
|
gnss:
|
|
|
|
name: GNSS
|
|
|
|
restore_mode: ALWAYS_ON
|