- Introduced a new lock file for Home Assistant run state management. - Updated automations.yaml to enhance doorbell notification handling and streamline automation sequences. - Refactored scripts.yaml to unify mobile notification actions. - Added new KNX configurations for color control and additional switches. - Created a new mobile dashboard configuration for improved user interface. - Added multiple new dark icons for various integrations to enhance visual representation.
46 lines
1.7 KiB
YAML
46 lines
1.7 KiB
YAML
template:
|
|
- sensor:
|
|
- name: "Mobile Dashboard Weather"
|
|
state: >
|
|
{% set condition_raw = states('weather.forecast_home') %}
|
|
{% set temp = states('sensor.se_au_gt_temp') | float(0) %}
|
|
{% set wind = states('sensor.se_au_gt_wind') | float(0) %}
|
|
{% set condition_translations = {
|
|
'sunny': 'Sonneg',
|
|
'partlycloudy': 'Deelweis wollekeg',
|
|
'cloudy': 'Wollekeg',
|
|
'rainy': 'Reeneg',
|
|
'snowy': 'Schnéieg',
|
|
'windy': 'Wandeg',
|
|
'fog': 'Niwweleg'
|
|
} %}
|
|
{% set condition_icon = {
|
|
'sunny': '☀️',
|
|
'partlycloudy': '⛅',
|
|
'cloudy': '☁️',
|
|
'rainy': '🌧️',
|
|
'snowy': '❄️',
|
|
'windy': '💨',
|
|
'fog': '🌫️'
|
|
}.get(condition_raw, '🌤️') %}
|
|
{% set condition_lb = condition_translations.get(condition_raw, condition_raw | title) %}
|
|
{{ condition_icon }} {{ condition_lb }} - 🌡️ {{ temp | round(1) }}°C - 💨 {{ wind | round(1) }} m/s
|
|
icon: >
|
|
{% set condition = states('weather.forecast_home') %}
|
|
{% if condition == 'sunny' %}
|
|
mdi:weather-sunny
|
|
{% elif condition == 'partlycloudy' %}
|
|
mdi:weather-partly-cloudy
|
|
{% elif condition == 'cloudy' %}
|
|
mdi:weather-cloudy
|
|
{% elif condition == 'rainy' %}
|
|
mdi:weather-rainy
|
|
{% elif condition == 'snowy' %}
|
|
mdi:weather-snowy
|
|
{% elif condition == 'windy' %}
|
|
mdi:weather-windy
|
|
{% elif condition == 'fog' %}
|
|
mdi:weather-fog
|
|
{% else %}
|
|
mdi:weather-cloudy
|
|
{% endif %} |