Home

Awesome

Blitzer.de Integration for Home Assistant 🏠

GitHub Release GitHub Release Date GitHub Downloads (all assets, latest release) HA Analytics GitHub commit activity hacs

Overview

The Blitzer.de Home Assistant Custom Integration allows you to integrate the Blitzer.de App with your Home Assistant setup.

Example Markdown Card

Code

Simply replace "YOURCITY" with your chosen entity name.

<h1><img src="https://www.blitzer.de/wp-content/uploads/logo-1.svg"  height="23" > Achtung!</h1>
{%- set anzahl_aktuelle_warnungen = states("sensor.blitzerde_blitzerde_**YOURCITY**_total") | int(0) %}
{%- for i in range(int(anzahl_aktuelle_warnungen)) %}
{%- set blitzer_backend = state_attr("binary_sensor.blitzerde_blitzerde_**YOURCITY**_map"~ loop.index, "backend") %}
{%- set blitzer_vmax = state_attr("binary_sensor.blitzerde_blitzerde_**YOURCITY**_map"~ loop.index, "vmax") %}
{%- set blitzer_street = state_attr("binary_sensor.blitzerde_blitzerde_**YOURCITY**_map"~ loop.index, "street") %}
{%- set blitzer_city = state_attr("binary_sensor.blitzerde_blitzerde_**YOURCITY**_map"~ loop.index, "city") %}
<b>Blitzer {{blitzer_city}}</b><br>
<a href="https://map.blitzer.de/v5/ID/{{blitzer_backend}}/">{{blitzer_street}}</a> bei {{blitzer_vmax}} km/h
<br/>
{%- if not loop.last %}<br>{%- endif %}
{%- endfor %}

Screenshot

image

Installation

HACS (recommended)

This integration is available in HACS (Home Assistant Community Store).

  1. Install HACS if you don't have it already
  2. Open HACS in Home Assistant
  3. Go to any of the sections (integrations, frontend, automation).
  4. Click on the 3 dots in the top right corner.
  5. Select "Custom repositories"
  6. Add following URL to the repository https://github.com/timniklas/hacs_blitzerde.
  7. Select Integration as category.
  8. Click the "ADD" button
  9. Search for "Blitzer.de"
  10. Click the "Download" button

Manual

To install this integration manually you have to download blitzerde.zip and extract its contents to config/custom_components/blitzerde directory:

mkdir -p custom_components/blitzerde
cd custom_components/blitzerde
wget https://github.com/timniklas/hacs_blitzerde/releases/latest/download/blitzerde.zip
unzip blitzerde.zip
rm blitzerde.zip

Configuration

Using UI

Open your Home Assistant instance and start setting up a new integration.

From the Home Assistant front page go to Configuration and then select Devices & Services from the list. Use the Add Integration button in the bottom right to add a new integration called Blitzer.de.

Help and Contribution

If you find a problem, feel free to report it and I will do my best to help you. If you have something to contribute, your help is greatly appreciated! If you want to add a new feature, add a pull request first so we can discuss the details.

Disclaimer

This custom integration is not officially endorsed or supported by Blitzer.de. Use it at your own risk and ensure that you comply with all relevant terms of service and privacy policies.