All Projects → aex351 → home-assistant-neerslag-card

aex351 / home-assistant-neerslag-card

Licence: other
Display Buienalarm and/or Buienradar data in a graph for Home Assistant.

Projects that are alternatives of or similar to home-assistant-neerslag-card

ha-illuminance
Home Assistant Illuminance Sensor
Stars: ✭ 53 (+152.38%)
Mutual labels:  home-assistant
lovelace-valetudo-map-card
Draws the map available from a Xiaomi Vacuum cleaner flashed with Valetudo in a Home Assistant Lovelace card
Stars: ✭ 149 (+609.52%)
Mutual labels:  home-assistant
xiaomiplug
Xiaomi Mi Smart WiFi Socket integration for Home Assistant
Stars: ✭ 99 (+371.43%)
Mutual labels:  home-assistant
tehybug
Low Power WIFI environmental data trackers based on ESP8266 Module
Stars: ✭ 15 (-28.57%)
Mutual labels:  home-assistant
esp8266-midea-dehumidifier
Cloud-free wifi dehumidification
Stars: ✭ 50 (+138.1%)
Mutual labels:  home-assistant
purifier-card
Air Purifier card for Home Assistant Lovelace UI
Stars: ✭ 155 (+638.1%)
Mutual labels:  home-assistant
node-homeassistant
Node.js wrapper for the home-assistant websocket api
Stars: ✭ 27 (+28.57%)
Mutual labels:  home-assistant
home-assistant-addons
Alex's Home Assistant Add-ons
Stars: ✭ 28 (+33.33%)
Mutual labels:  home-assistant
addon-home-panel
Home Panel - Home Assistant Community Add-ons
Stars: ✭ 164 (+680.95%)
Mutual labels:  home-assistant
Home-Assistant-Sensor-Afvalbeheer
Provides Home Assistant sensors for multiple Dutch and Belgium waste collectors
Stars: ✭ 157 (+647.62%)
Mutual labels:  home-assistant
ha-car wash
Car Wash Binary Sensor for Home Assistant
Stars: ✭ 67 (+219.05%)
Mutual labels:  home-assistant
ha-edgeos
Integration with EdgeOS (Ubiquiti)
Stars: ✭ 97 (+361.9%)
Mutual labels:  home-assistant
hass-amplifi
A home assistant integration for Ubiquiti Amplifi
Stars: ✭ 17 (-19.05%)
Mutual labels:  home-assistant
ocpp
Home Assistant integration for electric vehicle chargers that support the Open Charge Point Protocol (OCPP).
Stars: ✭ 82 (+290.48%)
Mutual labels:  home-assistant
home-assistant-svt-play
Play SVT Play videos and channels via home assistant
Stars: ✭ 17 (-19.05%)
Mutual labels:  home-assistant
ha-iaquk
Indoor Air Quality Sensor Component for Home Assistant
Stars: ✭ 57 (+171.43%)
Mutual labels:  home-assistant
tellstick-plugin-mqtt-hass
Plugin for tellstick, connect to homeassistant via mqtt with autodiscovery.
Stars: ✭ 25 (+19.05%)
Mutual labels:  home-assistant
kindle infoscreen
Home-Assisstant Interface That Runs in the Kindle Browser.
Stars: ✭ 49 (+133.33%)
Mutual labels:  home-assistant
weback-hass
Weback integration with Home Assistant
Stars: ✭ 33 (+57.14%)
Mutual labels:  home-assistant
py-eagle-mqtt
Python based Docker for Eagle to MQTT reader
Stars: ✭ 14 (-33.33%)
Mutual labels:  home-assistant

hacs_badge

Neerslag Card

Recommendation: Use the Neerslag App or migrate from the Neerslag Card to the Neerslag App (all-one-package: sensors + card). The Neerslag App is part of the default HACS repository.

Display rain forecast using Buienalarm and/or Buienradar sensor data.

The graph will auto-scale (auto-zoom) depending on the amount of rain. You can interact with the graph to see how much rain will fall on a specific moment. This card is fully functional on both mobile as well as desktop.

Features

  • Display Buienalarm and/or Buienradar in one graph;
  • Fully functional on both desktop and mobile (includes mobile app);
  • Graph will auto zoom depending on the amount of rain;
  • Customizing the card title;
  • Hover with mouse / finger to read details of rain;
  • Dutch / English language;
  • Use Home Assistant configured location.

Example

Installation overview

The Neerslag card installation consists out of three actions:

  1. Install via HACS or manual;
  2. Configuring the Buienalarm and/or Buienradar custom sensor via configuration.yaml
  3. Adding the the Neerslag Card to your dashboard

