🌦️ Slovenian Weather Integration 🇸🇮

Python License Maintainer Home Assistant HACS HassfestHACS Validation
GitHub Release Made in Slovenia

BuyMeCoffee GitHub Sponsors

Icon Preview

🚀 Install via HACS

:sun_behind_rain_cloud: Slovenian Weather Integration :slovenia: - Home Assistant Custom Component

:earth_africa: Overview

Slovenian Weather Integration :slovenia: is a custom component for Home Assistant, leveraging real-time weather data from ARSO (Agencija Republike Slovenije za okolje). It provides detailed weather information and forecasts tailored to users in Slovenia and neighboring regions.


Disclaimer :warning:

This integration is not an official integration of the Slovenian Environmental Agency (Agencija RS za okolje). The source of the weather data is the national meteorological service of the Republic of Slovenia (Državna meteorološka služba, ki jo izvaja Agencija RS za okolje).


Breaking Change :warning:

With the update to version 1.3.0, users upgrading from an earlier version may experience issues with the weather service or incorrect data display. To resolve this, it is recommended to delete existing locations and reconfigure them by selecting and adding them again.
Apologies for any inconvenience caused, and thank you for your understanding!


Features :star2:

Current Weather

  • Displays: current temperature, pressure, humidity, wind speed, wind direction, wind gust speed and visibility.
  • :new: Added support for wind gust speed, dew point (where ARSO provides data) and visibility.
  • :new: Sensor entities added for current weather.
  • :new: UV index. (v.1.4.0)
  • :new: O3 Ozone. (v.1.4.0)
  • :new: Apparent temperature (UTCI methodology). (v.1.4.0)
  • :new: Air quality sensors (sensor entity). (v.1.4.0)
  • :new: Pollen sensor (only in Slovenian language). (v.1.4.0)
  • :new: precipitation, snowfall.

Hourly Forecast

  • Provides forecasts for up to 6 days ahead.
  • Includes temperature, weather conditions, wind speed, wind bearing and wind gust speed.

Twice Daily Forecast :sunrise::crescent_moon:

:new: Added support for twice_daily forecasts (morning and evening).

  • Includes minimum (templow) and maximum (temperature) temperatures for morning and evening periods.
  • Combines data from 3-hourly and daily forecasts for better accuracy.

Daily Forecast :sun_behind_small_cloud:

  • Provides forecasts for up to 10 days ahead.
  • Includes:
  • Maximum and minimum temperatures.
  • 24-hour accumulated precipitation (tp_24h_acc).
  • Wind speed and :new: wind gust speed (native_wind_gust_speed).
  • UV index. (v.1.4.0)
  • Weather condition and pressure.

Weather Preview
Weather Preview


:gear: Installation

:orange_circle: HACS Installation

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.

Installation Preview

Installation Preview

Installation Preview

Installation Preview

:zap: Manual Installation

  1. Download or clone this repository.
  2. Copy the custom_components/slovenian_weather_integration folder to your Home Assistant custom_components directory:
  3. Restart Home Assistant to recognize the new integration.

:hammer_and_wrench: Setup

  1. Go to ConfigurationDevices & Services in Home Assistant.
  2. Click Add Integration.
  3. Search for ARSO Weather Integration.
  4. Follow the prompts to select your desired location(s).

:star2: Supported Features

  • Temperature (°C) (current weather + forecasts)
  • Humidity (%) (current weather + forecasts)
  • Pressure (hPa) (current weather + forecasts)
  • Wind Speed (km/h) (current weather + forecasts)
  • Wind Gust Speed (km/h) (current weather + forecasts)
  • Wind Bearing (km/h) (current weather + forecasts)
  • Dew Point (current weather only)
  • Visibility (km) (current weather only)
  • Precipitation (mm) (current weather + forecasts)
  • Snowfall (mm) (current weather)
  • UV Index (1 unit equals 25 mW/m2) (current weather + daily forecast) (v.1.4.0)
  • Ozone (µg/m3) (current weather) (v.1.4.0)
  • Pollen - (Slovenian native data in Slovenian language only) (v.1.4.0)
  • Air quality sensors (µg/m3) (pm10, pm2.5, O3, SO2, NO2, benzen) (v.1.4.0)

