My Weather Dashboard

Tags: #<Tag:0x00007fc404e30f10>

Weather Dashboard - Dwains Dashboard Add-on (more_page)

Weather Dashboard in Home Assistant Dwains Dashboard.

Created by Léon van der Linden

![](upload://wZMpMnweNQ7cGR4EcC70stG1zgZ.jpeg)

Prerequisite


Make Home Assistant integration


Please reboot Home Assistant after config the sensors!

Buienradar sensor + Radar map

     # Example configuration.yaml entry
sensor:
  - platform: buienradar
    name: "Apeldoorn"
    # Force 'Meetstation Apeldoorn' to be used:
    latitude: 50.00
    longitude: 5.00
    monitored_conditions:
      - stationname
      - barometerfc
      - barometerfcname
      - conditioncode
      - condition
      - conditiondetailed
      - conditionexact
      - symbol
      - feeltemperature
      - humidity
      - temperature
      - groundtemperature
      - windspeed
      - windforce
      - winddirection
      - windazimuth
      - pressure
      - visibility
      - windgust
      - precipitation
      - irradiance
      - precipitation_forecast_average
      - precipitation_forecast_total
      - rainlast24hour
      - rainlasthour
      # conditions for forecasted data:
      - symbol_1d
      - symbol_2d
      - symbol_3d
      - symbol_4d
      - symbol_5d
      - temperature_1d
      - temperature_2d
      - temperature_3d
      - temperature_4d
      - temperature_5d
      - mintemp_1d
      - rainchance_1d
      - rainchance_2d
      - sunchance_1d
      - sunchance_2d
      - rain_1d
      - rain_2d
      - minrain_1d
      - maxrain_1d
      - windforce_1d
      - windforce_2d
      - windspeed_1d
      - windspeed_2d
      - winddirection_1d
      - winddirection_2d
      - windazimuth_1d
      - windazimuth_2d
# Example configuration.yaml entry
camera:
  - platform: buienradar

Ambee Pollen sensoren

  • Make the integration with Ambee Pollen
  • Make sure you have reboot Home Assistant after that you have made the sensors!

image

### Ambee Pollen

# Must be added in sensor.yml
# replace LAT, LONG and API-KEY with your values

- platform: rest
  scan_interval: 3600
  resource: https://api.ambeedata.com/latest/pollen/by-lat-lng?lat=LAT&lng=LONG
  name: "Ambee Pollen"
  headers:
    content-type: "application/json"
    x-api-key: "YOUR-API-KEY"
  json_attributes_path: "$.data.['Risk']"
  json_attributes:
    - tree_pollen
    - grass_pollen
    - weed_pollen

- platform: template
  sensors:
    ambee_pollen_tree:
      icon_template: "mdi:tree-outline"
      friendly_name: "tree"
      value_template: >-
        {% set state = state_attr('sensor.ambee_pollen', 'tree_pollen') %}
        {% if state == "Low" %}Low
        {% elif state == "Moderate"%}Moderate
        {% elif state == "High"%}High
        {% elif state == "Very High"%}Very High
        {% else %}Unbekannt{% endif %}

- platform: template
  sensors:
    ambee_pollen_weed:
      icon_template: "mdi:nature"
      friendly_name: "weed"
      value_template: >-
        {% set state = state_attr('sensor.ambee_pollen', 'weed_pollen') %}
        {% if state == "Low" %}Low
        {% elif state == "Moderate"%}Moderate
        {% elif state == "High"%}High
        {% elif state == "Very High"%}Very High
        {% else %}Unbekannt{% endif %}

- platform: template
  sensors:
    ambee_pollen_grass:
      icon_template: "mdi:grass"
      friendly_name: "grass"
      value_template: >-
        {% set state = state_attr('sensor.ambee_pollen', 'grass_pollen') %}
        {% if state == "Low" %}Low
        {% elif state == "Moderate"%}Moderate
        {% elif state == "High"%}High
        {% elif state == "Very High"%}Very High
        {% else %}Unbekannt{% endif %}

KMNI sensor

  • Make the integration with KNMI
sensor: 
  - platform: scrape
    resource: https://www.knmi.nl/nederland-nu/weer/waarschuwingen/gelderland #change provincie
    select: "div.alert__heading"
    name: "knmi weercode"
    scan_interval: 300

  - platform: scrape
    resource: https://www.knmi.nl/nederland-nu/weer/waarschuwingen/gelderland #change provincie
    select: "a.alert__description"
    name: "knmi weer waarschuwing"
    scan_interval: 300    

Moon sensor

  • Make the integration with Moon
sensor: 
  - platform: moon   

Season sensor

  • Make the integration with Season
sensor: 
  - platform: season  

Sun integration

  • Make the integration with Sun
# Example configuration.yaml entry
sun:

Installation Add-on (only for users of Dwains Dashboard)


  • Copy the weather folder in to the dwains-dashboard/addons/more_page directory.
  • Open your more_page.yaml file in dwains-dashboard/configs and add the following;
  - name: Weather
    main_menu: 'true' #Show this addon in the main navigation bar!
    icon: fas:cloud-sun-rain
    path: 'dwains-dashboard/addons/more_page/weather/page.yaml'
  • Reload the theme configuration via Theme Settings

Replace the following


  • If some sensors not showing after this manual, please add the correct sensor to monitor
  • The dashboard will refresh every 10 minutes. When you want to skip this, delete the code between line 66 till 69
 - cards:
   Refresh: null
   type: 'custom:auto-reload-card'
   delay_in_minute: 10

Result



Enjoy my card? Help me out for a couple of :beers: or a :coffee:!

coffee

Just a quick question here: I got an email from Ambee regarding “more functionality” on the API and I think the same day the Ambee Pollen setup broke.
Is this also something you have seen, or is it “just me”?

Thanks,

Just you. No problems here.