45 lines
970 B
YAML
45 lines
970 B
YAML
phone_weather:
|
|
sequence:
|
|
- action: rest_command.get_phone_weather
|
|
data: {}
|
|
response_variable: weather_data
|
|
- variables:
|
|
max_temp: '{{ weather_data.content.daily.temperature_2m_max[0] }}'
|
|
- action: script.general_notificatioon
|
|
metadata: {}
|
|
data:
|
|
message: 'Good morning!
|
|
|
|
The high for today is {{ max_temp }}
|
|
|
|
'
|
|
title: Morning Weather
|
|
alias: Phone Weather
|
|
description: ''
|
|
general_notificatioon:
|
|
sequence:
|
|
- action: notify.mobile_app_alexs_iphone_2
|
|
metadata: {}
|
|
data:
|
|
message: '{{ message }}'
|
|
title: '{{ title }}'
|
|
- action: notify.persistent_notification
|
|
metadata: {}
|
|
data:
|
|
message: '{{ message }}'
|
|
title: '{{ title }}'
|
|
fields:
|
|
title:
|
|
selector:
|
|
text:
|
|
name: Title
|
|
required: true
|
|
message:
|
|
selector:
|
|
text:
|
|
name: Message
|
|
required: true
|
|
alias: General Notification
|
|
description: ''
|
|
icon: mdi:bell-badge
|