:scroll: Configuration Example

Below is an example automation using hourly forecast data:

template:
  - trigger:
   - platform: time_pattern
     hours: /1  # Trigger every hour
  action:
   - service: weather.get_forecasts
     data:
       type: hourly
     target:
       entity_id: weather.arso_vreme_ljubljana
     response_variable: hourly
  sensor:
   - name: Temperature forecast next hour
     unique_id: temperature_forecast_next_hour
     state: "{{ hourly['weather.arso_vreme_ljubljana'].forecast[0].temperature }}"
     unit_of_measurement: °C

Data Source

The real-time weather observations are retrieved from the observation section of the Agencija RS za okolje.

State attributes

Forecast:

weather.arso_weather_celje:
  forecast:
    - datetime: "2025-02-03"
      temperature: 5
      templow: -3
      precipitation: 0
      snowfall: 0
      wind_speed: 6
      wind_bearing: E
      condition: partlycloudy
      pressure: 1028
      uv_index: 1.4
      wind_gust_speed: 0

Current weather:

temperature: -2
apparent_temperature: -3.8
dew_point: -3
temperature_unit: °C
humidity: 83
ozone: 1
uv_index: 1.4
pressure: 1030
pressure_unit: hPa
wind_bearing: W
wind_gust_speed: 0
wind_speed: 0
wind_speed_unit: km/h
visibility_unit: km
precipitation_unit: mm
location: Celje
attribution: Vir: Agencija RS za okolje
friendly_name: ARSO WEATHER - Celje
supported_features: 7

Weather forecasts are not part of the entity’s state, they’re instead made available by a separate API.

Updating weather forecast(s) - Action weather.get_forecasts

To use actions on weather see this Weather Integration page.


Examples

template:
  - trigger:
      - platform: time_pattern
        hours: /1 # Sproži se vsako uro
    action:
      - service: weather.get_forecasts
        data:
          type: hourly
        target:
          entity_id: weather.arso_vreme_ljubljana
        response_variable: hourly
    sensor:
      - name: Temperature forecast next hour
        unique_id: temperature_forecast_next_hour
        state: "{{ hourly['weather.arso_vreme_ljubljana'].forecast[0].temperature }}"
        unit_of_measurement: °C
        device_class: temperature

If you wish to create a sensor (for instance a temperature sensor for Ljubljana) from your weather entity, you can use a template:

- sensor:
    - name: Temperatura Ljubljana
      unique_id: temperatura_arso_weather_ljubljana
      state: "{{ state_attr('weather.arso_vreme_ljubljana', 'temperature') }}"
      unit_of_measurement: °C
      device_class: temperature

After you restart HA or reload configuration of your HA instance, you get sensor like this:

As of version 1.3.0, the ARSO Weather integration includes a sensor service as part of the integration, but with separate entities. This means you now get 15 sensors providing current weather data for the selected location. This makes working with weather data much easier! :blush:

Unique ID Support

Each weather entity now gets a unique ID based on its location and configuration entry. This allows you to customize and edit the entity from the Home Assistant UI.

Debugging

If you encounter issues, you can enable debug logging for the integration by adding the following to your configuration.yaml:

logger:
  default: info
  logs:
    custom_components.arso_weather_integration: debug

Known Issues

Precipitation Data: Real-time precipitation may not always be available. But is visible as attribute to weather entitiy.

Forecast Availability: Ensure the selected location supports both 3 hour and daily forecasts.

:hammer_and_wrench: Contributing

If you find any bugs or have feature requests, feel free to open an issue or submit a pull request on GitHub.

:star: Star this repository

Help other Home Assistant users find this integration by starring this repository. Click :star: Star on the top right of the GitHub page.

2 Likes

Sensors (if you mean weather entitiy) is english by default and then the state and attributes or whatever from the weather entitiy get translated into user chosen interface. But from v1.3.0 on I added sensors for all sorts of weather parameters and sensors with states like clouds, weather phenomenon are in Slovenian (original data provided by ARSO).

1 Like