Rewrote tv_notify to be consistent with text_notify #42
This commit is contained in:
@ -344,32 +344,34 @@ script:
|
||||
|
||||
tv_notify:
|
||||
sequence:
|
||||
- choose:
|
||||
- conditions:
|
||||
- if:
|
||||
- condition: template
|
||||
value_template: '{{ who == "living_room"}}'
|
||||
sequence:
|
||||
then:
|
||||
- service: notify.living_room_tv
|
||||
data:
|
||||
title: '{{ title }}'
|
||||
message: '{{ message }}'
|
||||
- conditions:
|
||||
- if:
|
||||
- condition: template
|
||||
value_template: '{{ who == "master_bedroom"}}'
|
||||
sequence:
|
||||
then:
|
||||
- service: notify.master_bedroom_tv
|
||||
data:
|
||||
title: '{{ title }}'
|
||||
message: '{{ message }}'
|
||||
- conditions:
|
||||
- if:
|
||||
- condition: template
|
||||
value_template: '{{ who == "basement"}}'
|
||||
sequence:
|
||||
then:
|
||||
- service: notify.basement_tv
|
||||
data:
|
||||
title: '{{ title }}'
|
||||
message: '{{ message }}'
|
||||
default:
|
||||
- if:
|
||||
- condition: template
|
||||
value_template: '{{ who == "all"}}'
|
||||
then:
|
||||
- service: notify.tv_notifications
|
||||
data:
|
||||
title: '{{ title }}'
|
||||
|
Reference in New Issue
Block a user