HA can't reach the API on the car hotspot, so the device talks MQTT to the own
broker like the tracker; EMQX forwards its/<node_id>/# to cits1.opentrafficmap.org.
API and homeassistant time removed, the OTA key set directly.
MQTT discovery unique ids with the MAC (its-g5 and tracker): the default
ESP<type><object_id> made the common entities of both devices clash in HA.
Uptime in "d": HA MQTT discovery rejects "days" with device class duration.
pr#14683 brought rssi, ber, network_type and urc to dev, but no GNSS, so the
fork of pr#9802 is gone. GNSS is switched with modem.send_at and the position
is parsed from the URC until the modem gets official GNSS support. The device
tracker also gets the accuracy (DOP * gnss_uere_m), the vertical accuracy and
the battery level.
- modem from dev, sensors from pr#9802 via randybb/esphome@modem-gnss-fix
(fix for the AT+CGPS=1 resend loop), signal/network/operator, GNSS switch
- position as an MQTT device_tracker (discovery sent on connect), one JSON
on a ~50 m move or hourly
- GNSS and its antenna off while parked, a short look every 30 min
- AXP192 battery: coulomb counter SoC calibrated on a full charge, voltage
estimate until then, 10 % steps to HA, USB power, Battery Low, power off
below 3.3 V without USB
- O2 Telemetria data diet: no MQTT logs, 10 min keepalive, values only on
change or hourly, text sensors on change, PMU details internal
- SNTP every 6 h, time and position on the OLED
- modem from pr#6721 only, enabled from on_boot after the power-up sequence
- AT+CFUN=1 in init_at: the component sets the APN while the radio is off
- signal and network mode parsed from +CSQ/+CPSI URCs
- MQTT instead of API (no WiFi for now), status/uptime/version/restart/IP entities
- SSD1306 OLED with network, signal, PPP/MQTT state, IP and uptime
- AXP192 from m5stack, pinout and I2C header, drop old commented configs
Bulk cleanup: remove trailing whitespace and ensure files end with a
newline. Structural issues (indentation, bracket spacing) left for
per-file fixes.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>