Note: Home Assistant requires a restart after making changes in: configuration.yaml.

1a. Install via HACS (recommended)

This is the recommended option and also allows for easy updates.

  1. Find this repository in HACS;
  2. Add the Neerslag Card in the Home Assistant Community Store as front-end plugin.

For updates go to the Community Store (HACS) and click update

1b. Manual install (with HACS installed)

Not recommended, you will need to track updates manually by browsing to the repository;

  1. Download the latest release of the Neerslag Card from this repository;
  2. In Home Assistant, create the folder config/www/community if it does not exist;
  3. Add the Neerslag Card to the community folder. (i.e. community/neerslag-card/);
  4. Add the Neerslag Card as a resource in Home Assistant (config/lovelace/resources);
  5. Using the following details as resource: /hacsfiles/neerslag-card/neerslag-card.js as Javascript module.

For updates: repeat step 1 to 3. Home Assistant will not delete any settings.

2. Setup Buienalarm and/or Buienradar custom sensor

Buienalarm sensor configuration

Add the following to configuration.yaml:

sensor:
  - platform: command_line
    command: python3 -c "import requests; import json; import random; dataRequest = requests.get('https://cdn-secure.buienalarm.nl/api/3.4/forecast.php?lat=<lat-3-decimals>&lon=<lon-3-decimals>&region=nl&unit=mm%2Fu&c='+str(random.randint(0,999999999999999)) ).text; dataRequest = dataRequest.replace('\r\n',' '); data = '{\"data\":'+dataRequest+'}';    print(data);"
    name: Neerslag_Buienalarm_Regen_Data
    json_attributes:
      - data
    value_template: 'last_changed: {{states.sensor.neerslag_buienalarm_regen_data.last_changed | default(now())}}'
    scan_interval: 240
  • Replace <lat-3-decimals> with your latitude. For example: 55.000
  • Replace <lon-3-decimals> with your longitude. For example: 5.000

Attention: delete the <> characters.

Buienradar sensor configuration

Add the following to configuration.yaml:

sensor:
  - platform: command_line
    command: python3 -c "import requests; import json; import random; dataRequest = requests.get('https://gpsgadget.buienradar.nl/data/raintext?lat=<lat-2-decimals>&lon=<lon-2-decimals>&c='+str(random.randint(0,999999999999999)) ).text; dataRequest = dataRequest.replace('\r\n',' '); data = '{\"data\":\"'+dataRequest+'\"}';    print(data);"
    name: Neerslag_Buienradar_Regen_Data
    json_attributes:
      - data
    value_template: 'last_changed: {{states.sensor.neerslag_buienradar_regen_data.last_changed | default(now())}}'
    scan_interval: 240
  • Replace <lat-2-decimals> with your latitude. For example: 55.00
  • Replace <lon-2-decimals> with your longitude. For example: 5.00

Attention: delete the <> characters.

Advanced sensor configuration

Instead of manual configuring the latitude and longitude. There is an option to use the latitude and longitude that has been configured in Home Assistant.

Buienalarm sensor configuration

  • Replace <lat-3-decimals> with your latitude. For example: {{state_attr("zone.home", "latitude") | round(3, default="not available")}}
  • Replace <lon-3-decimals> with your longitude. For example: {{state_attr("zone.home", "longitude") | round(3, default="not available")}}

Attention: delete the <> characters.

Buienradar sensor configuration

  • Replace <lat-2-decimals> with your latitude. For example: {{state_attr("zone.home", "latitude") | round(2, default="not available")}}
  • Replace <lon-2-decimals> with your longitude. For example: {{state_attr("zone.home", "longitude") | round(2, default="not available")}}

Attention: delete the <> characters.

3. Adding the Neerslag Card to your dashboard

Via the interface:

  1. Go in to "Configure UI mode" on your dashboard
  2. Click on "Add Cards" and find the "Neerslag card" in the list of cards

Configuration options:

Using one sensor:

type: 'custom:neerslag-card'
title: Neerslag
entity: sensor.neerslag_buienalarm_regen_data

Using two sensors:

type: 'custom:neerslag-card'
title: Neerslag
entities:
  - sensor.neerslag_buienalarm_regen_data
  - sensor.neerslag_buienradar_regen_data

Advanced configuration options:

Enable auto zoom to have the graph dynamically zoom in or out depending on the amount of rainfall.

Note: By default auto zoom is disabled. Which gives the graph a fixed starting position displaying low, medium and heavy rainfall. Auto zoom will continue on extreme rainfall. Before version 2022.07.07.1 this setting was set to true.

autozoom: false
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].