Advertisement
Chrwjensen

Untitled

Apr 4th, 2024
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | Science | 0 0
  1. - sensor:
  2. - name: Vindstyrke
  3. state: >
  4. {% set vindhastighed = state_attr('weather.met_no_next_6_hours_forecast_oplevvej', 'wind_speed')%}
  5. {% if vindhastighed <=1%}
  6. ingen vind
  7. {%elif vindhastighed <=5 %}
  8. næsten ingen vind
  9. {%elif vindhastighed <=11 %}
  10. svag vind
  11. {%elif vindhastighed <=19 %}
  12. let vind
  13. {%elif vindhastighed <=28 %}
  14. jævn vind
  15. {%elif vindhastighed <=38 %}
  16. frisk vind
  17. {%elif vindhastighed <=49 %}
  18. hård vind
  19. {%elif vindhastighed <=61 %}
  20. kulling
  21. {%elif vindhastighed <=74 %}
  22. hård kulling
  23. {%elif vindhastighed <=88 %}
  24. stormende kulling
  25. {%elif vindhastighed <=102 %}
  26. storm
  27. {%elif vindhastighed <=117 %}
  28. stærk storm
  29. {%else%}
  30. orkan
  31. {%endif%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement