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-08-17 02:45:34 +02:00
|
|
|
baud_rate: 115200
|
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-08-15 19:05:48 +02:00
|
|
|
reboot_timeout: 5min
|
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:
|
2024-08-15 19:05:48 +02:00
|
|
|
logger.log: "modem connected"
|
2024-07-18 18:41:52 +02:00
|
|
|
on_disconnect:
|
2024-08-15 19:05:48 +02:00
|
|
|
logger.log: "modem disconnected"
|
2024-07-18 18:41:52 +02:00
|
|
|
|
2024-08-07 00:18:46 +02:00
|
|
|
text_sensor:
|
|
|
|
- platform: modem
|
|
|
|
network_type:
|
|
|
|
name: network type
|
2024-08-15 19:05:48 +02:00
|
|
|
signal_strength:
|
|
|
|
name: Signal strength
|
2024-08-07 00:18:46 +02:00
|
|
|
|
|
|
|
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
|