From bd90d552ad964a85db7d668d473e9d0aedc21530 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Wed, 6 Sep 2023 12:05:53 -0400 Subject: [PATCH] Added instruction for where to play weather alerts --- packages/custom_weather.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/custom_weather.yaml b/packages/custom_weather.yaml index 55d0462..12bad1d 100644 --- a/packages/custom_weather.yaml +++ b/packages/custom_weather.yaml @@ -342,6 +342,15 @@ template: {% else %} true {% endif %} + attributes: + location: > + {% if is_state('binary_sensor.basement_occupied','on') and is_state('input_boolean.master_bedroom_sleeping','on') %} + basement + {% elif is_state('binary_sensor.people_sleeping','off') %} + everywhere + {% else %} + common + {% endif %} - sensor: - name: Current Forecast unique_id: c0faea33-2ac3-40f1-8558-584c3f5d6b16