Giter Club home page Giter Club logo

home-assistant-packages's Introduction

Home Assistant Icelandic weather cards

Packages for Home Assistant with Icelandic weather providers from local Icelandic sources.

Requirements

Working setup of Home Assistant and access to configuration.yaml

Installing

Go to the releases page and download the latest release and unzip to the root folder of your Home Assistant samba folder. Edit config/configuration.yaml and add the following to the homeassistant section to include all packages:

homeassistant:
  packages: !include_dir_named packages

or you can include only specific packages:

homeassistant:
  packages:
    vedur_is: !include packages/vedur_is.yaml
    vegagerdin: !include packages/vegagerdin.yaml
    belgingur: !include packages/belgingur.yaml

Then restart Home Assistant.

Available weather cards

Veður.is (vedur_is.yaml)

vedur_is

Weather information from vedur.is. The weather card is named weather.vedur_is. Just add this as any other normal weather card. The integration calls XML services as specified in Gagnaveita - XML þjónusta every 10 minutes for temperature data and every hour for forecast data. The XML data is cached locally in folder /config/www/vedur_is.

Customizing what weather station to use for vedur.is

Default weather station is Reykjavík with id=1. You can find out other ids by checking Veðurstöðvar. Click on Upplýsingar and find out the Stöðvanúmer. You can then go to Developer tools and find the entity input_number.vedur_vedurstod and change the state to the selected id number or simply add this entity to a dashboard and modify the station id directly there.

Display text weather description in a markdown card.

You can display vedur.is weather description for the capital Reykjavik and the whole country in a markdown card by adding a mark down card and specifying for example this content:

**<ha-icon icon="mdi:weather-cloudy"></ha-icon> {{ states('sensor.vedur_text_capital') }}** 
{{ state_attr('sensor.vedur_text_capital','text') }}

**<ha-icon icon="mdi:weather-cloudy"></ha-icon> {{ states('sensor.vedur_text_country') }}**  
{{ state_attr('sensor.vedur_text_country','text') }}

[Veðurspá](https://www.vedur.is/vedur/spar/thattaspar/hofudborgarsvaedid/#teg=urkoma)

Display aurora forecast.

Aurora forecast for next evening is available in entity sensor.vedur_aurora as a value from 0..9 for aurora activity and as a text value in entity sensor.vedur_aurora_text. To display the aurora value as a gauge like this:

aurora_gauge

You can use this yaml code:

type: gauge
entity: sensor.vedur_aurora
min: 0
max: 9
needle: true
segments:
  - from: 0
    color: DodgerBlue
    label: Lágmarksvirkni
  - from: 1
    color: DodgerBlue
    label: Mjög lítil virkni
  - from: 2
    color: SeaGreen
    label: Lítil virkni
  - from: 3
    color: SeaGreen
    label: Dálítil virkni
  - from: 4
    color: Orange
    label: Talsverð virkni
  - from: 5
    color: Orange
    label: Allmikil virkni
  - from: 6
    color: Crimson
    label: Mikil virkni
  - from: 7
    color: Crimson
    label: Öflug virkni
  - from: 8
    color: DarkRed
    label: Mjög öflug virkni
  - from: 9
    color: DarkRed
    label: Hámarksvirkni

There is also aurora forecast for the next days displayed as a table. This can be displayed in markdown card with:

{{ state_attr('sensor.vedur_aurora','forecast') }}

Belgingur (belgingur.yaml)

belgingur

Weather forecast information from belgingur.is. The weather card is named weather.belgingur. Just add this as any other normal weather card. The card uses your current Home position for weather location as specified in General configuration. The information is updated every 10 minutes.

Vegagerðin (vegagerdin.yaml)

vegagerdin

Weather information from vegagerdin.is. The weather card is named weather.vegagerdin. This card used Gagnaveita Vegagerðarinnar to retrieve weather information. This only includes current temperature and other measurements but no description or weather forecast. The data updates every 10 minutes.

Customizing weather station to use for vegagerðin

Default weather station is Reykjavík. You can find out other names by checking Gagnaveita and finding your station Nafn in the list. You can then go to Developer tools and find the entity input_text.vegagerdin_vedurstod and change the value or simply add this entity to a dashboard and modify the station name directly there.

Custom weather card

You can either use the included weather cards directly as is or create your own custom weather card using information from different sources, by adding something like this in your configuration.yaml which integrates sensors from all the different sources.

weather:
  - platform: template
    name: "My custom weather"
    attribution_template: "Veður.is/Vegagerðin/Belgingur"
    condition_template: "{{ states('sensor.vedur_condition') }}"
    temperature_template: "{{ states('sensor.vegagerdin_temperature') }}"
    humidity_template: "{{ states('sensor.vedur_humidity') }}"
    pressure_template: "{{ states('sensor.vedur_pressure') }}"
    wind_speed_template: "{{ states('sensor.belgingur_wind_speed') }}"
    wind_bearing_template: "{{ states('sensor.belgingur_wind_bearing') }}"
    visibility_template: "{{ states('sensor.vedur_visibility') }}"
    forecast_template: "{{ state_attr('sensor.vedur_forecast','forecast') }}"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.