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

View File

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