Finish UI options for notification scripts

This commit is contained in:
2023-02-03 18:51:17 -05:00
parent a9cbf707e5
commit 79c5fe5b53

View File

@ -233,16 +233,30 @@ script:
description: 'Which phone, or group of phones, to send the notification to' description: 'Which phone, or group of phones, to send the notification to'
example: 'tony, tina, kallen, parents, nerds, all' example: 'tony, tina, kallen, parents, nerds, all'
required: true required: true
selector:
select:
options:
- tony
- tina
- kallen
- parents
- nerds
- all
title: title:
name: 'Title' name: 'Title'
description: 'The title of the notification' description: 'The title of the notification'
example: 'Greetings' example: 'Greetings'
required: true required: true
selector:
text:
message: message:
name: 'Message' name: 'Message'
description: 'The body of the notification' description: 'The body of the notification'
example: 'I am notifying you that this is a notification' example: 'I am notifying you that this is a notification'
required: true required: true
selector:
text:
multiline: true
sequence: sequence:
- condition: state - condition: state
entity_id: input_boolean.text_notifications entity_id: input_boolean.text_notifications
@ -351,16 +365,28 @@ script:
description: 'Which TV to send the notification to' description: 'Which TV to send the notification to'
example: 'living_room, basement, master_bedroom, all' example: 'living_room, basement, master_bedroom, all'
required: true required: true
selector:
select:
options:
- living_room
- basement
- master_bedroom
- all
title: title:
name: 'Title' name: 'Title'
description: 'The title of the notification' description: 'The title of the notification'
example: 'Greetings' example: 'Greetings'
required: true required: true
selector:
text:
message: message:
name: 'Message' name: 'Message'
description: 'The body of the notification' description: 'The body of the notification'
example: 'I am notifying you that this is a notification' example: 'I am notifying you that this is a notification'
required: true required: true
selector:
text:
multiline: true
data: data:
name: 'Data' name: 'Data'
description: 'This is where you can define other message parameters, these are platform-specific' description: 'This is where you can define other message parameters, these are platform-specific'
@ -417,16 +443,30 @@ script:
description: 'Which phone, or group of phones, to send the alert to' description: 'Which phone, or group of phones, to send the alert to'
example: 'tony, tina, kallen, parents, nerds, all' example: 'tony, tina, kallen, parents, nerds, all'
required: true required: true
selector:
select:
options:
- tony
- tina
- kallen
- parents
- nerds
- all
title: title:
name: 'Title' name: 'Title'
description: 'The title of the alert' description: 'The title of the alert'
example: 'Important Alert' example: 'Important Alert'
required: true required: true
selector:
text:
message: message:
name: 'Message' name: 'Message'
description: 'The body of the alert' description: 'The body of the alert'
example: 'I am alerting you to the possibility that this is an alert' example: 'I am alerting you to the possibility that this is an alert'
required: true required: true
selector:
text:
multiline: true
sequence: sequence:
- service: > - service: >
{% if who == 'tony' %} {% if who == 'tony' %}
@ -498,16 +538,30 @@ script:
description: 'Which phone, or group of phones, to send the alert to' description: 'Which phone, or group of phones, to send the alert to'
example: 'tony, tina, kallen, parents, nerds, all' example: 'tony, tina, kallen, parents, nerds, all'
required: true required: true
selector:
select:
options:
- tony
- tina
- kallen
- parents
- nerds
- all
title: title:
name: 'Title' name: 'Title'
description: 'The title of the notification' description: 'The title of the notification'
example: 'Critical Alert' example: 'Critical Alert'
required: true required: true
selector:
text:
message: message:
name: 'Message' name: 'Message'
description: 'The body of the notification' description: 'The body of the notification'
example: 'I am alerting you to a critical situation!' example: 'I am alerting you to a critical situation!'
required: true required: true
selector:
text:
multiline: true
sequence: sequence:
- service: > - service: >
{% if who == 'tony' %} {% if who == 'tony' %}
@ -635,16 +689,41 @@ script:
description: 'This determines which speaker, or group of speakers, the message is sent to' description: 'This determines which speaker, or group of speakers, the message is sent to'
required: true required: true
example: 'living_room, basement, common_areas, master_bedroom, kallen_bedroom, emma_bedroom, kids_bedrooms, all_bedrooms, everywhere' example: 'living_room, basement, common_areas, master_bedroom, kallen_bedroom, emma_bedroom, kids_bedrooms, all_bedrooms, everywhere'
selector:
select:
options:
- Living Room
- Basement
- Common Areas
- Master Bedroom
- Kallen Bedroom
- Emma Bedroom
- Kids Bedrooms
- All Bedrooms
- Everywhere
message: message:
name: 'Message' name: 'Message'
description: 'This is the message you want Jarvis to read.' description: 'This is the message you want Jarvis to read.'
required: true required: true
example: 'Type some text and I will read it out loud' example: 'Type some text and I will read it out loud'
selector:
text:
multiline: true
voice: voice:
name: 'Voice' name: 'Voice'
description: 'Which voice you would like Jarvis to read in (optional, and only applicable on Alexa devices)' description: 'Which voice you would like Jarvis to read in (optional, and only applicable on Alexa devices)'
required: false required: false
example: 'Brian, Emma, Joanna, Amy, Justin, Matthew, Salli' example: 'Brian, Emma, Joanna, Amy, Justin, Matthew, Salli'
selector:
select:
options:
- Brian
- Emma
- Joanna
- Amy
- Justin
- Matthew
- Salli
variables: variables:
voice: "{{ states('input_select.jarvis_voice') }}" voice: "{{ states('input_select.jarvis_voice') }}"
sequence: sequence: