From f13f17ee941d88815740d38660ed45cc66aaf169 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Fri, 8 Mar 2024 14:42:39 -0500 Subject: [PATCH] Add new script blueprints --- blueprints/script/balloob/add-to-do-item.yaml | 31 ++++++++++++++++ ...nounce-text-to-speech-on-media-player.yaml | 36 +++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 blueprints/script/balloob/add-to-do-item.yaml create mode 100644 blueprints/script/balloob/announce-text-to-speech-on-media-player.yaml diff --git a/blueprints/script/balloob/add-to-do-item.yaml b/blueprints/script/balloob/add-to-do-item.yaml new file mode 100644 index 0000000..7aa1992 --- /dev/null +++ b/blueprints/script/balloob/add-to-do-item.yaml @@ -0,0 +1,31 @@ +blueprint: + name: Add to-do + description: A script that adds an item to a to-do list. + domain: script + input: + to_do_list: + selector: + entity: + domain: + - todo + multiple: false + name: To-do list + item_label: + selector: + text: {} + default: Item + name: Item label + source_url: https://community.home-assistant.io/t/add-to-do-item/699193 +mode: queued +fields: + item: + selector: + text: + name: !input item_label + required: true +sequence: +- service: todo.add_item + data: + item: '{{ item }}' + target: + entity_id: !input to_do_list diff --git a/blueprints/script/balloob/announce-text-to-speech-on-media-player.yaml b/blueprints/script/balloob/announce-text-to-speech-on-media-player.yaml new file mode 100644 index 0000000..35e95b0 --- /dev/null +++ b/blueprints/script/balloob/announce-text-to-speech-on-media-player.yaml @@ -0,0 +1,36 @@ +blueprint: + name: Announce + description: A script that announces a message on a media player using text-to-speech. + domain: script + input: + text_to_speech_engine: + selector: + entity: + domain: + - tts + multiple: false + name: Text-to-Speech engine + media_player: + selector: + entity: + domain: + - media_player + multiple: true + name: Media Player + source_url: https://community.home-assistant.io/t/announce-text-to-speech-on-media-player/699186 +mode: queued +fields: + message: + selector: + text: + multiline: true + name: Message + description: The message to broadcast + required: true +sequence: +- service: tts.speak + data: + media_player_entity_id: !input media_player + message: '{{ message }}' + target: + entity_id: !input text_to_speech_engine