From f68b413a9544593ccb83c17efcacd1455a8d105f Mon Sep 17 00:00:00 2001 From: Joshua Barber Date: Sat, 13 Sep 2025 14:56:14 +0100 Subject: [PATCH 1/2] Update local script with audiobook support --- .../mass_assist_blueprint_en.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/local-assist-blueprint/mass_assist_blueprint_en.yaml b/local-assist-blueprint/mass_assist_blueprint_en.yaml index 3d5f611..95e824c 100644 --- a/local-assist-blueprint/mass_assist_blueprint_en.yaml +++ b/local-assist-blueprint/mass_assist_blueprint_en.yaml @@ -84,6 +84,8 @@ blueprint: Shuffle the album Classical Nights on the Bedroom Sonos Speaker + Play the audiobook Roadside Picnic + ```' input: default_player_entity_id_input: @@ -140,6 +142,16 @@ blueprint: default: - (shuffle|play|listen to) [the ](artist|band|group) {media_name} [(in|on|using) [the ]{area_or_player_name}][ (with|using) {radio_mode}] + audiobook_trigger: + name: Audiobook trigger + description: The trigger sentences to request an audiobook. + selector: + text: + multiline: false + multiple: true + default: + - (shuffle|play|listen to) [the ](book|audio book|audiobook) {media_name} [(in|on|using) + [the ]{area_or_player_name}][ (with|using) {radio_mode}] radio_trigger: name: Radio trigger description: The trigger sentences to request a specific radio station. @@ -180,6 +192,9 @@ triggers: - trigger: conversation command: !input artist_trigger id: artist +- trigger: conversation + command: !input audiobook_trigger + id: audiobook - trigger: conversation command: !input radio_trigger id: radio From 6f5787ce1b17f8d6048894c9919be00a15dda18b Mon Sep 17 00:00:00 2001 From: Joshua Barber Date: Sat, 13 Sep 2025 15:00:52 +0100 Subject: [PATCH 2/2] Remove radio and shuffle from audiobook trigger --- local-assist-blueprint/mass_assist_blueprint_en.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/local-assist-blueprint/mass_assist_blueprint_en.yaml b/local-assist-blueprint/mass_assist_blueprint_en.yaml index 95e824c..39c9eac 100644 --- a/local-assist-blueprint/mass_assist_blueprint_en.yaml +++ b/local-assist-blueprint/mass_assist_blueprint_en.yaml @@ -150,8 +150,8 @@ blueprint: multiline: false multiple: true default: - - (shuffle|play|listen to) [the ](book|audio book|audiobook) {media_name} [(in|on|using) - [the ]{area_or_player_name}][ (with|using) {radio_mode}] + - (play|listen to) [the ](book|audio book|audiobook) {media_name} [(in|on|using) + [the ]{area_or_player_name}] radio_trigger: name: Radio trigger description: The trigger sentences to request a specific radio station.