Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- W template.yaml
- # Wiatr w skali Beuforta / Opis
- - sensor:
- - name: "Wiatr w skali Beuforta"
- unique_id: wiatr_w_skali_Beuforta
- icon: mdi:windsock
- state: >-
- {% set sped = states('sensor.pogoda_wind') | float(0) %}
- {% if sped >= 0 and sped <= 0.3 %}
- Bezwietrznie
- {% elif sped >= 1 and sped <= 6 %}
- Powiew
- {% elif sped >= 6.1 and sped <= 11 %}
- Słaby wiatr
- {% elif sped >= 11.1 and sped <= 19 %}
- Łagodny wiatr
- {% elif sped >= 19.1 and sped <= 29 %}
- Umiarkowany wiatr
- {% elif sped >= 29.1 and sped <= 39 %}
- Dość silny wiatr
- {% elif sped >= 39.1 and sped <= 50 %}
- Silny wiatr
- {% elif sped >= 50.1 and sped <= 62 %}
- Bardzo silny wiatr
- {% elif sped >= 62.1 and sped <= 75 %}
- Sztorm/wicher
- {% elif sped >= 76.1 and sped <= 87 %}
- Silny sztorm
- {% elif sped >= 87.1 and sped <= 102 %}
- Bardzo silny sztorm
- {% elif sped >= 102.1 and sped <= 117 %}
- Gwałtowny sztorm
- {% elif sped >= 117.1 and sped <= 150 %}
- Silny huragan
- {% else %}
- ?
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement