The Blitzer.de Home Assistant Custom Integration allows you to integrate the Blitzer.de App with your Home Assistant setup.
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") %}
{%- 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") %}
{%- set blitzer_counter = state_attr("binary_sensor.blitzerde_blitzerde_YOURCITY_map"~ loop.index, "counter") %}
<h3>Blitzer {{blitzer_city}}</h3>
<font color ="grey">Bestätigt von {{blitzer_counter}} Personen</font>
<br/>
<a href="https://map.blitzer.de/v5/ID/{{blitzer_backend}}/">{{blitzer_street}}</a> bei {{blitzer_vmax}} km/h
<br/>
{%- if not loop.last %}<hr>{%- endif %}
{%- endfor %}
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
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
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
.
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.
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.