Fixes #096 - all service_temaplates renamed

This commit is contained in:
Jeffrey Stone 2020-09-26 10:29:05 -04:00
parent e9f651dd1b
commit 34134733d2
2 changed files with 35 additions and 8 deletions

View File

@ -150,7 +150,7 @@ script:
- condition: state
entity_id: input_boolean.text_notifications
state: 'on'
- service_template: >
- service: >
{% if who == 'jeff' %}
notify.jeff_ios
{% elif who == 'kat' %}
@ -162,7 +162,7 @@ script:
{% else %}
notify.all_ios
{% endif %}
data_template:
data:
title: '{{ title }}'
message: '{{ message }}'
#data:
@ -178,7 +178,7 @@ script:
text_alert:
sequence:
- service_template: >
- service: >
{% if who == 'jeff' %}
notify.jeff_ios
{% elif who == 'kat' %}
@ -190,7 +190,7 @@ script:
{% else %}
notify.all_ios
{% endif %}
data_template:
data:
title: '{{ title }}'
message: '{{ message }}'
#data:
@ -396,6 +396,33 @@ script:
{% else %}
.4
{% endif %}
- service: media_player.volume_set
data_template:
entity_id: media_player.googlehome0715
volume_level: >
{% if states.input_boolean.audible_notifications.state == 'on' %}
.65
{% else %}
.4
{% endif %}
- service: media_player.volume_set
data_template:
entity_id: media_player.googlehomehub3492
volume_level: >
{% if states.input_boolean.audible_notifications.state == 'on' %}
.65
{% else %}
.4
{% endif %}
- service: media_player.volume_set
data_template:
entity_id: media_player.upstairs_speaker
volume_level: >
{% if states.input_boolean.audible_notifications.state == 'on' %}
.65
{% else %}
.4
{% endif %}
# media_player.googlehome0715, media_player.googlehomehub3492, media_player.upstairs_speaker
- service: tts.amazon_polly_say
data_template:
@ -1469,7 +1496,7 @@ script:
twitter_notify:
sequence:
- service_template: >
- service: >
{% if who == 'thejeffreystone' %}
notify.twitter_js
{% else %}
@ -1484,7 +1511,7 @@ script:
twitter_notify_image:
sequence:
- service_template: >
- service: >
{% if who == 'thejeffreystone' %}
notify.twitter_js
{% else %}

View File

@ -612,7 +612,7 @@ script:
data:
notification_id: "nwswxalert"
## Create a new persistant notification in the UI for a new alert
- service_template: >
- service: >
{% if states.sensor.nws_alerts.state != '0' %}
persistent_notification.create
{% endif %}