Skip to content
AEMET integration for Home Assistant
Python
Branch: master
Clone or download
Latest commit 2789e66 Dec 6, 2019

README.md

hacs_badge

AEMET Sensor

Sensor support for AEMET (Agencia Estatal de Metereología) weather data service of Spain.

You need to get your api_key and find the nearest station_id at https://opendata.aemet.es/ in order to finish the configuration.

IMPORTANT NOTE: You have to get the station_id from "Observación convencional" => "Datos de observación" stations. It isn't the same that in "Climatologías diarias".

Install is available using HACS or you can install manually.

Manual Installation

  1. Using the tool of choice open the directory (folder) for your HA configuration (where you find configuration.yaml).
  2. If you do not have a custom_components directory (folder) there, you need to create it.
  3. In the custom_components directory (folder) create a new folder called aemet.
  4. Download all the files from the custom_components/aemet/ directory (folder) in this repository.
  5. Place the files you downloaded in the new directory (folder) you created.

You need to get your "api_key" and find the nearest "station_id" at https://opendata.aemet.es/ in order to finish the configuration.

Example configuration.yaml

sensor:
  - platform: aemet
    name: AEMET
    api_key: [ YOUR_AEMET_API_KEY ]
    station_id: [ YOUR_AEMET_STATION_ID ]
    monitored_conditions:
      - temperature
      - humidity
      - pressure
      - precipitation
      - snow
      - visibility
      - wind_speed
      - wind_max_speed
      - wind_bearing

You can also configure the component as a weather service.

weather:
  - platform: aemet
    name: AEMET
    api_key: [ YOUR_AEMET_API_KEY ]
    station_id: [ YOUR_AEMET_STATION_ID ]

Please, note that because of how AEMET is retrieving the data, the weather component can't show you the current condition (sunny, cloudy, ...) and neither the forecast, just current values for weather sensors.

You can’t perform that action at this time.