Simplified TV notifications
This commit is contained in:
@ -871,42 +871,20 @@ script:
|
|||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.tv_notifications
|
entity_id: input_boolean.tv_notifications
|
||||||
state: 'on'
|
state: 'on'
|
||||||
- if:
|
- service: >
|
||||||
- condition: template
|
{% if who == "living_room" %}
|
||||||
value_template: '{{ who == "living_room"}}'
|
notify.living_room_tv
|
||||||
then:
|
{% elif who == "master_bedroom" %}
|
||||||
- service: notify.living_room_tv
|
notify.master_bedroom_tv
|
||||||
data:
|
{% elif who == "basement" %}
|
||||||
title: '{{ title }}'
|
notify.basement_tv
|
||||||
message: '{{ message }}'
|
{% elif who == "all" %}
|
||||||
data: '{{ data if data is defined else "{}" }}'
|
notify.tv_notifications
|
||||||
- if:
|
{% endif %}
|
||||||
- condition: template
|
data:
|
||||||
value_template: '{{ who == "master_bedroom"}}'
|
title: '{{ title }}'
|
||||||
then:
|
message: '{{ message }}'
|
||||||
- service: notify.master_bedroom_tv
|
data: '{{ data if data is defined else "{}" }}'
|
||||||
data:
|
|
||||||
title: '{{ title }}'
|
|
||||||
message: '{{ message }}'
|
|
||||||
data: '{{ data if data is defined else "{}" }}'
|
|
||||||
- if:
|
|
||||||
- condition: template
|
|
||||||
value_template: '{{ who == "basement"}}'
|
|
||||||
then:
|
|
||||||
- service: notify.basement_tv
|
|
||||||
data:
|
|
||||||
title: '{{ title }}'
|
|
||||||
message: '{{ message }}'
|
|
||||||
data: '{{ data if data is defined else "{}" }}'
|
|
||||||
- if:
|
|
||||||
- condition: template
|
|
||||||
value_template: '{{ who == "all"}}'
|
|
||||||
then:
|
|
||||||
- service: notify.tv_notifications
|
|
||||||
data:
|
|
||||||
title: '{{ title }}'
|
|
||||||
message: '{{ message }}'
|
|
||||||
data: '{{ data if data is defined else "{}" }}'
|
|
||||||
|
|
||||||
text_alert_image:
|
text_alert_image:
|
||||||
alias: 'Text Alert Image'
|
alias: 'Text Alert Image'
|
||||||
|
Reference in New Issue
Block a user