Skip to content

IATkachenko/HA-YandexWeather

Repository files navigation

version_badge

Yandex weather data provider for Home Assistant

This custom integration is providing weather component and set of sensors based on data from yandex weather service.

Important

Currently Yandex have blocked free tarif for new users, check #104 for meore details, so new users can't obtain personal API key to get weather data via API. Stay tuned.

Installation

HACS

hacs_badge HACS Action Validate with hassfest

  1. Go to HACS
  2. Start typing "Yandex weather" in search field
  3. Press "Download" button
  4. Restart Home Assistant

Manual

  1. Download yandex_weather.zip from the latest release
  2. Unpack to custom_components folder (it should look like custom_components/yandex_weather/<files>)
  3. Restart Home Assistant

Configuration

  1. Go to Yandex developer page
  2. Add Weather API with "Test tariff" (3000 requests for 30 days for free)
  3. Switch to "Weather for web-site tariff" (50 requests per day for free). It may require up to 30 minutes for activating key.
  4. Save API key
  5. Go to Home Assistant settings
    • Integrations
    • Add
    • Start typing "Yandex weather" (clean browser cache if nothing found)
    • Add integration
    • Put API key into API key field

Usage

Weather

  • added_in_version_badge attribute forecast icons with Yandex forecast weather state images (check #78 for details)
  • added_in_version_badge pressure, wind speed and other unit may be customized
  • added_in_version_badge forecast data is available for next two periods (morning/day/evening/night)

attributes

  • entity_picture:
    • added_in_version_badge native Yandex.Weather .svg picture for weather condition
    • added_in_version_badge picture based on one of selected source (see #30 for details):

Sensors

Most sensors are disabled by default to not overload system.

  • added_in_version_badge data update time -- when weather data was updated (at Yandex side).
  • added_in_version_badge original_condition -- native Yandex.Weather condition. Because Yandex weather conditions is richer than Home Assistant, some different Yandex.Weather conditions is mapped to same Home Assistant. This sensor will keep original condition.
  • added_in_version_badge pressure_mmhg -- pressure in mmHg units. Home Asistant is prefer Pa as pressure units, but mmHg is more familiar for some countries. This sensor is enabled by default.
  • added_in_version_badge minimal_forecast_temperature -- minimal temperature for all forecast periods.

Events

added_in_version_badge integration will fire events on weather condition changes. This events may be used for triggering automatizations.