- Added new media player entity for doorbell notifications in automations.yaml. - Refactored automation sequences to include conditional actions based on triggers for sleep mode and KidsRoom. - Updated light and cover actions to improve functionality and responsiveness. - Introduced new scripts for critical notifications and smart shading management in scripts.yaml. - Added new KNX sensors for temperature, wind speed, and illuminance in sensor.yaml. - Created new packages for mobile dashboard and PV to DHW management to streamline automation processes.
36 lines
1.3 KiB
YAML
36 lines
1.3 KiB
YAML
template:
|
|
- sensor:
|
|
- name: "Mobile Dashboard Weather"
|
|
state: >
|
|
{% set condition = states('weather.forecast_home') | title %}
|
|
{% set temp = states('sensor.se_au_gt_temp') | float %}
|
|
{% set wind = states('sensor.se_au_gt_wind') | float %}
|
|
{% set condition_icon = {
|
|
'Sunny': '☀️',
|
|
'Partlycloudy': '⛅',
|
|
'Cloudy': '☁️',
|
|
'Rainy': '🌧️',
|
|
'Snowy': '❄️',
|
|
'Windy': '💨',
|
|
'Fog': '🌫️'
|
|
}.get(condition, '🌤️') %}
|
|
{{ condition_icon }} {{ condition }} - 🌡️ {{ 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 %} |