From f8671d8925c121c7d4b9ed7b3cd11633726864b1 Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Mon, 1 Feb 2021 16:13:34 -0500 Subject: [PATCH] Improve weather report --- packages/darksky.yaml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/packages/darksky.yaml b/packages/darksky.yaml index 8e18836..43aa725 100644 --- a/packages/darksky.yaml +++ b/packages/darksky.yaml @@ -35,16 +35,15 @@ script: {% else %} Good morning! {% endif %} - {% if is_state('device_tracker.correlspixel', 'home') %} - Hi Correl! - {% endif %} - {% if is_state('device_tracker.stephaniesiphone', 'home') %} - Hi Stephanie! - {% endif %} - {% if is_state('device_tracker.PhilsGalaxyS7Edge', 'home') %} - Hi Phil! - {% endif %} - + {% set occupants + = states.sensor.occupants.state.split(', ') + | select + | list + %} + {% for occupant in occupants %} + Hi {{ occupant }}! + {% endfor %} + Today's forecast is {{ states.sensor.dark_sky_daily_summary.state }} Right now, the weather is