Improvements to text notification script
This commit is contained in:
@ -46,6 +46,9 @@ input_boolean:
|
|||||||
text_notify_nerds:
|
text_notify_nerds:
|
||||||
name: Send Texts to Nerds
|
name: Send Texts to Nerds
|
||||||
icon: mdi:message
|
icon: mdi:message
|
||||||
|
text_notify_all:
|
||||||
|
name: Send Texts to All
|
||||||
|
icon: mdi:message
|
||||||
text_notifications:
|
text_notifications:
|
||||||
name: Text Notifications
|
name: Text Notifications
|
||||||
icon: mdi:message
|
icon: mdi:message
|
||||||
@ -207,6 +210,17 @@ script:
|
|||||||
message: >
|
message: >
|
||||||
{{ message }}
|
{{ message }}
|
||||||
|
|
||||||
|
text_notify_parents:
|
||||||
|
sequence:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.text_notify_parents
|
||||||
|
state: 'on'
|
||||||
|
- service: notify.ios_parents
|
||||||
|
data_template:
|
||||||
|
title: '{{ title }}'
|
||||||
|
message: >
|
||||||
|
{{ message }}
|
||||||
|
|
||||||
text_notify:
|
text_notify:
|
||||||
sequence:
|
sequence:
|
||||||
- condition: state
|
- condition: state
|
||||||
@ -269,6 +283,9 @@ script:
|
|||||||
title: '{{ title }}'
|
title: '{{ title }}'
|
||||||
message: '{{ message }}'
|
message: '{{ message }}'
|
||||||
default:
|
default:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.text_notify_all
|
||||||
|
state: 'on'
|
||||||
- service: notify.all_ios
|
- service: notify.all_ios
|
||||||
data:
|
data:
|
||||||
title: '{{ title }}'
|
title: '{{ title }}'
|
||||||
|
Reference in New Issue
Block a user