From 15bac781671765cd66b0f60009e738c420023d70 Mon Sep 17 00:00:00 2001 From: thomas Date: Sat, 30 Aug 2025 03:48:24 +0000 Subject: [PATCH] blueprints/automation/wd-close-weather-notification.yaml aktualisiert --- .../wd-close-weather-notification.yaml | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/blueprints/automation/wd-close-weather-notification.yaml b/blueprints/automation/wd-close-weather-notification.yaml index 8c9c9eb..5fa5d15 100644 --- a/blueprints/automation/wd-close-weather-notification.yaml +++ b/blueprints/automation/wd-close-weather-notification.yaml @@ -12,15 +12,11 @@ blueprint: multiple: true temperature_sensor: name: Temperature Sensor - description: Select a temperature sensor or weather entity + description: Select a temperature sensor selector: entity: - filter: - domain: - - sensor - - weather - device_class: - - temperature + domain: sensor + device_class: temperature weather_entity: name: Weather Forecast Entity description: Select a weather forecast entity @@ -66,12 +62,7 @@ trigger: action: - variables: - current_temp: > - {% if is_state_attr(!input.temperature_sensor, 'temperature', none) %} - {{ state_attr(!input.temperature_sensor, 'temperature') }} - {% else %} - {{ states(!input.temperature_sensor) | map(attribute='state') | map('float') | min }} - {% endif %} + current_temp: "{{ states(!input.temperature_sensor) | map(attribute='state') | map('float') | min }}" current_condition: > {% set states_list = !input.bad_weather_states.split(',') | map('trim') %} {% if states(!input.weather_entity) | string in states_list %}