kgz.me - Klaus Zanders

Thoughts of a random guy on the internet. Doing things with software ... or video

Home Assistant History Map

February 7, 2025 1 min read Code-Snippets

Original source: https://userbag.co.uk/development/home-assistant-exploring-location-history/

HACS Repos:

views:
  - type: panel
    title: Historische Karte
    icon: mdi:map
    cards:
      - type: grid
        square: false
        cards:
          - type: energy-date-selection
            card_mod:
              style: |
                ha-card {
                      z-index: 1;
                      position: absolute;
                      height: 80px !important;
                      width: 80%;
                      top: 75px;
                      right: 10px;
                      max-width: 450px;
                }                
          - type: custom:map-card
            history_date_selection: true
            card_size: 10
            entities:
              - entity: device_tracker.some-device
                color: red
            card_mod:
              style: |
                ha-card {
                  margin-top: -10px;
                }
                ha-card #map {
                  height:calc(100vh - 56px);
                  border-radius:0;
                }                
        columns: 1