mirror of
https://github.com/randybb/esphome-configs.git
synced 2026-12-06 09:06:52 +01:00
mcu-its-g5: MQTT only, to the own broker with an EMQX bridge to OpenTrafficMap
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.
This commit is contained in:
1 parent
177bdcb3de
commit
3676c0bbcc
4 files changed
+22
-42
No files matched your search
@@ -119,6 +119,8 @@ mqtt:
|
||||
username: !secret mqtt_tracker_username
|
||||
password: !secret mqtt_tracker_password
|
||||
discovery: true
|
||||
# MAC in the unique_id: the default ESP<type><object_id> clashes with other devices' common entities
|
||||
discovery_unique_id_generator: mac
|
||||
# Every message costs data: logs stay on USB, and one ping per 10 min keeps the session.
|
||||
# Lower keepalive if O2's CGNAT drops idle TCP sooner (reconnects resend all discovery)
|
||||
log_topic: null
|
||||
|
||||
Reference in new issue
Block a user