home-assistant.io/source/_integrations/ign_sismologia.markdown
2022-12-01 01:47:23 +01:00

3.1 KiB

title, description, ha_category, ha_iot_class, ha_release, ha_codeowners, ha_domain, ha_platforms, ha_integration_type
title description ha_category ha_iot_class ha_release ha_codeowners ha_domain ha_platforms ha_integration_type
IGN Sismología Instructions on how to integrate the Instituto Geográfico Nacional Sismología (Earthquakes) Feed feed into Home Assistant.
Geolocation
Cloud Polling 0.92
@exxamalte
ign_sismologia
geo_location
service

The ign_sismologia platform lets you integrate a GeoRSS feed provided by the Spanish Instituto Geográfico Nacional with information about seismic events like earthquakes on the Iberian Peninsula and Canary Islands. It retrieves incidents from a feed and shows information of those incidents filtered by distance to Home Assistant's location.

Entities are generated, updated and removed automatically with each update from the feed. Each entity defines latitude and longitude and will be shown on the default map automatically, or on a map card by defining the source ign_sismologia. The distance in kilometers is available as the state of each entity.

The data is updated every 5 minutes.

Configuration

To integrate the IGN Sismología feed, add the following lines to your configuration.yaml.

# Example configuration.yaml entry
geo_location:
  - platform: ign_sismologia

{% configuration %} minimum_magnitude: description: The minimum magnitude of an earthquake to be included. required: false type: float default: 0.0 radius: description: The distance in kilometers around Home Assistant's coordinates in which seismic events are included. required: false type: float default: 50.0 latitude: description: Latitude of the coordinates around which events are considered. required: false type: string default: Latitude defined in your configuration.yaml longitude: description: Longitude of the coordinates around which events are considered. required: false type: string default: Longitude defined in your configuration.yaml {% endconfiguration %}

State Attributes

The following state attributes are available for each entity in addition to the standard ones:

Attribute Description
latitude Latitude of the earthquake.
longitude Longitude of the earthquake.
source ign_sismologia to be used in conjunction with geo_location automation trigger.
external_id The external ID used in the feed to identify the earthquake in the feed.
title Original title from the feed.
region Textual description of named geographic region near to the event.
magnitude Reported magnitude of the earthquake.
publication_date Date and time when this event occurred.
image_url URL to a map supplied in the feed marking the location of the event. This could for example be used in notifications.

Full Configuration

# Example configuration.yaml entry
geo_location:
  - platform: ign_sismologia
    radius: 100
    minimum_magnitude: 2.0
    latitude: 37.39
    longitude: -5.99