sepro / HomeAssistant-LeuvenTemplate

Home-Assistant component to get weather data from weather-stations that use meteobridge with the Leuven Template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HomeAssistant-LeuvenTemplate

Home-Assistant (HA) component to get weather data from weather-stations that use MeteoBridge with the Leuven Template

Installation

Find the HA configuration folder, the exact location depends on how you installed homeassistant. If you installed HA under linux as the user homeassistant, this will be in /home/homeassistant/.homeassistant/ . Under windows by default this is in %APPDATA%\.homeassistant.

Copy the folder custom_componentsfrom this repository and all directories and files in there to the HA configuration folder.

The resulting directory structure should be:

.homeassistant/
|-- custom_components/
|   |-- leuven_template/
|       |-- __init__.py
|       |-- manifest.json
|       |-- sensor.py
|   |-- other custom components ... (if any were previously installed)

Configuration

You need to find the URL to yowindowRT.php for the desired website (you can find the full list here), in the config below the example is given for a weather station located in Herent and in Sluispark Leuven, Belgium. By selecting a unique prefix, multiple sources can be used.

Add the code below to configuration.yaml in your .homeassistant directory

sensor:
  - platform: leuven_template
    url: "https://www.weerstation-herent.be/weather2/yowindowRT.php"
    prefix: "herent"
    
    - platform: leuven_template
    url: "https://weer.sluispark.be/yowindowRT.php"
    prefix: "sluispark"

Links & Further Reading

About

Home-Assistant component to get weather data from weather-stations that use meteobridge with the Leuven Template

License:MIT License


Languages

Language:Python 100.0%