follow-up:
please have a look at How to shorten/join this template?
how @datamonkey helped me create this even shorter and way more intelligent template:
wind_compass:
friendly_name: Windrichting
value_template: >
{{ states('sensor.br_wind_direction_azimuth') }}
friendly_name_template: >
{{ states('sensor.wind_compass_abbreviation') }}
unit_of_measurement: '°'
entity_picture_template: >
{% set degrees = states('sensor.br_wind_direction_azimuth')|float %}
{% set path = '/local/weather/wind_compass/' %}
{% set ext = '.png' %}
{{path-}}
{%- if 354.38 <= degrees or degrees <= 5.62 -%} 0
{%- else -%}
{{ ( ((degrees/11.25)|round )*11.25 )| round}}
{%- endif -%}
{{-ext-}}
so cool.