mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 01:06:52 +00:00
Add example lovelace map card (#16329)
This commit is contained in:
parent
55df27924f
commit
a62b3c47c7
@ -118,3 +118,15 @@ geo_location:
|
|||||||
latitude: 35.899722
|
latitude: 35.899722
|
||||||
longitude: -120.432778
|
longitude: -120.432778
|
||||||
```
|
```
|
||||||
|
## Card Example
|
||||||
|
|
||||||
|
Assuming you configure this service using `feed_type: past_week_all_earthquakes`, you can create a corresponding map card in the Lovelace UI with the following card:
|
||||||
|
```yaml
|
||||||
|
type: map
|
||||||
|
name: Earthquakes
|
||||||
|
geo_location_sources:
|
||||||
|
- usgs_earthquakes_feed
|
||||||
|
entities:
|
||||||
|
- zone.home
|
||||||
|
title: Nearby Earthquakes Last Week
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user