From a62b3c47c7f420d5b8c466856be78e2f32087368 Mon Sep 17 00:00:00 2001 From: Phil Hollenback Date: Thu, 28 Jan 2021 05:26:47 -0800 Subject: [PATCH] Add example lovelace map card (#16329) --- source/_integrations/usgs_earthquakes_feed.markdown | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/source/_integrations/usgs_earthquakes_feed.markdown b/source/_integrations/usgs_earthquakes_feed.markdown index 2a24463e2f9..115375269aa 100644 --- a/source/_integrations/usgs_earthquakes_feed.markdown +++ b/source/_integrations/usgs_earthquakes_feed.markdown @@ -118,3 +118,15 @@ geo_location: latitude: 35.899722 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 +```