Advertisement
Wykop

Wiatr w skali Beuforta / Opis

Dec 18th, 2022
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. W template.yaml
  2. # Wiatr w skali Beuforta / Opis
  3. - sensor:
  4. - name: "Wiatr w skali Beuforta"
  5. unique_id: wiatr_w_skali_Beuforta
  6. icon: mdi:windsock
  7. state: >-
  8. {% set sped = states('sensor.pogoda_wind') | float(0) %}
  9. {% if sped >= 0 and sped <= 0.3 %}
  10. Bezwietrznie
  11. {% elif sped >= 1 and sped <= 6 %}
  12. Powiew
  13. {% elif sped >= 6.1 and sped <= 11 %}
  14. Słaby wiatr
  15. {% elif sped >= 11.1 and sped <= 19 %}
  16. Łagodny wiatr
  17. {% elif sped >= 19.1 and sped <= 29 %}
  18. Umiarkowany wiatr
  19. {% elif sped >= 29.1 and sped <= 39 %}
  20. Dość silny wiatr
  21. {% elif sped >= 39.1 and sped <= 50 %}
  22. Silny wiatr
  23. {% elif sped >= 50.1 and sped <= 62 %}
  24. Bardzo silny wiatr
  25. {% elif sped >= 62.1 and sped <= 75 %}
  26. Sztorm/wicher
  27. {% elif sped >= 76.1 and sped <= 87 %}
  28. Silny sztorm
  29. {% elif sped >= 87.1 and sped <= 102 %}
  30. Bardzo silny sztorm
  31. {% elif sped >= 102.1 and sped <= 117 %}
  32. Gwałtowny sztorm
  33. {% elif sped >= 117.1 and sped <= 150 %}
  34. Silny huragan
  35. {% else %}
  36. ?
  37. {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement