# Lovelace dashboard — Mach-E FordPass location
# Import: HA → Settings → Dashboards → Add → ⋮ → Import from YAML
# Or append views/cards to an existing dashboard in raw configuration editor.
#
# Entity IDs from live HA 2026-06-27 (Mach-E VIN 3FMTK4SE9NMA14535).
# If VIN changes, replace fordpass_3fmtk4se9nma14535 in entity names.

title: Mach-E
views:
  - title: Location
    path: mach-e
    icon: mdi:car-electric
    cards:
      - type: markdown
        content: |
          **FordPass location** — path from Recorder history.
          Native map shows the last **7 days** of points (`hours_to_show: 168`).
          For Google-Timeline-style day view, install
          [Location Timeline Card](https://github.com/konewka17/timeline_card) (HACS)
          and add `custom:location-timeline-card` below this map.
          See [runbook](../runbooks/haos-retention-and-ford-timeline.md).

      - type: map
        title: Mach-E — last 7 days
        hours_to_show: 168
        default_zoom: 14
        aspect_ratio: "16:9"
        entities:
          - entity: device_tracker.fordpass_3fmtk4se9nma14535_tracker
            name: Mach-E

      - type: horizontal-stack
        cards:
          - type: entity
            entity: sensor.fordpass_3fmtk4se9nma14535_ignitionstatus
            name: Ignition
          - type: entity
            entity: sensor.fordpass_3fmtk4se9nma14535_gearleverposition
            name: Gear
          - type: entity
            entity: sensor.fordpass_3fmtk4se9nma14535_deviceconnectivity
            name: Modem

      - type: horizontal-stack
        cards:
          - type: entity
            entity: sensor.fordpass_3fmtk4se9nma14535_elveh
            name: Range
          - type: entity
            entity: sensor.fordpass_3fmtk4se9nma14535_battery
            name: 12V
          - type: entity
            entity: lock.fordpass_3fmtk4se9nma14535_doorlock
            name: Doors

      - type: history-graph
        title: GPS updates (30 days)
        hours_to_show: 720
        entities:
          - entity: device_tracker.fordpass_3fmtk4se9nma14535_tracker

      - type: entities
        title: Raw GPS sensor
        entities:
          - entity: sensor.fordpass_3fmtk4se9nma14535_gps
          - entity: button.fordpass_3fmtk4se9nma14535_update_data

      # Uncomment after installing location-timeline-card via HACS:
      # - type: custom:location-timeline-card
      #   entity: device_tracker.fordpass_3fmtk4se9nma14535_tracker
      #   title: Mach-E timeline
      #   stay_radius_m: 75
      #   min_stay_minutes: 10
      #   map_height_px: 420
