- id: '1766178088964' alias: Morning Weather description: '' triggers: - trigger: time at: 07:00:00 weekday: - sun - mon - tue - wed - thu - fri - sat conditions: [] actions: - variables: high: '{{ state_attr(''sensor.daily_forecast'', ''temperature_2m_max'')[0] }}' low: '{{ state_attr(''sensor.daily_forecast'', ''temperature_2m_min'')[0] }}' temp_unit: '{{ state_attr(''sensor.units'', ''temperature_2m'') }}' loc: '{{ state_attr(''sensor.alexs_iphone_2_geocoded_location'', ''Locality'') }}, {{ state_attr(''sensor.alexs_iphone_2_geocoded_location'', ''Administrative Area'') }}' condition: "{% set code = state_attr('sensor.daily_forecast', 'weather_code')[0] | int %} {% set mapper = {\n 0: \"Clear sky\",\n 1: \"Mainly clear\",\n \ 2: \"Partly cloudy\",\n 3: \"Overcast\",\n 45: \"Fog\",\n 48: \"Depositing rime fog\",\n 51: \"Drizzle - Light intensity\",\n 53: \"Drizzle - Moderate intensity\",\n 55: \"Drizzle - Dense intensity\",\n 56: \"Freezing Drizzle - Light intensity\",\n 57: \"Freezing Drizzle - Dense intensity\",\n 61: \"Rain - Slight intensity\",\n 63: \"Rain - Moderate intensity\",\n 65: \"Rain - Heavy intensity\",\n 66: \"Freezing Rain - Light intensity\",\n \ 67: \"Freezing Rain - Heavy intensity\",\n 71: \"Snow fall - Slight intensity\",\n \ 73: \"Snow fall - Moderate intensity\",\n 75: \"Snow fall - Heavy intensity\",\n \ 77: \"Snow grains\",\n 80: \"Rain showers - Slight intensity\",\n 81: \"Rain showers - Moderate intensity\",\n 82: \"Rain showers - Violent intensity\",\n \ 85: \"Snow showers - Slight intensity\",\n 86: \"Snow showers - Heavy intensity\",\n \ 95: \"Thunderstorm - Slight intensity\",\n 96: \"Thunderstorm with slight hail\",\n 99: \"Thunderstorm with heavy hail\"\n } %}\n {{ mapper.get(code, \"Not Availible\") }}\n" - action: script.general_notificatioon data: message: 'Good Morning! Here is the weather for today for {{loc}}: High: {{high}} {{temp_unit}} Low: {{low}} {{temp_unit}} Conditions: {{condition}}' title: Morning Report mode: single - id: '1766182515375' alias: Dash Test description: '' triggers: [] conditions: [] actions: - action: script.phone_weather metadata: {} data: {} response_variable: weather - variables: max_temp: '{{weather.content.daily.temperature_2m_max[0]}}' mode: single