Awesome
Blitzer.de Integration for Home Assistant 🏠
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
Installation
HACS (recommended)
This integration is available in HACS (Home Assistant Community Store).
- Install HACS if you don't have it already
- Open HACS in Home Assistant
- Go to any of the sections (integrations, frontend, automation).
- Click on the 3 dots in the top right corner.
- Select "Custom repositories"
- Add following URL to the repository
https://github.com/timniklas/hacs_blitzerde
. - Select Integration as category.
- Click the "ADD" button
- Search for "Blitzer.de"
- 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
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.