124 lines
4.5 KiB
YAML
124 lines
4.5 KiB
YAML
- id: '1766178088964'
|
|
alias: Morning Weather
|
|
description: ''
|
|
triggers:
|
|
- trigger: time
|
|
at: 07:00:00
|
|
weekday:
|
|
- sun
|
|
- mon
|
|
- tue
|
|
- wed
|
|
- thu
|
|
- fri
|
|
- sat
|
|
conditions: []
|
|
actions:
|
|
- action: rest_command.get_phone_weather
|
|
data: {}
|
|
response_variable: weather_data
|
|
- variables:
|
|
max_temp: '{{weather_data.content.daily.temperature_2m_max[0]}}'
|
|
min_temp: '{{weather_data.content.daily.temperature_2m_min[0]}}'
|
|
temp_unit: '{{weather_data.content.daily_units.temperature_2m_max}}'
|
|
condition: "{% set code = weather_data.content.daily.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
|
|
metadata: {}
|
|
data:
|
|
title: Morning Weather
|
|
message: 'Good Morning!
|
|
|
|
Here is the weather for today:
|
|
|
|
High: {{max_temp}} {{temp_unit}}
|
|
|
|
Low: {{min_temp}} {{temp_unit}}
|
|
|
|
Conditions: {{condition}}
|
|
|
|
'
|
|
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
|
|
- id: '1766406207253'
|
|
alias: Morning Test
|
|
description: ''
|
|
triggers:
|
|
- trigger: time
|
|
at: 07:00:00
|
|
weekday:
|
|
- sun
|
|
- mon
|
|
- tue
|
|
- wed
|
|
- thu
|
|
- fri
|
|
- sat
|
|
conditions: []
|
|
actions:
|
|
- action: rest_command.get_phone_weather
|
|
data: {}
|
|
response_variable: weather_data
|
|
- variables:
|
|
max_temp: '{{weather_data.content.daily.temperature_2m_max[0]}}'
|
|
min_temp: '{{weather_data.content.daily.temperature_2m_min[0]}}'
|
|
temp_unit: '{{weather_data.content.daily_units.temperature_2m_max}}'
|
|
condition: "{% set code = weather_data.content.daily.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
|
|
metadata: {}
|
|
data:
|
|
title: Morning Weather
|
|
message: 'Good Morning!
|
|
|
|
Here is the weather for today:
|
|
|
|
High: {{max_temp}} {{temp_unit}}
|
|
|
|
Low: {{min_temp}} {{temp_unit}}
|
|
|
|
Conditions: {{condition}}
|
|
|
|
'
|
|
mode: single
|