New tag template, added sound support
This commit is contained in:
Submodule node-red/projects/NerdFlows updated: ad8443f933...04cb45217d
@ -710,6 +710,13 @@ script:
|
|||||||
required: false
|
required: false
|
||||||
selector:
|
selector:
|
||||||
text:
|
text:
|
||||||
|
sound:
|
||||||
|
name: 'Sound'
|
||||||
|
description: 'The sound you want the notification to make. Critical ignores this.'
|
||||||
|
example: 'US-EN-Morgan-Freeman-Wife-Is-Arriving.wav'
|
||||||
|
required: false
|
||||||
|
selector:
|
||||||
|
text:
|
||||||
sequence:
|
sequence:
|
||||||
- choose:
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
@ -734,12 +741,7 @@ script:
|
|||||||
title: "{{ title }}"
|
title: "{{ title }}"
|
||||||
message: "{{ message }}"
|
message: "{{ message }}"
|
||||||
data:
|
data:
|
||||||
tag: >
|
tag: '{{ tag if tag is defined else "{}" }}'
|
||||||
{% if tag is defined %}
|
|
||||||
{{ tag }}
|
|
||||||
{% else %}
|
|
||||||
{}
|
|
||||||
{% endif %}
|
|
||||||
push:
|
push:
|
||||||
sound:
|
sound:
|
||||||
name: default
|
name: default
|
||||||
@ -766,12 +768,10 @@ script:
|
|||||||
title: '{{ title }}'
|
title: '{{ title }}'
|
||||||
message: '{{ message }}'
|
message: '{{ message }}'
|
||||||
data:
|
data:
|
||||||
tag: >
|
tag: '{{ tag if tag is defined else "{}" }}'
|
||||||
{% if tag is defined %}
|
push:
|
||||||
{{ tag }}
|
sound:
|
||||||
{% else %}
|
name: '{{ sound if sound is defined else "default" }}'
|
||||||
{}
|
|
||||||
{% endif %}
|
|
||||||
default:
|
default:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.text_notifications
|
entity_id: input_boolean.text_notifications
|
||||||
@ -823,12 +823,10 @@ script:
|
|||||||
title: '{{ title }}'
|
title: '{{ title }}'
|
||||||
message: '{{ message }}'
|
message: '{{ message }}'
|
||||||
data:
|
data:
|
||||||
tag: >
|
tag: '{{ tag if tag is defined else "{}" }}'
|
||||||
{% if tag is defined %}
|
push:
|
||||||
{{ tag }}
|
sound:
|
||||||
{% else %}
|
name: '{{ sound if sound is defined else "default" }}'
|
||||||
{}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
tv_notify:
|
tv_notify:
|
||||||
alias: 'TV Notify'
|
alias: 'TV Notify'
|
||||||
|
Reference in New Issue
Block a user