https://github.com/brunas/meteo_lt
HomeAssistant Meteo.Lt API integration
https://github.com/brunas/meteo_lt
hacs hacs-integration hassio-integration home-assistant home-automation homeassistant homeassistant-custom-component homeassistant-integration weather weather-forecast
Last synced: 6 months ago
JSON representation
HomeAssistant Meteo.Lt API integration
- Host: GitHub
- URL: https://github.com/brunas/meteo_lt
- Owner: Brunas
- License: mit
- Created: 2024-07-21T09:16:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-31T03:36:41.000Z (7 months ago)
- Last Synced: 2025-04-03T12:34:38.614Z (7 months ago)
- Topics: hacs, hacs-integration, hassio-integration, home-assistant, home-automation, homeassistant, homeassistant-custom-component, homeassistant-integration, weather, weather-forecast
- Language: Python
- Homepage:
- Size: 108 KB
- Stars: 14
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Meteo.LT integration for Home Assistant
Home Assistant integration for Meteo.Lt REST API
[![GitHub Release][releases-shield]][releases]
[![GitHub Activity][commits-shield]][commits]
[![License][license-shield]](LICENSE)
![Project Maintenance][maintenance-shield]
[](https://github.com/psf/black)This integration adds support for retrieving the Forecast data from [Api.Meteo.Lt](https://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 recordWhere `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](https://hacs.xyz/docs/faq/custom_repositories/), 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](https://hacs.xyz/), 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`).
1. If you do not have a `custom_components` directory (folder) there, you need to create it.
1. In the `custom_components` directory (folder) create a new folder called `meteo_lt`.
1. Download _all_ the files from the `custom_components/meteo_lt/` directory (folder) in this repository.
1. Place the files you downloaded in the new directory (folder) you created.
1. Added `meteo_lt:` into your `configuration.yaml`
1. Restart Home Assistant
1. 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:
```yaml
logger:
default: error
logs:
custom_components.meteo_lt: debug
```## Inspired by
[WeatherFlow Cloud](https://www.home-assistant.io/integrations/weatherflow_cloud/)
[SMHI](https://www.home-assistant.io/integrations/smhi/)
[OpenWeatherMap](https://www.home-assistant.io/integrations/openweathermap/)
***
[commits-shield]: https://img.shields.io/github/commit-activity/y/Brunas/meteo_lt.svg?style=flat-square
[commits]: https://github.com/Brunas/meteo_lt/commits/main
[hacs]: https://github.com/hacs/integration
[hacsbadge]: https://img.shields.io/badge/HACS-Default-orange.svg?style=flat-square
[license-shield]: https://img.shields.io/github/license/Brunas/meteo_lt.svg?style=flat-square
[maintenance-shield]: https://img.shields.io/badge/maintainer-Brunas%20%40Brunas-blue.svg?style=flat-square
[releases-shield]: https://img.shields.io/github/release/Brunas/meteo_lt.svg?style=flat-square
[releases]: https://github.com/Brunas/meteo_lt/releases