Skip to content

PovilasID/meteo_lt_by_brunas

 
 

Repository files navigation

Meteo.LT by Brunas 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

IMPORTANT NOTE: I had to rename integration since there will be/is official meteo.lt integration in Home Assistant core. Unfortunately, that means entities will be renamed too.

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_by_brunas_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_by_brunas_ABCD_current_conditions Sensor with all available data taken from the forecast first record and native value set to temperature
sensor sensor.meteo_lt_by_brunas_ABCD_temperature Sensor with temperature attribute taken from the forecast first record
sensor sensor.meteo_lt_by_brunas_ABCD_apparent_temperature Sensor with apparent_temperature attribute taken from the forecast first record
sensor sensor.meteo_lt_by_brunas_ABCD_wind_speed Sensor with wind_speed attribute taken from the forecast first record
sensor sensor.meteo_lt_by_brunas_ABCD_wind_gust_speed Sensor with wind_gust_speed attribute taken from the forecast first record
sensor sensor.meteo_lt_by_brunas_ABCD_wind_bearing Sensor with wind_bearing attribute taken from the forecast first record
sensor sensor.meteo_lt_by_brunas_ABCD_cloud_coverage Sensor with cloud_coverage attribute taken from the forecast first record
sensor sensor.meteo_lt_by_brunas_ABCD_pressure Sensor with pressure attribute taken from the forecast first record
sensor sensor.meteo_lt_by_brunas_ABCD_humidity Sensor with humidity attribute taken from the forecast first record
sensor sensor.meteo_lt_by_brunas_ABCD_precipitation Sensor with precipitation attribute taken from the forecast first record
sensor sensor.meteo_lt_by_brunas_ABCD_condition Sensor with condition attribute taken from the forecast first record
sensor sensor.meteo_lt_by_brunas_ABCD_warnings Sensor with warnings 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 2025.1.4. 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 by Brunas 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 by Brunas
  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_by_brunas.
  4. Download all the files from the custom_components/meteo_lt_by_brunas/ directory (folder) in this repository.
  5. Place the files you downloaded in the new directory (folder) you created.
  6. Add meteo_lt_by_brunas: into your configuration.yaml
  7. Restart Home Assistant
  8. In the HA UI go to "Configuration" -> "Integrations" click "+" and search for Meteo.Lt by Brunas:
    • 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_by_brunas: debug

Inspired by

WeatherFlow Cloud

SMHI

OpenWeatherMap


About

HomeAssistant Meteo.Lt API integration

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%