Skip to content

Brunas/meteo_lt

Repository files navigation

Meteo.LT integration for Home Assistant

Home Assistant integration for Meteo.Lt REST API

GitHub Release GitHub Activity License Project Maintenance Code style: black

Buy Me A Coffee

This integration adds support for retrieving the Forecast data from Api.Meteo.Lt and setting up following platforms in Home Assistant:

Platform Entity ID Description
weather weather.meteo_lt_ABCD A Home Assistant weather entity, with current data, and hourly forecast data. The first forecast record is treated as current data.
sensor sensor.meteo_lt_ABCD_current_conditions Sensor with all available data taken from the forecast first record and native value set to temperature
sensor sensor.meteo_lt_ABCD_temperature Sensor with temperature attribute taken from the forecast first record
sensor sensor.meteo_lt_ABCD_apparent_temperature Sensor with apparent_temperature attribute taken from the forecast first record
sensor sensor.meteo_lt_ABCD_wind_speed Sensor with wind_speed attribute taken from the forecast first record
sensor sensor.meteo_lt_ABCD_wind_gust_speed Sensor with wind_gust_speed attribute taken from the forecast first record
sensor sensor.meteo_lt_ABCD_wind_bearing Sensor with wind_bearing attribute taken from the forecast first record
sensor sensor.meteo_lt_ABCD_cloud_coverage Sensor with cloud_coverage attribute taken from the forecast first record
sensor sensor.meteo_lt_ABCD_pressure Sensor with pressure attribute taken from the forecast first record
sensor sensor.meteo_lt_ABCD_humidity Sensor with humidity attribute taken from the forecast first record
sensor sensor.meteo_lt_ABCD_precipitation Sensor with precipitation attribute taken from the forecast first record
sensor sensor.meteo_lt_ABCD_condition Sensor with condition attribute taken from the forecast first record

Where ABCD is name of the nearest place calculated using place list downloaded from api.meteo.lt

Implementation has been done using Home Assistant version 2024.7.3. Older versions could work too as long as the new Weather entity forecast types exist. Integration does not create Forecast Attributes.

NOTE: At the moment of writing this - api.meteo.lt data renewal happens every 3 hours.

Installation through HACS (Recommended Method)

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

or

  1. Go to HACS->Integrations
  2. Add this repo into your HACS custom repositories
  3. Search for Meteo.Lt Integration and Download it
  4. Restart your HomeAssistant
  5. Go to Settings->Devices & Services
  6. Shift reload your browser

Setup the Integration

Open your Home Assistant instance and start setting up a new integration.

  1. Click Add Integration
  2. Search for Meteo.Lt
  3. Enter latitude and longitude to use for the integration. Default values are Home Assistant Home location.
  4. Unlimitted number of locations is supported. If an entity for the same place exists, new entity gets numeric suffix to the name.
  5. You're all set

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 meteo_lt.
  4. Download all the files from the custom_components/meteo_lt/ directory (folder) in this repository.
  5. Place the files you downloaded in the new directory (folder) you created.
  6. Added meteo_lt: into your configuration.yaml
  7. Restart Home Assistant
  8. In the HA UI go to "Configuration" -> "Integrations" click "+" and search for Meteo.Lt:
    • Enter latitude and longitude to use for the integration. Default values are Home Assistant Home location.
    • Unlimitted number of locations is supported. If an entity for the same place exists, new entity gets numeric suffix to the name.

Enable Debug Logging

If logs are needed for debugging or reporting an issue, turn debugging in integration UI or use the following configuration.yaml:

logger:
  default: error
  logs:
    custom_components.meteo_lt: debug

Inspired by

WeatherFlow Cloud

SMHI

OpenWeatherMap