Include configuration yml files
This commit is contained in:
44
ha/ha_config/scripts.yaml
Normal file
44
ha/ha_config/scripts.yaml
Normal file
@@ -0,0 +1,44 @@
|
||||
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
|
||||
Reference in New Issue
Block a user