Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {# Låga halter #}
- {%- for entity_id in states.group.pollen.attributes.entity_id if states(entity_id) == 'låga halter' or states(entity_id) == 'låga-måttliga halter' -%}
- {% set parts = entity_id.split('.') -%}
- {%- if loop.first %}Låga halter av {% elif loop.last %} och {% else %}, {% endif -%}{{ states[parts[0]][parts[1]].name | lower }}
- {%- if loop.last %}.{%- endif %}
- {%- endfor %}
- {# Måttliga halter #}
- {%- for entity_id in states.group.pollen.attributes.entity_id if states(entity_id) == 'måttliga halter' or states(entity_id) == 'måttliga-höga halter' -%}
- {% set parts = entity_id.split('.') -%}
- {%- if loop.first %}Måttliga halter av {% elif loop.last %} och {% else %}, {% endif -%}{{ states[parts[0]][parts[1]].name | lower }}
- {%- if loop.last %}.{%- endif %}
- {%- endfor %}
- {# Höga halter #}
- {%- for entity_id in states.group.pollen.attributes.entity_id if states(entity_id) == 'höga halter' or states(entity_id) == ' mycket höga halter' -%}
- {% set parts = entity_id.split('.') -%}
- {%- if loop.first %}Höga halter av {% elif loop.last %} och {% else %}, {% endif -%}{{ states[parts[0]][parts[1]].name | lower }}
- {%- if loop.last %}.{%- endif %}
- {%- endfor %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement