Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - sensor:
- - name: Vindstyrke
- state: >
- {% set vindhastighed = state_attr('weather.met_no_next_6_hours_forecast_oplevvej', 'wind_speed')%}
- {% if vindhastighed <=1%}
- ingen vind
- {%elif vindhastighed <=5 %}
- næsten ingen vind
- {%elif vindhastighed <=11 %}
- svag vind
- {%elif vindhastighed <=19 %}
- let vind
- {%elif vindhastighed <=28 %}
- jævn vind
- {%elif vindhastighed <=38 %}
- frisk vind
- {%elif vindhastighed <=49 %}
- hård vind
- {%elif vindhastighed <=61 %}
- kulling
- {%elif vindhastighed <=74 %}
- hård kulling
- {%elif vindhastighed <=88 %}
- stormende kulling
- {%elif vindhastighed <=102 %}
- storm
- {%elif vindhastighed <=117 %}
- stærk storm
- {%else%}
- orkan
- {%endif%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement