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)

This Integration is not yet a part of the default HACS store. Add it as Custom Repository following this, download it and Meteo.lt can be found under Integrations. Install it from there. After the installation of the files, you must restart Home Assistant, or else you will not be able to add Meteo.lt from the Integration Page.

If you are not familiar with HACS, or haven't installed it, I would recommend to look through the HACS documentation, before continuing. Even though you can install the Integration manually, I would recommend using HACS, as you would always be reminded when a new release is published.

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