Fixes #096 - all service_temaplates renamed
This commit is contained in:
parent
e9f651dd1b
commit
34134733d2
|
@ -4,7 +4,7 @@
|
||||||
# @package : Notify
|
# @package : Notify
|
||||||
# @description : A Collection of Notification Scripts and Configs.
|
# @description : A Collection of Notification Scripts and Configs.
|
||||||
# Package modified from https://github.com/skalavala/smarthome/blob/master/packages/notify.yaml with inspiration
|
# Package modified from https://github.com/skalavala/smarthome/blob/master/packages/notify.yaml with inspiration
|
||||||
# from https://github.com/CCOSTAN/Home-AssistantConfig/blob/master/config/script/speech_engine.yaml
|
# from https://github.com/CCOSTAN/Home-AssistantConfig/blob/master/config/script/speech_engine.yaml
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#homeassistant:
|
#homeassistant:
|
||||||
|
|
||||||
|
@ -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 %}
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in New Issue