Map Card


A card that allows you to display entities on a map.

Screenshot of the map card Screenshot of the map card.

Configuration Variables

type

(string)(Required)map

entities

(list)(Required)List of entity IDs.

entity

(string)(Required)An entity_id to use.

title

(string)(Optional)The card title.

aspect_ratio

(string)(Optional)The map’s height:width ratio.

Default value: 100%

default_zoom

(integer)(Optional)The default zoom level of the map.

Default value: 14 (or whatever zoom level is required to fit all visible markers)

Only entities that have latitude and longitude attributes will be displayed on the map.

The default_zoom value will be ignored if it is set higher than the current zoom level after fitting all visible entity markers in the map window. In other words, this can only be used to zoom the map out by default.

Examples

- type: map
  aspect_ratio: 100%
  default_zoom: 8
  entities:
    - device_tracker.demo_paulus
    - zone.home