mirror of
https://github.com/randybb/esphome-configs.git
synced 2026-12-06 09:06:52 +01:00
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.
10 lines
211 B
YAML
10 lines
211 B
YAML
---
|
|
platform: uptime
|
|
name: Uptime
|
|
id: uptime_sensor
|
|
unit_of_measurement: d # HA unit for duration; MQTT discovery rejects "days"
|
|
accuracy_decimals: 2
|
|
update_interval: 60s
|
|
filters:
|
|
- lambda: return x / 86400;
|